6 [ -d .svn
] && SCM
="svn"
7 [ -d .git
] && SCM
="git"
10 echo "Unsupported SCM tool" >&2
14 [ -z "$PATTERN" ] && PATTERN
="*.pot"
16 for lang
in $
(cd po
; echo ?? ??_??
); do
17 for file in $
(cd po
/templates
; echo $PATTERN); do
18 if [ -f po
/templates
/$file -a ! -f "po/$lang/${file%.pot}.po" ]; then
19 msginit
--no-translator -l "$lang" -i "po/templates/$file" -o "po/$lang/${file%.pot}.po"
20 $SCM add
"po/$lang/${file%.pot}.po"