run_xgettext: check for dir before run xgettext
This commit is contained in:
parent
057110e08b
commit
a1746a9fd2
|
@ -45,7 +45,13 @@ OPTS=
|
||||||
KEYWORDS="-k -kt -ktt:1,2"
|
KEYWORDS="-k -kt -ktt:1,2"
|
||||||
|
|
||||||
echo "extract strings to $OUTFILE.."
|
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.."
|
echo "setup base info.."
|
||||||
if [ $ADDONMODE ]
|
if [ $ADDONMODE ]
|
||||||
|
|
Loading…
Reference in a new issue