[PC-BSD Commits] r960 - in pbibuild/modules/wormux: . overlay-dir

svn at pcbsd.org svn at pcbsd.org
Wed Dec 5 17:35:52 PST 2007


Author: gonzalo
Date: 2007-12-05 17:35:52 -0800 (Wed, 05 Dec 2007)
New Revision: 960

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

Modified: pbibuild/modules/wormux/build.sh
===================================================================
--- pbibuild/modules/wormux/build.sh	2007-12-06 01:30:40 UTC (rev 959)
+++ pbibuild/modules/wormux/build.sh	2007-12-06 01:35:52 UTC (rev 960)
@@ -13,3 +13,16 @@
 sed -e "s,CHANGEME,Wormux${PORTVER},g" ${PBIDIR}/scripts/removepbi.sh > /tmp/removepbi.sh
 mv /tmp/removepbi.sh ${PBIDIR}/scripts/removepbi.sh
 chmod 755 ${PBIDIR}/scripts/removepbi.sh
+
+# Get all the various language files and copy them to the PBI
+LANGFILE="wormux.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
\ No newline at end of file

Modified: pbibuild/modules/wormux/copy-files
===================================================================
--- pbibuild/modules/wormux/copy-files	2007-12-06 01:30:40 UTC (rev 959)
+++ pbibuild/modules/wormux/copy-files	2007-12-06 01:35:52 UTC (rev 960)
@@ -1,5 +1,4 @@
 /usr/local/bin/wormux bin/
 /usr/local/man/man6/wormux.6.gz man/man6/
 /usr/local/share/applications/wormux.desktop share/applications/
