No empty .Rs/.Re
[netbsd-mini2440.git] / gnu / dist / gettext / gettext-tools / examples / po / mmsmallpo.sh
blob0faedd807469d89b444cd487cc96bfed5b47f9e3
1 #!/bin/sh
2 # Usage: mmsmallpo.sh hello-foo ll
4 set -e
6 test $# = 2 || { echo "Usage: mmsmallpo.sh hello-foo ll" 1>&2; exit 1; }
7 directory=$1
8 language=$2
10 msgmerge --force-po $language.po $directory.pot -o - | \
11 msgattrib --no-obsolete | \
12 sed -e "s, $directory/, ,g" | sed -e "s,gettext-examples,$directory," | \
13 sed -e '/^"POT-Creation-Date: .*"$/{
15 s/P/P/
23 }' \
24 > ../$directory/po/$language.po