aboutsummaryrefslogtreecommitdiffstats
path: root/tools/po-compile.sh
diff options
context:
space:
mode:
authorSARL ENR-68 <david@david.david>2013-10-05 18:04:20 +0200
committerSARL ENR-68 <david@david.david>2013-10-05 18:04:20 +0200
commitca79ec61f484bba5f4c9cb8f2fc11df95255fe8d (patch)
tree02fcee10d09eeb00f4d051c959a3162363c93b65 /tools/po-compile.sh
parent21c66396faaa3450694cf266ff90fb770a8e938f (diff)
downloadisodumper-ca79ec61f484bba5f4c9cb8f2fc11df95255fe8d.tar
isodumper-ca79ec61f484bba5f4c9cb8f2fc11df95255fe8d.tar.gz
isodumper-ca79ec61f484bba5f4c9cb8f2fc11df95255fe8d.tar.bz2
isodumper-ca79ec61f484bba5f4c9cb8f2fc11df95255fe8d.tar.xz
isodumper-ca79ec61f484bba5f4c9cb8f2fc11df95255fe8d.zip
Update function to specify a language on the command line
added fonction --help or -h for more information
Diffstat (limited to 'tools/po-compile.sh')
-rw-r--r--tools/po-compile.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/tools/po-compile.sh b/tools/po-compile.sh
index 0a470c1..a29d8cb 100644
--- a/tools/po-compile.sh
+++ b/tools/po-compile.sh
@@ -2,7 +2,14 @@
set -e
+if test "$1" = "-h" -o "$1" = "--help"; then
+ echo "Use: $0 [<language>]"
+ echo "Run without arguments to compile all translation files."
+ exit 0
+fi
+
cd "$(readlink -f "$(dirname "$0")/..")"
+
update_mo(){
echo $1
language="$(basename "$1")"