[PC-BSD Commits] r961 - in pbibuild/modules/tellico: . mime-dir overlay-dir

svn at pcbsd.org svn at pcbsd.org
Wed Dec 5 17:45:36 PST 2007


Author: gonzalo
Date: 2007-12-05 17:45:36 -0800 (Wed, 05 Dec 2007)
New Revision: 961

Added:
   pbibuild/modules/tellico/mime-dir/tellico
Modified:
   pbibuild/modules/tellico/build.sh
   pbibuild/modules/tellico/copy-files
   pbibuild/modules/tellico/overlay-dir/PBI.RemoveScript.sh
   pbibuild/modules/tellico/overlay-dir/PBI.SetupScript.sh
   pbibuild/modules/tellico/pbi.conf
Log:
New .mo files script manager and mimetype added

Modified: pbibuild/modules/tellico/build.sh
===================================================================
--- pbibuild/modules/tellico/build.sh	2007-12-06 01:35:52 UTC (rev 960)
+++ pbibuild/modules/tellico/build.sh	2007-12-06 01:45:36 UTC (rev 961)
@@ -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="tellico.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/tellico/copy-files
===================================================================
--- pbibuild/modules/tellico/copy-files	2007-12-06 01:35:52 UTC (rev 960)
+++ pbibuild/modules/tellico/copy-files	2007-12-06 01:45:36 UTC (rev 961)
@@ -19,25 +19,4 @@
 /usr/local/share/icons/hicolor/48x48/mimetypes/tellico.png share/icons/hicolor/48x48/mimetypes/
 /usr/local/share/icons/hicolor/64x64/apps/tellico.png share/icons/hicolor/64x64/apps/
 /usr/local/share/icons/hicolor/64x64/mimetypes/tellico.png share/icons/hicolor/64x64/mimetypes/
-/usr/local/share/locale/bg/LC_MESSAGES/tellico.mo share/locale/bg/LC_MESSAGES/
-/usr/local/share/locale/ca/LC_MESSAGES/tellico.mo share/locale/ca/LC_MESSAGES/
-/usr/local/share/locale/cs/LC_MESSAGES/tellico.mo share/locale/cs/LC_MESSAGES/
-/usr/local/share/locale/de/LC_MESSAGES/tellico.mo share/locale/de/LC_MESSAGES/
-/usr/local/share/locale/ee/LC_MESSAGES/tellico.mo share/locale/ee/LC_MESSAGES/
-/usr/local/share/locale/en_GB/LC_MESSAGES/tellico.mo share/locale/en_GB/LC_MESSAGES/
-/usr/local/share/locale/es/LC_MESSAGES/tellico.mo share/locale/es/LC_MESSAGES/
-/usr/local/share/locale/fi/LC_MESSAGES/tellico.mo share/locale/fi/LC_MESSAGES/
-/usr/local/share/locale/fr/LC_MESSAGES/tellico.mo share/locale/fr/LC_MESSAGES/
-/usr/local/share/locale/hu/LC_MESSAGES/tellico.mo share/locale/hu/LC_MESSAGES/
-/usr/local/share/locale/it/LC_MESSAGES/tellico.mo share/locale/it/LC_MESSAGES/
-/usr/local/share/locale/nb/LC_MESSAGES/tellico.mo share/locale/nb/LC_MESSAGES/
-/usr/local/share/locale/nl/LC_MESSAGES/tellico.mo share/locale/nl/LC_MESSAGES/
-/usr/local/share/locale/nn/LC_MESSAGES/tellico.mo share/locale/nn/LC_MESSAGES/
-/usr/local/share/locale/pl/LC_MESSAGES/tellico.mo share/locale/pl/LC_MESSAGES/
-/usr/local/share/locale/pt/LC_MESSAGES/tellico.mo share/locale/pt/LC_MESSAGES/
-/usr/local/share/locale/pt_BR/LC_MESSAGES/tellico.mo share/locale/pt_BR/LC_MESSAGES/
-/usr/local/share/locale/ro/LC_MESSAGES/tellico.mo share/locale/ro/LC_MESSAGES/
-/usr/local/share/locale/ru/LC_MESSAGES/tellico.mo share/locale/ru/LC_MESSAGES/
-/usr/local/share/locale/sv/LC_MESSAGES/tellico.mo share/locale/sv/LC_MESSAGES/
-/usr/local/share/locale/tr/LC_MESSAGES/tellico.mo share/locale/tr/LC_MESSAGES/
 /usr/local/share/mimelnk/application/x-tellico.desktop share/mimelnk/application/

Added: pbibuild/modules/tellico/mime-dir/tellico

Modified: pbibuild/modules/tellico/overlay-dir/PBI.RemoveScript.sh
===================================================================
--- pbibuild/modules/tellico/overlay-dir/PBI.RemoveScript.sh	2007-12-06 01:35:52 UTC (rev 960)
+++ pbibuild/modules/tellico/overlay-dir/PBI.RemoveScript.sh	2007-12-06 01:45:36 UTC (rev 961)
@@ -16,9 +16,16 @@
 rm -fR /usr/local/share/doc/HTML/fr/tellico
 rm -fR /usr/local/share/icons/hicolor/*/apps/tellico.png
 rm -fR /usr/local/share/icons/hicolor/*/mimetypes/tellico.png
