summaryrefslogtreecommitdiff
path: root/dist/scripts
diff options
context:
space:
mode:
authorLudovic Pouzenc <lpouzenc@gmail.com>2013-10-29 20:22:26 +0100
committerLudovic Pouzenc <lpouzenc@gmail.com>2013-10-29 20:22:26 +0100
commit51cda16e1cc2d22a22ceff56700d1edd256171fc (patch)
tree41ac8eb787edb15c764be47eefd0363fa843941d /dist/scripts
parentc98515883097467896a3f46b755c8cb892fe8961 (diff)
downloadeditablesite-51cda16e1cc2d22a22ceff56700d1edd256171fc.tar.gz
editablesite-51cda16e1cc2d22a22ceff56700d1edd256171fc.tar.bz2
editablesite-51cda16e1cc2d22a22ceff56700d1edd256171fc.zip
Debut d'automatisation de la construction tarball
Diffstat (limited to 'dist/scripts')
-rwxr-xr-xdist/scripts/po2mo.sh11
1 files changed, 8 insertions, 3 deletions
diff --git a/dist/scripts/po2mo.sh b/dist/scripts/po2mo.sh
index 7be049b..79f344d 100755
--- a/dist/scripts/po2mo.sh
+++ b/dist/scripts/po2mo.sh
@@ -1,9 +1,14 @@
#!/bin/bash
-for f in *.po
+srcbase=$1
+dstbase=$2
+
+echo "Generating locales..."
+for f in $(ls $srcbase/*.po)
do
- mo_dir=${f%%.po}.utf8/LC_MESSAGES/
+ fname=$(basename "$f")
+ mo_dir="$dstbase"/${fname%%.po}.utf8/LC_MESSAGES
[ -d "$mo_dir" ] || mkdir -p "$mo_dir"
- echo msgfmt -o "$mo_dir/editablesite.mo" "$f"
+ #echo msgfmt -o "'$mo_dir/editablesite.mo'" "'$f'"
msgfmt -o "$mo_dir/editablesite.mo" "$f"
done