-/usr/local/share/locale/*/LC_MESSAGES/wormux.mo share/locale/*/LC_MESSAGES/
-/usr/local/share/wormux/* share/wormux/
\ No newline at end of file
+/usr/local/share/wormux share/wormux
\ No newline at end of file

Modified: pbibuild/modules/wormux/overlay-dir/PBI.RemoveScript.sh
===================================================================
--- pbibuild/modules/wormux/overlay-dir/PBI.RemoveScript.sh	2007-12-06 01:30:40 UTC (rev 959)
+++ pbibuild/modules/wormux/overlay-dir/PBI.RemoveScript.sh	2007-12-06 01:35:52 UTC (rev 960)
@@ -7,26 +7,17 @@
 # TIP: 'kdialog' should be used for user interaction. 
 #########################################
 rm -fR /usr/local/bin/wormux
-rm -fR /usr/local/share/locale/bs/LC_MESSAGES/wormux.mo
-rm -fR /usr/local/share/locale/ca/LC_MESSAGES/wormux.mo
-rm -fR /usr/local/share/locale/da/LC_MESSAGES/wormux.mo
-rm -fR /usr/local/share/locale/de/LC_MESSAGES/wormux.mo
-rm -fR /usr/local/share/locale/eo/LC_MESSAGES/wormux.mo
-rm -fR /usr/local/share/locale/es/LC_MESSAGES/wormux.mo
-rm -fR /usr/local/share/locale/fi/LC_MESSAGES/wormux.mo
-rm -fR /usr/local/share/locale/fr/LC_MESSAGES/wormux.mo
-rm -fR /usr/local/share/locale/hu/LC_MESSAGES/wormux.mo
-rm -fR /usr/local/share/locale/it/LC_MESSAGES/wormux.mo
-rm -fR /usr/local/share/locale/nl/LC_MESSAGES/wormux.mo
-rm -fR /usr/local/share/locale/pl/LC_MESSAGES/wormux.mo
-rm -fR /usr/local/share/locale/pt/LC_MESSAGES/wormux.mo
-rm -fR /usr/local/share/locale/ro/LC_MESSAGES/wormux.mo
-rm -fR /usr/local/share/locale/ru/LC_MESSAGES/wormux.mo
-rm -fR /usr/local/share/locale/sk/LC_MESSAGES/wormux.mo
-rm -fR /usr/local/share/locale/sv/LC_MESSAGES/wormux.mo
-rm -fR /usr/local/share/locale/tr/LC_MESSAGES/wormux.mo
 rm -fR /usr/local/man/man6/wormux.6.gz
 rm -fR /usr/local/share/wormux
+
+# Remove the old locale files since we are uninstalling
+LANGFILE="wormux.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/wormux/overlay-dir/PBI.SetupScript.sh
===================================================================
--- pbibuild/modules/wormux/overlay-dir/PBI.SetupScript.sh	2007-12-06 01:30:40 UTC (rev 959)
+++ pbibuild/modules/wormux/overlay-dir/PBI.SetupScript.sh	2007-12-06 01:35:52 UTC (rev 960)
@@ -15,26 +15,16 @@
 # echo 'MSG: <text>' # Display this text above progress bar
 #########################################
 ln -s /Programs/${PROGDIR}/.sbin/wormux /usr/local/bin/wormux
-ln -s /Programs/${PROGDIR}/share/locale/bs/LC_MESSAGES/wormux.mo /usr/local/share/locale/bs/LC_MESSAGES/wormux.mo
-ln -s /Programs/${PROGDIR}/share/locale/ca/LC_MESSAGES/wormux.mo /usr/local/share/locale/ca/LC_MESSAGES/wormux.mo
-ln -s /Programs/${PROGDIR}/share/locale/da/LC_MESSAGES/wormux.mo /usr/local/share/locale/da/LC_MESSAGES/wormux.mo
-ln -s /Programs/${PROGDIR}/share/locale/de/LC_MESSAGES/wormux.mo /usr/local/share/locale/de/LC_MESSAGES/wormux.mo
-ln -s /Programs/${PROGDIR}/share/locale/eo/LC_MESSAGES/wormux.mo /usr/local/share/locale/eo/LC_MESSAGES/wormux.mo
-ln -s /Programs/${PROGDIR}/share/locale/es/LC_MESSAGES/wormux.mo /usr/local/share/locale/es/LC_MESSAGES/wormux.mo
-ln -s /Programs/${PROGDIR}/share/locale/fi/LC_MESSAGES/wormux.mo /usr/local/share/locale/fi/LC_MESSAGES/wormux.mo
-ln -s /Programs/${PROGDIR}/share/locale/fr/LC_MESSAGES/wormux.mo /usr/local/share/locale/fr/LC_MESSAGES/wormux.mo
-ln -s /Programs/${PROGDIR}/share/locale/hu/LC_MESSAGES/wormux.mo /usr/local/share/locale/hu/LC_MESSAGES/wormux.mo
-ln -s /Programs/${PROGDIR}/share/locale/it/LC_MESSAGES/wormux.mo /usr/local/share/locale/it/LC_MESSAGES/wormux.mo
-ln -s /Programs/${PROGDIR}/share/locale/nl/LC_MESSAGES/wormux.mo /usr/local/share/locale/nl/LC_MESSAGES/wormux.mo
-ln -s /Programs/${PROGDIR}/share/locale/pl/LC_MESSAGES/wormux.mo /usr/local/share/locale/pl/LC_MESSAGES/wormux.mo
-ln -s /Programs/${PROGDIR}/share/locale/pt/LC_MESSAGES/wormux.mo /usr/local/share/locale/pt/LC_MESSAGES/wormux.mo
-ln -s /Programs/${PROGDIR}/share/locale/pt-BR/LC_MESSAGES/wormux.mo /usr/local/share/locale/pt-BR/LC_MESSAGES/wormux.mo
-ln -s /Programs/${PROGDIR}/share/locale/ro/LC_MESSAGES/wormux.mo /usr/local/share/locale/ro/LC_MESSAGES/wormux.mo
-ln -s /Programs/${PROGDIR}/share/locale/ru/LC_MESSAGES/wormux.mo /usr/local/share/locale/ru/LC_MESSAGES/wormux.mo
-ln -s /Programs/${PROGDIR}/share/locale/sk/LC_MESSAGES/wormux.mo /usr/local/share/locale/sk/LC_MESSAGES/wormux.mo
-ln -s /Programs/${PROGDIR}/share/locale/sv/LC_MESSAGES/wormux.mo /usr/local/share/locale/sv/LC_MESSAGES/wormux.mo
-ln -s /Programs/${PROGDIR}/share/locale/tr/LC_MESSAGES/wormux.mo /usr/local/share/locale/tr/LC_MESSAGES/wormux.mo
 ln -s /Programs/${PROGDIR}/man/man6/wormux.6.gz /usr/local/man/man6/wormux.6.gz
 ln -s /Programs/${PROGDIR}/share/wormux /usr/local/share/wormux
 
+# Copy over all the LANG files
+LANGFILE="wormux.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/wormux"

Modified: pbibuild/modules/wormux/pbi.conf
===================================================================
--- pbibuild/modules/wormux/pbi.conf	2007-12-06 01:30:40 UTC (rev 959)
+++ pbibuild/modules/wormux/pbi.conf	2007-12-06 01:35:52 UTC (rev 960)
@@ -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="31"
+BUILDKEY="32"
 
 export PBIPORT MAKEOPTS PROGNAME PROGWEB PROGAUTHOR OTHERPORT PROGICON PROGLIBS PBIUPDATE BUILDKEY



More information about the Commits mailing list