We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d99bf44 commit ba2b502Copy full SHA for ba2b502
src/xgettext.sh
@@ -1,7 +1,7 @@
1
#!/bin/sh
2
3
outputfile=
4
-outputdir=.
+outputdir=
5
domain=messages
6
7
spliteq() {
@@ -103,10 +103,14 @@ while true ; do
103
shift
104
done
105
106
-[ -z "$outputfile" ] && outputfile=${domain}.po
107
[ "$outputfile" = "-" ] && exit 0
108
-if [ ! -z "$outputfile" ] ; then
+if [ -z "$outputfile" ] ; then
+ outputfile=${domain}.po
109
+ [ -z "$outputdir" ] && outputdir=.
110
touch $outputdir/$outputfile
111
+else
112
+ [ -z "$outputdir" ] && touch $outputdir/$outputfile || \
113
+ touch $outputfile
114
fi
115
116
0 commit comments