summaryrefslogtreecommitdiff
path: root/pocompile.sh
blob: 1800c5800d42b30062612b36fc7f33e3c6650bef (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/sh
# Helper script to compile all .po files in the i18n directroy into .mo files.

# Copied from porthole :)
cd i18n
for ITEM in *.po; do
	ITEM2=${ITEM/.po/}
	LANG=${ITEM2/_??/}
	mkdir ${LANG}/LC_MESSAGES -p

	if [ $1 == "-emerge" ]; then
		msgfmt ${ITEM} -o portato.${LANG}
	else
		msgfmt ${ITEM} -o ${LANG}/LC_MESSAGES/portato.mo
	fi
done
into their own commands.Jason A. Donenfeld4-72/+97 2012-09-16Support recursive and forced removal.Jason A. Donenfeld2-12/+28 2012-09-16Small stylistic things.Jason A. Donenfeld1-9/+9 2012-09-15Use --force flag in keepassx import.Jason A. Donenfeld1-1/+1