summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xsrc/xgettext.sh14
1 files changed, 3 insertions, 11 deletions
diff --git a/src/xgettext.sh b/src/xgettext.sh
index 42769a5..4dbd2fa 100755
--- a/src/xgettext.sh
+++ b/src/xgettext.sh
@@ -1,5 +1,4 @@
#!/bin/sh
-
outputfile=
outputdir=
domain=messages
@@ -104,13 +103,6 @@ while true ; do
done
[ "$outputfile" = "-" ] && exit 0
-if [ -z "$outputfile" ] ; then
- outputfile=${domain}.po
- [ -z "$outputdir" ] && outputdir=.
- touch $outputdir/$outputfile
-else
- [ -z "$outputdir" ] && touch $outputdir/$outputfile || \
- touch $outputfile
-fi
-
-
+[ -z "$outputdir" ] && outputdir=.
+[ -z "$outputfile" ] && outputfile=${domain}.po
+touch $outputdir/$outputfile