File: poupdate

package info (click to toggle)
potool 0.10-1
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 184 kB
  • ctags: 93
  • sloc: ansic: 595; yacc: 350; sh: 233; makefile: 82; perl: 50
file content (17 lines) | stat: -rwxr-xr-x 253 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/bash

MO_DIR=/usr/local/share/locale/pl/LC_MESSAGES

if [ $# -gt 0 ]; then
	files=$*
else
	files=*.po
fi

for f in $files; do
	[ -f $f ] || continue
	d=`echo $f | sed 's/\.po//'`
	echo $d
	rm -f ${MO_DIR}/$d.mo
	msgfmt $f -o ${MO_DIR}/$d.mo
done