Added keep pot template option to script
This commit is contained in:
parent
a165fa2037
commit
31b49fe8a6
|
@ -11,10 +11,17 @@
|
||||||
#####################################
|
#####################################
|
||||||
|
|
||||||
if [ "$1" = "--help" ] || [ "$1" = "-h" ] ; then
|
if [ "$1" = "--help" ] || [ "$1" = "-h" ] ; then
|
||||||
echo "Usage: $0 [locale]"
|
echo "Usage: $0 [-k] [locale]"
|
||||||
|
echo
|
||||||
|
echo "Where -k means keep pot template and not delete it"
|
||||||
exit
|
exit
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [ "$1" = "-k" ] ; then
|
||||||
|
KEEP=1
|
||||||
|
shift
|
||||||
|
fi
|
||||||
|
|
||||||
SOURCEDIR=../kicad-source-mirror #Set this first!!!
|
SOURCEDIR=../kicad-source-mirror #Set this first!!!
|
||||||
|
|
||||||
#Autovars
|
#Autovars
|
||||||
|
@ -54,8 +61,9 @@ fi
|
||||||
for i in $LINGUAS
|
for i in $LINGUAS
|
||||||
do
|
do
|
||||||
msgmerge --force-po $LOCALDIR/$i/kicad.po $LOCALDIR/kicad.pot -o $LOCALDIR/$i/kicad.po 2>&1 # >> /dev/null
|
msgmerge --force-po $LOCALDIR/$i/kicad.po $LOCALDIR/kicad.pot -o $LOCALDIR/$i/kicad.po 2>&1 # >> /dev/null
|
||||||
# msgfmt --statistics $LOCALDIR/$i/kicad.po 2>&1 >>/dev/null
|
msgfmt --statistics $LOCALDIR/$i/kicad.po 2>&1 >>/dev/null
|
||||||
done
|
done
|
||||||
|
|
||||||
#Comment this to create new language template
|
if [ ! "$KEEP" = "1" ]; then
|
||||||
rm $LOCALDIR/kicad.pot
|
rm $LOCALDIR/kicad.pot
|
||||||
|
fi
|
||||||
|
|
Loading…
Reference in New Issue