File: update

package info (click to toggle)
scuttle 0.7.4-8.1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd, wheezy
  • size: 1,520 kB
  • ctags: 1,956
  • sloc: php: 8,036; sh: 134; makefile: 48; sql: 43
file content (14 lines) | stat: -rw-r--r-- 318 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/sh
TEMPLATE=pigs.pot
xgettext -kT_ngettext:1,2 -kT_ -L PHP -o $TEMPLATE pigs.php
if [ x$1 == 'x-p' ]; then
    msgfmt --statistics $TEMPLATE
else
    if [ -f $1.po ]; then
	msgmerge -o .tmp$1.po $1.po $TEMPLATE
	mv .tmp$1.po $1.po
	msgfmt --statistics $1.po
    else
	echo "Usage: $0 [-p|<basename>]"
    fi
fi