aboutsummaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2020-10-06 10:50:47 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2020-10-06 10:52:26 -0700
commit1f65d9df62e53d28c0726f1067fdda345242709f (patch)
treed5eee0c2f3b52b912d5de5585604369ad4470dd6 /scripts
parent6e6705fb6ec325f2ea8f22a9349079d57bc668fa (diff)
downloadsubsurface-1f65d9df62e53d28c0726f1067fdda345242709f.tar.gz
build-sytem: hide archived Subsurface version from translation scan
The release process creates full Subsurface trees under tmp. Don't pick those up when looking for source strings. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/updatetranslationsource.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/scripts/updatetranslationsource.sh b/scripts/updatetranslationsource.sh
index 71d3f974d..c5bdff50b 100755
--- a/scripts/updatetranslationsource.sh
+++ b/scripts/updatetranslationsource.sh
@@ -20,7 +20,9 @@ git status | grep "Changes not staged for commit" 2>/dev/null && echo "tree not
git status | grep "Changes to be committed" 2>/dev/null && echo "tree not clean" && exit 1
# now remove the translations and remove access to the kirigami sources
+# and any old sources under tmp
chmod 000 mobile-widgets/qml/kirigami
+chmod 000 tmp
rm translations/subsurface_source.ts
# enable creating the translation strings
@@ -51,6 +53,7 @@ git reset --hard
# now enable access to kirigami again
chmod 755 mobile-widgets/qml/kirigami
+chmod 755 tmp
# this really depends on my filesystem layout
# push sources to Transifex