elua: support for fallback xgettext in xgettext_wrapper
authorDaniel Kolesa <d.kolesa@samsung.com>
Tue, 10 Jun 2014 12:19:24 +0000 (13:19 +0100)
committerDaniel Kolesa <d.kolesa@samsung.com>
Tue, 10 Jun 2014 14:48:53 +0000 (15:48 +0100)
po/xgettext_wrapper.sh

index 07ae8042d757b932ac74356f25f735436b6b2995..73463bc4c7dc00a4a356098e9fc948a722bfd743 100755 (executable)
@@ -7,6 +7,10 @@ if [ ! "$ELUA_BIN" ]; then
     export EFL_RUN_IN_TREE=1
 fi
 
-$ELUA_BIN :xgettext "$@"
+if [ -x "$ELUA_BIN" ]; then
+    $ELUA_BIN :xgettext "$@"
+else
+    $XGETTEXT "$@"
+fi
 
 exit $?