Changeset 8520
- Timestamp:
- 04/06/12 11:44:46 (15 months ago)
- Files:
-
- 1 modified
-
luci/trunk/build/i18n-init.sh (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
luci/trunk/build/i18n-init.sh
r8519 r8520 2 2 3 3 PATTERN=$1 4 SCM= 4 5 5 [ -z "$PATTERN" ] && PATTERN='*.pot' 6 [ -d .svn ] && SCM="svn" 7 [ -d .git ] && SCM="git" 8 9 [ -z "$SCM" ] && { 10 echo "Unsupported SCM tool" >&2 11 exit 1 12 } 13 14 [ -z "$PATTERN" ] && PATTERN="*.pot" 6 15 7 16 for lang in $(cd po; echo ?? ??_??); do … … 9 18 if [ -f po/templates/$file -a ! -f "po/$lang/${file%.pot}.po" ]; then 10 19 msginit --no-translator -l "$lang" -i "po/templates/$file" -o "po/$lang/${file%.pot}.po" 11 svnadd "po/$lang/${file%.pot}.po"20 $SCM add "po/$lang/${file%.pot}.po" 12 21 fi 13 22 done
