2008-04-21 09:34:39 -04:00
|
|
|
# run this script from the root directory to re-generate the .pot file
|
|
|
|
#
|
|
|
|
# ./data/po/update_pot.sh
|
|
|
|
|
2008-05-09 14:39:48 -04:00
|
|
|
CPP_FILE_LIST=`find ./src -name '*.cpp' -print`
|
2008-09-01 20:35:28 -04:00
|
|
|
PERL_FILE_LIST="`find ./data -name '*.track' -print` `find ./data -name '*.challenge' -print` `find ./data -name '*.grandprix' -print`"
|
2008-05-09 14:39:48 -04:00
|
|
|
|
|
|
|
echo "--------------------"
|
2008-05-10 10:48:57 -04:00
|
|
|
echo " Source Files :"
|
2008-05-09 14:39:48 -04:00
|
|
|
echo "--------------------"
|
|
|
|
echo $CPP_FILE_LIST
|
2008-05-10 10:48:57 -04:00
|
|
|
echo "--------------------"
|
|
|
|
echo " Data Files :"
|
|
|
|
echo "--------------------"
|
|
|
|
echo $PERL_FILE_LIST
|
2008-05-09 14:39:48 -04:00
|
|
|
|
|
|
|
echo "---------------------------"
|
|
|
|
echo " Generating .pot file..."
|
2008-09-01 20:35:28 -04:00
|
|
|
xgettext -d supertuxkart -s --keyword=_ --add-comments="I18N:" -p ./data/po -o supertuxkart.pot $CPP_FILE_LIST
|
|
|
|
xgettext -j -L perl -d supertuxkart -s --keyword=_ --add-comments="I18N:" -p ./data/po -o supertuxkart.pot $PERL_FILE_LIST
|
2008-05-09 14:39:48 -04:00
|
|
|
echo " Done"
|
|
|
|
echo "---------------------------"
|