changeset 801:cc284445181b pyntnclick

Fix install-po.sh to handle module locale correctly
author Neil Muller <neil@dip.sun.ac.za>
date Sun, 27 Jan 2013 14:47:58 +0200
parents 374d96e0b55e
children 5ec7905b2365
files pyntnclick/data/locale/README.txt pyntnclick/data/locales/README.txt scripts/install-po.sh
diffstat 3 files changed, 5 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/pyntnclick/data/locale/README.txt	Sun Jan 27 14:47:58 2013 +0200
@@ -0,0 +1,3 @@
+This is for mo files for the pyntnclick tools.
+
+We don't want to store the mo files in VCS.
--- a/pyntnclick/data/locales/README.txt	Sun Jan 27 13:42:58 2013 +0200
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,3 +0,0 @@
-This is for mo files for the pyntnclick tools.
-
-We don't want to store the mo files in VCS.
--- a/scripts/install-po.sh	Sun Jan 27 13:42:58 2013 +0200
+++ b/scripts/install-po.sh	Sun Jan 27 14:47:58 2013 +0200
@@ -12,8 +12,8 @@
 done
 
 for pofile in pyntnclick/data/po/*.po; do
-  molang=`echo $pofile | sed -e 's#data/po/\(.*\)\\.po#\\1#'`;
+  molang=`echo $pofile | sed -e 's#pyntnclick/data/po/\(.*\)\\.po#\\1#'`;
   mofile=`echo $pofile | sed -e 's/\\.po/.mo/'`;
-  mkdir -p data/locale/$molang/LC_MESSAGES
+  mkdir -p pyntnclick/data/locale/$molang/LC_MESSAGES
   scripts/msgfmt.py -o pyntnclick/data/locale/$molang/LC_MESSAGES/pyntnclick-tools.mo $pofile
 done