run_xgettext: check for dir before run xgettext

pull/631/head
Fabrixxm 2013-02-27 09:42:20 -05:00
rodzic 057110e08b
commit a1746a9fd2
1 zmienionych plików z 7 dodań i 1 usunięć

Wyświetl plik

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