-rm -fR /usr/local/share/locale/*/LC_MESSAGES/tellico.mo
 rm -fR /usr/local/share/mimelnk/application/x-tellico.desktop
 
+# Remove the old locale files since we are uninstalling
+LANGFILE="tellico.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/tellico/overlay-dir/PBI.SetupScript.sh
===================================================================
--- pbibuild/modules/tellico/overlay-dir/PBI.SetupScript.sh	2007-12-06 01:35:52 UTC (rev 960)
+++ pbibuild/modules/tellico/overlay-dir/PBI.SetupScript.sh	2007-12-06 01:45:36 UTC (rev 961)
@@ -35,27 +35,15 @@
 ln -s /Programs/${PROGDIR}/share/icons/hicolor/48x48/mimetypes/tellico.png /usr/local/share/icons/hicolor/48x48/mimetypes/tellico.png
 ln -s /Programs/${PROGDIR}/share/icons/hicolor/64x64/apps/tellico.png /usr/local/share/icons/hicolor/64x64/apps/tellico.png
 ln -s /Programs/${PROGDIR}/share/icons/hicolor/64x64/mimetypes/tellico.png /usr/local/share/icons/hicolor/64x64/mimetypes/tellico.png
-ln -s /Programs/${PROGDIR}/share/locale/bg/LC_MESSAGES/tellico.mo /usr/local/share/locale/bg/LC_MESSAGES/tellico.mo
-ln -s /Programs/${PROGDIR}/share/locale/ca/LC_MESSAGES/tellico.mo /usr/local/share/locale/ca/LC_MESSAGES/tellico.mo
-ln -s /Programs/${PROGDIR}/share/locale/cs/LC_MESSAGES/tellico.mo /usr/local/share/locale/cs/LC_MESSAGES/tellico.mo
-ln -s /Programs/${PROGDIR}/share/locale/de/LC_MESSAGES/tellico.mo /usr/local/share/locale/de/LC_MESSAGES/tellico.mo
-ln -s /Programs/${PROGDIR}/share/locale/ee/LC_MESSAGES/tellico.mo /usr/local/share/locale/ee/LC_MESSAGES/tellico.mo
-ln -s /Programs/${PROGDIR}/share/locale/en_GB/LC_MESSAGES/tellico.mo /usr/local/share/locale/en_GB/LC_MESSAGES/tellico.mo
-ln -s /Programs/${PROGDIR}/share/locale/es/LC_MESSAGES/tellico.mo /usr/local/share/locale/es/LC_MESSAGES/tellico.mo
-ln -s /Programs/${PROGDIR}/share/locale/fi/LC_MESSAGES/tellico.mo /usr/local/share/locale/fi/LC_MESSAGES/tellico.mo
-ln -s /Programs/${PROGDIR}/share/locale/fr/LC_MESSAGES/tellico.mo /usr/local/share/locale/fr/LC_MESSAGES/tellico.mo
-ln -s /Programs/${PROGDIR}/share/locale/hu/LC_MESSAGES/tellico.mo /usr/local/share/locale/hu/LC_MESSAGES/tellico.mo
-ln -s /Programs/${PROGDIR}/share/locale/it/LC_MESSAGES/tellico.mo /usr/local/share/locale/it/LC_MESSAGES/tellico.mo
-ln -s /Programs/${PROGDIR}/share/locale/nb/LC_MESSAGES/tellico.mo /usr/local/share/locale/nb/LC_MESSAGES/tellico.mo
-ln -s /Programs/${PROGDIR}/share/locale/nl/LC_MESSAGES/tellico.mo /usr/local/share/locale/nl/LC_MESSAGES/tellico.mo
-ln -s /Programs/${PROGDIR}/share/locale/nn/LC_MESSAGES/tellico.mo /usr/local/share/locale/nn/LC_MESSAGES/tellico.mo
-ln -s /Programs/${PROGDIR}/share/locale/pl/LC_MESSAGES/tellico.mo /usr/local/share/locale/pl/LC_MESSAGES/tellico.mo
-ln -s /Programs/${PROGDIR}/share/locale/pt/LC_MESSAGES/tellico.mo /usr/local/share/locale/pt/LC_MESSAGES/tellico.mo
-ln -s /Programs/${PROGDIR}/share/locale/pt_BR/LC_MESSAGES/tellico.mo /usr/local/share/locale/pt_BR/LC_MESSAGES/tellico.mo
-ln -s /Programs/${PROGDIR}/share/locale/ro/LC_MESSAGES/tellico.mo /usr/local/share/locale/ro/LC_MESSAGES/tellico.mo
-ln -s /Programs/${PROGDIR}/share/locale/ru/LC_MESSAGES/tellico.mo /usr/local/share/locale/ru/LC_MESSAGES/tellico.mo
-ln -s /Programs/${PROGDIR}/share/locale/sv/LC_MESSAGES/tellico.mo /usr/local/share/locale/sv/LC_MESSAGES/tellico.mo
-ln -s /Programs/${PROGDIR}/share/locale/tr/LC_MESSAGES/tellico.mo /usr/local/share/locale/tr/LC_MESSAGES/tellico.mo
 ln -s /Programs/${PROGDIR}/share/mimelnk/application/x-tellico.desktop /usr/local/share/mimelnk/application/x-tellico.desktop
 
+# Copy over all the LANG files
+LANGFILE="tellico.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/tellico"

Modified: pbibuild/modules/tellico/pbi.conf
===================================================================
--- pbibuild/modules/tellico/pbi.conf	2007-12-06 01:35:52 UTC (rev 960)
+++ pbibuild/modules/tellico/pbi.conf	2007-12-06 01:45:36 UTC (rev 961)
@@ -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="02"
+BUILDKEY="03"
 
 export PBIPORT MAKEOPTS PROGNAME PROGWEB PROGAUTHOR OTHERPORT PROGICON PROGLIBS PBIUPDATE BUILDKEY



More information about the Commits mailing list