File: poupdate

package info (click to toggle)
potool 0.4-1
  • links: PTS
  • area: main
  • in suites: woody
  • size: 136 kB
  • ctags: 60
  • sloc: ansic: 327; yacc: 160; sh: 95; makefile: 74
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