git repos / blockattack-game

commit f330f43c

sago007 · 2018-03-24 09:18
f330f43c7204ad99ac7c52d0f5506082af4d6fd0 patch · browse files
parent 41b8102ece1a3f9765cafc0df0fb651ac75d161b

Fixed some scripts

Changed files

M source/misc/astyle/runAstyle.sh before
M source/misc/translation/build_mo_single_file.sh before
M source/misc/translation/extractTexts.sh before
diff --git a/source/misc/astyle/runAstyle.sh b/source/misc/astyle/runAstyle.sh index f7e1bd9..00e1bf7 100755 --- a/source/misc/astyle/runAstyle.sh +++ b/source/misc/astyle/runAstyle.sh
@@ -1 +1,2 @@
+#! /bin/bash
astyle -t -j -y -c -k1 -z2 -A2 --pad-header ../../code/*.cpp
diff --git a/source/misc/translation/build_mo_single_file.sh b/source/misc/translation/build_mo_single_file.sh index 8cf604e..30eaed3 100755 --- a/source/misc/translation/build_mo_single_file.sh +++ b/source/misc/translation/build_mo_single_file.sh
@@ -5,8 +5,8 @@ test $1
POFILE=$1
-LANGUAGE=${1##*/}
+LANGUAGE=${POFILE##*/}
LANGUAGE=${LANGUAGE%%.*}
mkdir -p locale/$LANGUAGE/LC_MESSAGES
-echo "Building $LANGUAGE from $1"
-msgfmt -o locale/$LANGUAGE/LC_MESSAGES/blockattack_roftb.mo $1
+echo "Building $LANGUAGE from $POFILE"
+msgfmt -o locale/$LANGUAGE/LC_MESSAGES/blockattack_roftb.mo $POFILE
diff --git a/source/misc/translation/extractTexts.sh b/source/misc/translation/extractTexts.sh index aa82b8b..afba7a8 100755 --- a/source/misc/translation/extractTexts.sh +++ b/source/misc/translation/extractTexts.sh
@@ -1,2 +1,3 @@
+#! /bin/bash
mkdir -p template
xgettext -k_ ../../code/*.cpp ../../code/*.inc --output=template/blockattack_roftb.pot