From: mathnerd314 Date: Sat, 3 Jul 2010 21:15:56 +0000 (+0000) Subject: Fix makepot.sh X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=2dd2937f9b4c07500b54b7f3687104e29b7cb8bc;p=supertux.git Fix makepot.sh git-svn-id: http://supertux.lethargik.org/svn/supertux/trunk/supertux@6641 837edb03-e0f3-0310-88ca-d4d4e8b29345 --- diff --git a/makepot.sh b/makepot.sh index 08b6e24cc..949b2d4b9 100755 --- a/makepot.sh +++ b/makepot.sh @@ -1,5 +1,5 @@ #!/bin/sh xgettext --keyword='_' -C -o data/locale/messages.pot `find src -name "*.cpp"` -for LEVELSET in "bonus1" "bonus2" "contribs" "misc" "test" "world1" "world2"; do - xgettext --keyword='_:1' --language=Lisp --sort-by-file -C -o data/levels/$LEVELSET/messages.pot `find data/levels/$LEVELSET -name "*.stl"` `find data/levels/$LEVELSET -name "*.stwm"` `find data/levels/$LEVELSET -name "*.txt"` +for LEVELSET in `ls data/levels`; do + find data/levels/$LEVELSET "(" -name "*.stl" -or -name "*.stwm" -or -name "*.txt" ")" -print0 | xargs -0 xgettext --keyword='_:1' --language=Lisp --sort-by-file --output data/levels/$LEVELSET/messages.pot done