more fancy stuff :P
authorRudolf Polzer <divverent@alientrap.org>
Tue, 18 Jan 2011 20:37:26 +0000 (21:37 +0100)
committerRudolf Polzer <divverent@alientrap.org>
Tue, 18 Jan 2011 20:37:26 +0000 (21:37 +0100)
check-translations.sh

index b37d9f49b0f8d4047e9baa97cb2b7761f5a27a31..36d66bf2784d435c2bd10f086cf29d26c2df665d 100755 (executable)
@@ -1,7 +1,15 @@
 #!/bin/sh
 
 #!/bin/sh
 
-for VM in menu client; do
-       find qcsrc/"$VM" -type f -not -name \*.po -not -name \*.txt | xgettext -LC -k_ -f- --from-code utf-8 -o "$VM".dat.pot >&2
+for VM in menu csprogs; do
+       case "$VM" in
+               csprogs)
+                       VMD=client
+                       ;;
+               *)
+                       VMD=$VM
+                       ;;
+       esac
+       find qcsrc/"$VMD" -type f -not -name \*.po -not -name \*.txt | xgettext -LC -k_ -f- --from-code utf-8 -o "$VM".dat.pot >&2
        for X in "$VM".dat.*.po; do
                [ -f "$X" ] || continue
                msgmerge -F -U "$X" "$VM".dat.pot >&2
        for X in "$VM".dat.*.po; do
                [ -f "$X" ] || continue
                msgmerge -F -U "$X" "$VM".dat.pot >&2