[PC-BSD Commits] r994 - in pbibuild/modules/bmpx: . overlay-dir

svn at pcbsd.org svn at pcbsd.org
Tue Dec 11 06:33:25 PST 2007


Author: kris
Date: 2007-12-11 06:33:25 -0800 (Tue, 11 Dec 2007)
New Revision: 994

Modified:
   pbibuild/modules/bmpx/build.sh
   pbibuild/modules/bmpx/overlay-dir/PBI.RemoveScript.sh
   pbibuild/modules/bmpx/overlay-dir/PBI.SetupScript.sh
Log:

Fixed up the location of the bmpx.mo files to allow the translations to
load properly



Modified: pbibuild/modules/bmpx/build.sh
===================================================================
--- pbibuild/modules/bmpx/build.sh	2007-12-10 19:04:29 UTC (rev 993)
+++ pbibuild/modules/bmpx/build.sh	2007-12-11 14:33:25 UTC (rev 994)
@@ -11,14 +11,14 @@
 
 # Get all the various language files and copy them to the PBI
 LANGFILE="bmpx.mo"
-mkdir ${PBIDIR}/locale/
+mkdir -p ${PBIDIR}/share/locale/
 cd /usr/local/share/locale
 for i in `ls`
 do
   if [ -e "/usr/local/share/locale/${i}/LC_MESSAGES/${LANGFILE}" ]
   then
-    mkdir ${PBIDIR}/locale/${i}
-    cp /usr/local/share/locale/${i}/LC_MESSAGES/${LANGFILE} ${PBIDIR}/locale/${i}/
+    mkdir -p ${PBIDIR}/share/locale/${i}/LC_MESSAGES
+    cp /usr/local/share/locale/${i}/LC_MESSAGES/${LANGFILE} ${PBIDIR}/share/locale/${i}/LC_MESSAGES/
   fi
 done
 

Modified: pbibuild/modules/bmpx/overlay-dir/PBI.RemoveScript.sh
===================================================================
--- pbibuild/modules/bmpx/overlay-dir/PBI.RemoveScript.sh	2007-12-10 19:04:29 UTC (rev 993)
+++ pbibuild/modules/bmpx/overlay-dir/PBI.RemoveScript.sh	2007-12-11 14:33:25 UTC (rev 994)
@@ -14,7 +14,7 @@
 
 # Remove the old locale files since we are uninstalling
 LANGFILE="bmpx.mo"
-cd /Programs/${PROGDIR}/locale
+cd /Programs/${PROGDIR}/share/locale/
 for i in `ls`
 do
   rm /usr/local/share/locale/${i}/LC_MESSAGES/${LANGFILE}

Modified: pbibuild/modules/bmpx/overlay-dir/PBI.SetupScript.sh
===================================================================
--- pbibuild/modules/bmpx/overlay-dir/PBI.SetupScript.sh	2007-12-10 19:04:29 UTC (rev 993)
+++ pbibuild/modules/bmpx/overlay-dir/PBI.SetupScript.sh	2007-12-11 14:33:25 UTC (rev 994)
@@ -24,11 +24,11 @@
 
 # Copy over all the LANG files
 LANGFILE="bmpx.mo"
-cd /Programs/${PROGDIR}/locale
+cd /Programs/${PROGDIR}/share/locale
 for i in `ls`
 do
   mkdir -p /usr/local/share/locale/${i}/LC_MESSAGES >/dev/null 2>/dev/null
-  cp /Programs/${PROGDIR}/locale/${i}/${LANGFILE} /usr/local/share/locale/${i}/LC_MESSAGES/${LANGFILE}
+  cp /Programs/${PROGDIR}/share/locale/${i}/LC_MESSAGES/${LANGFILE} /usr/local/share/locale/${i}/LC_MESSAGES/${LANGFILE}
 done
 
 echo "LAUNCHCLOSE: /usr/local/bin/beep-media-player-2-bin"



More information about the Commits mailing list