From ca79ec61f484bba5f4c9cb8f2fc11df95255fe8d Mon Sep 17 00:00:00 2001 From: SARL ENR-68 Date: Sat, 5 Oct 2013 18:04:20 +0200 Subject: Update function to specify a language on the command line added fonction --help or -h for more information --- tools/po-compile.sh | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'tools') 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 []" + echo "Run without arguments to compile all translation files." + exit 0 +fi + cd "$(readlink -f "$(dirname "$0")/..")" + update_mo(){ echo $1 language="$(basename "$1")" -- cgit v1.2.1