run_xgettext: check for dir before run xgettext

This commit is contained in:
Fabrixxm 2013-02-27 09:42:20 -05:00
parent 057110e08b
commit a1746a9fd2

View file

@ -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 ]