File: poupdate

package info (click to toggle)
potool 0.12-1
  • links: PTS
  • area: main
  • in suites: wheezy
  • size: 192 kB
  • sloc: ansic: 613; yacc: 350; sh: 231; makefile: 83; perl: 51
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