From 51cda16e1cc2d22a22ceff56700d1edd256171fc Mon Sep 17 00:00:00 2001 From: Ludovic Pouzenc Date: Tue, 29 Oct 2013 20:22:26 +0100 Subject: Debut d'automatisation de la construction tarball --- dist/scripts/po2mo.sh | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'dist/scripts') 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 -- cgit v1.2.3