mirror of
https://github.com/friendica/friendica
synced 2024-12-22 12:29:47 +01:00
run_xgettext: check for dir before run xgettext
This commit is contained in:
parent
057110e08b
commit
a1746a9fd2
1 changed files with 7 additions and 1 deletions
|
@ -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 ]
|
||||
|
|
Loading…
Reference in a new issue