[PC-BSD Commits] r1048 - in pbibuild/modules/gimp: . overlay-dir

svn at pcbsd.org svn at pcbsd.org
Wed Dec 19 13:29:44 PST 2007


Author: kris
Date: 2007-12-19 13:29:43 -0800 (Wed, 19 Dec 2007)
New Revision: 1048

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

Added gimp lang files to module, so it works with other languages



Modified: pbibuild/modules/gimp/build.sh
===================================================================
--- pbibuild/modules/gimp/build.sh	2007-12-19 21:03:53 UTC (rev 1047)
+++ pbibuild/modules/gimp/build.sh	2007-12-19 21:29:43 UTC (rev 1048)
@@ -8,3 +8,16 @@
 # MODULEDIR = The location of the module directory for this PBI
 #   PORTVER = Version number of the port we used to build
 ##############################################################################
+
+# Get all the various language files and copy them to the PBI
+LANGFILE="gimp.mo"
+mkdir ${PBIDIR}/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}/
+  fi
+done

Modified: pbibuild/modules/gimp/overlay-dir/PBI.RemoveScript.sh
===================================================================
--- pbibuild/modules/gimp/overlay-dir/PBI.RemoveScript.sh	2007-12-19 21:03:53 UTC (rev 1047)
+++ pbibuild/modules/gimp/overlay-dir/PBI.RemoveScript.sh	2007-12-19 21:29:43 UTC (rev 1048)
@@ -13,6 +13,14 @@
 rm /usr/local/libexec/gimp
 rm /usr/local/bin/gimp
 
+# Remove the old locale files since we are uninstalling
+LANGFILE="gimp.mo"
+cd /Programs/${PROGDIR}/locale
+for i in `ls`
+do
+  rm /usr/local/share/locale/${i}/LC_MESSAGES/${LANGFILE}
+done
+
 cd /home 
  for i in `ls` 
  do 

Modified: pbibuild/modules/gimp/overlay-dir/PBI.SetupScript.sh
===================================================================
--- pbibuild/modules/gimp/overlay-dir/PBI.SetupScript.sh	2007-12-19 21:03:53 UTC (rev 1047)
+++ pbibuild/modules/gimp/overlay-dir/PBI.SetupScript.sh	2007-12-19 21:29:43 UTC (rev 1048)
@@ -21,5 +21,15 @@
 ln -s /Programs/${PROGDIR}/libexec/gimp /usr/local/libexec/gimp
 ln -s /Programs/${PROGDIR}/.sbin/gimp /usr/local/bin/gimp
 
+# Copy over all the LANG files
+LANGFILE="gimp.mo"
+cd /Programs/${PROGDIR}/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}
+done
+
+
 # Enable the start when finished button
 echo "LAUNCHCLOSE: /usr/local/bin/gimp"



More information about the Commits mailing list