commit f330f43c
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