]> git.mxchange.org Git - friendica.git/commitdiff
run_xgettext: check for dir before run xgettext
authorFabrixxm <fabrix.xm@gmail.com>
Wed, 27 Feb 2013 14:42:20 +0000 (09:42 -0500)
committerFabrixxm <fabrix.xm@gmail.com>
Wed, 27 Feb 2013 14:42:20 +0000 (09:42 -0500)
util/run_xgettext.sh

index b77913bc73b17887c404c22f98c1001281f1318b..b39b75820165b47c3b092fe8c5757afbf7d5d0f7 100755 (executable)
@@ -45,7 +45,13 @@ OPTS=
 KEYWORDS="-k -kt -ktt:1,2"
 
 echo "extract strings to $OUTFILE.."
-find "$FINDSTARTDIR" $FINDOPTS -name "*.php" -type f | xargs  xgettext $KEYWORDS $OPTS -o "$OUTFILE" --from-code=UTF-8
+for f in $(find "$FINDSTARTDIR" $FINDOPTS -name "*.php" -type f)
+do
+       if [ ! -d "$f" ]
+       then
+               xgettext $KEYWORDS $OPTS -o "$OUTFILE" --from-code=UTF-8 "$f"
+       fi
+done
 
 echo "setup base info.."
 if [ $ADDONMODE ]