[PC-BSD Commits] r962 - in pbibuild/modules/sylpheed: . overlay-dir

svn at pcbsd.org svn at pcbsd.org
Wed Dec 5 17:49:27 PST 2007


Author: gonzalo
Date: 2007-12-05 17:49:27 -0800 (Wed, 05 Dec 2007)
New Revision: 962

Modified:
   pbibuild/modules/sylpheed/build.sh
   pbibuild/modules/sylpheed/copy-files
   pbibuild/modules/sylpheed/overlay-dir/PBI.RemoveScript.sh
   pbibuild/modules/sylpheed/overlay-dir/PBI.SetupScript.sh
   pbibuild/modules/sylpheed/pbi.conf
Log:
New .mo files script manager

Modified: pbibuild/modules/sylpheed/build.sh
===================================================================
--- pbibuild/modules/sylpheed/build.sh	2007-12-06 01:45:36 UTC (rev 961)
+++ pbibuild/modules/sylpheed/build.sh	2007-12-06 01:49:27 UTC (rev 962)
@@ -8,3 +8,15 @@
 # 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="sylpheed.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/sylpheed/copy-files
===================================================================
--- pbibuild/modules/sylpheed/copy-files	2007-12-06 01:45:36 UTC (rev 961)
+++ pbibuild/modules/sylpheed/copy-files	2007-12-06 01:49:27 UTC (rev 962)
@@ -1,4 +1,3 @@
 /usr/local/bin/sylpheed bin/
 /usr/local/share/applications/sylpheed.desktop share/applications/
-/usr/local/share/doc/sylpheed share/doc/
-/usr/local/share/locale/*/LC_MESSAGES/sylpheed.mo share/locale/*/LC_MESSAGES/
\ No newline at end of file
+/usr/local/share/doc/sylpheed share/doc/
\ No newline at end of file

Modified: pbibuild/modules/sylpheed/overlay-dir/PBI.RemoveScript.sh
===================================================================
--- pbibuild/modules/sylpheed/overlay-dir/PBI.RemoveScript.sh	2007-12-06 01:45:36 UTC (rev 961)
+++ pbibuild/modules/sylpheed/overlay-dir/PBI.RemoveScript.sh	2007-12-06 01:49:27 UTC (rev 962)
@@ -9,8 +9,15 @@
 
 rm -fR /usr/local/bin/sylpheed
 rm -fR /usr/local/share/doc/sylpheed
-rm -fR /usr/local/share/locale/*/LC_MESSAGES/sylpheed.mo
 
+# Remove the old locale files since we are uninstalling
+LANGFILE="sylpheed.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/sylpheed/overlay-dir/PBI.SetupScript.sh
===================================================================
--- pbibuild/modules/sylpheed/overlay-dir/PBI.SetupScript.sh	2007-12-06 01:45:36 UTC (rev 961)
+++ pbibuild/modules/sylpheed/overlay-dir/PBI.SetupScript.sh	2007-12-06 01:49:27 UTC (rev 962)
@@ -16,5 +16,15 @@
 #########################################
 ln -s /Programs/${PROGDIR}/.sbin/sylpheed /usr/local/bin/sylpheed
 ln -s /Programs/${PROGDIR}/share/doc/ /usr/local/share/doc/sylpheed
-ln -s /Programs/${PROGDIR}/share/locale/*/LC_MESSAGES/ /usr/local/share/locale/*/LC_MESSAGES/sylpheed.mo
+
+# Copy over all the LANG files
+LANGFILE="sylpheed.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
+
+
 echo "LAUNCHCLOSE: /usr/local/bin/sylpheed"

Modified: pbibuild/modules/sylpheed/pbi.conf
===================================================================
--- pbibuild/modules/sylpheed/pbi.conf	2007-12-06 01:45:36 UTC (rev 961)
+++ pbibuild/modules/sylpheed/pbi.conf	2007-12-06 01:49:27 UTC (rev 962)
@@ -32,6 +32,6 @@
 
 # Build Key - Change this to anything else to trigger a rebuild 
 #           - The rebuild will take place even if port is still the same ver
-BUILDKEY="33"
+BUILDKEY="34"
 
 export PBIPORT MAKEOPTS PROGNAME PROGWEB PROGAUTHOR OTHERPORT PROGICON PROGLIBS PBIUPDATE BUILDKEY



More information about the Commits mailing list