makepot.sh 371 B

12345678
  1. #!/bin/sh
  2. xgettext --keyword='_' -C -o data/locale/messages.pot `find src -name "*.cpp"`
  3. for LEVELSET in `ls data/levels`; do
  4. 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
  5. done
  6. #todo: make potfiles for addons