worksofcraft
December 23rd, 2010, 12:12 AM
I seem to always be having problems with spaces in scripts. This time I want to call xgettext with a space in one of it's paramaters so I do this:
#!/bin/bash
XGETFLAGS="--copyright-holder=\"Chris Scaife\" --package-name=$1 --package-version=0.0 --keyword=translatable"
if [ -z $1 ]
then
echo "use: updatepo exename"
exit 1
fi
echo "creating first $1.pot message template"
xgettext $XGETFLAGS -o $1.pot *.cpp *.glade
IDK why, but xgettext is still getting my name as two separate command line parameters and complains it doesn't know the file extension ". Naturally I tried it with single quotes and I tried escaping the space... but all to no avail :(
what am I missing here ? ](*,)
#!/bin/bash
XGETFLAGS="--copyright-holder=\"Chris Scaife\" --package-name=$1 --package-version=0.0 --keyword=translatable"
if [ -z $1 ]
then
echo "use: updatepo exename"
exit 1
fi
echo "creating first $1.pot message template"
xgettext $XGETFLAGS -o $1.pot *.cpp *.glade
IDK why, but xgettext is still getting my name as two separate command line parameters and complains it doesn't know the file extension ". Naturally I tried it with single quotes and I tried escaping the space... but all to no avail :(
what am I missing here ? ](*,)