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