summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xpocompile.sh7
1 files changed, 6 insertions, 1 deletions
diff --git a/pocompile.sh b/pocompile.sh
index b895b9a..1800c58 100755
--- a/pocompile.sh
+++ b/pocompile.sh
@@ -7,5 +7,10 @@ for ITEM in *.po; do
ITEM2=${ITEM/.po/}
LANG=${ITEM2/_??/}
mkdir ${LANG}/LC_MESSAGES -p
- msgfmt ${ITEM} -o ${LANG}/LC_MESSAGES/portato.mo
+
+ if [ $1 == "-emerge" ]; then
+ msgfmt ${ITEM} -o portato.${LANG}
+ else
+ msgfmt ${ITEM} -o ${LANG}/LC_MESSAGES/portato.mo
+ fi
done