[PC-BSD Commits] r959 - in pbibuild/modules/xchat: . overlay-dir

svn at pcbsd.org svn at pcbsd.org
Wed Dec 5 17:30:40 PST 2007


Author: gonzalo
Date: 2007-12-05 17:30:40 -0800 (Wed, 05 Dec 2007)
New Revision: 959

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

Modified: pbibuild/modules/xchat/build.sh
===================================================================
--- pbibuild/modules/xchat/build.sh	2007-12-06 01:24:27 UTC (rev 958)
+++ pbibuild/modules/xchat/build.sh	2007-12-06 01:30:40 UTC (rev 959)
@@ -9,3 +9,15 @@
 #   PORTVER = Version number of the port we used to build
 ##############################################################################
 
+# Get all the various language files and copy them to the PBI
+LANGFILE="xchat.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/xchat/copy-files
===================================================================
--- pbibuild/modules/xchat/copy-files	2007-12-06 01:24:27 UTC (rev 958)
+++ pbibuild/modules/xchat/copy-files	2007-12-06 01:30:40 UTC (rev 959)
@@ -2,30 +2,4 @@
 /usr/local/lib/xchat/plugins/* lib/xchat/plugins/
 /usr/local/share/applications/xchat.desktop share/applications/xchat.desktop
 /usr/local/share/dbus-1/services/org.xchat.service.service share/dbus-1/services/org.xchat.service.service
-/usr/local/share/locale/be/LC_MESSAGES/xchat.mo share/locale/be/LC_MESSAGES/xchat.mo
-/usr/local/share/locale/ca/LC_MESSAGES/xchat.mo share/locale/ca/LC_MESSAGES/xchat.mo
-/usr/local/share/locale/cs/LC_MESSAGES/xchat.mo share/locale/cs/LC_MESSAGES/xchat.mo
-/usr/local/share/locale/de/LC_MESSAGES/xchat.mo share/locale/de/LC_MESSAGES/xchat.mo
-/usr/local/share/locale/el/LC_MESSAGES/xchat.mo share/locale/el/LC_MESSAGES/xchat.mo
-/usr/local/share/locale/es/LC_MESSAGES/xchat.mo share/locale/es/LC_MESSAGES/xchat.mo
-/usr/local/share/locale/fi/LC_MESSAGES/xchat.mo share/locale/fi/LC_MESSAGES/xchat.mo
-/usr/local/share/locale/fr/LC_MESSAGES/xchat.mo share/locale/fr/LC_MESSAGES/xchat.mo
-/usr/local/share/locale/gl/LC_MESSAGES/xchat.mo share/locale/gl/LC_MESSAGES/xchat.mo
-/usr/local/share/locale/hu/LC_MESSAGES/xchat.mo share/locale/hu/LC_MESSAGES/xchat.mo
-/usr/local/share/locale/it/LC_MESSAGES/xchat.mo share/locale/it/LC_MESSAGES/xchat.mo
-/usr/local/share/locale/ja/LC_MESSAGES/xchat.mo share/locale/ja/LC_MESSAGES/xchat.mo
-/usr/local/share/locale/ko/LC_MESSAGES/xchat.mo share/locale/ko/LC_MESSAGES/xchat.mo
-/usr/local/share/locale/lt/LC_MESSAGES/xchat.mo share/locale/lt/LC_MESSAGES/xchat.mo
-/usr/local/share/locale/mk/LC_MESSAGES/xchat.mo share/locale/mk/LC_MESSAGES/xchat.mo
-/usr/local/share/locale/nl/LC_MESSAGES/xchat.mo share/locale/nl/LC_MESSAGES/xchat.mo
-/usr/local/share/locale/pa/LC_MESSAGES/xchat.mo share/locale/pa/LC_MESSAGES/xchat.mo
-/usr/local/share/locale/pt/LC_MESSAGES/xchat.mo share/locale/pt/LC_MESSAGES/xchat.mo
-/usr/local/share/locale/ru/LC_MESSAGES/xchat.mo share/locale/ru/LC_MESSAGES/xchat.mo
-/usr/local/share/locale/sq/LC_MESSAGES/xchat.mo share/locale/sq/LC_MESSAGES/xchat.mo
-/usr/local/share/locale/sr/LC_MESSAGES/xchat.mo share/locale/sr/LC_MESSAGES/xchat.mo
-/usr/local/share/locale/sv/LC_MESSAGES/xchat.mo share/locale/sv/LC_MESSAGES/xchat.mo
-/usr/local/share/locale/uk/LC_MESSAGES/xchat.mo share/locale/uk/LC_MESSAGES/xchat.mo
-/usr/local/share/locale/vi/LC_MESSAGES/xchat.mo share/locale/vi/LC_MESSAGES/xchat.mo
-/usr/local/share/locale/zh_CN/LC_MESSAGES/xchat.mo share/locale/zh_CN/LC_MESSAGES/xchat.mo
-/usr/local/share/locale/zh_TW/LC_MESSAGES/xchat.mo share/locale/zh_TW/LC_MESSAGES/xchat.mo
 /usr/local/share/pixmaps/xchat.png share/pixmaps/xchat.png
\ No newline at end of file

Modified: pbibuild/modules/xchat/overlay-dir/PBI.RemoveScript.sh
===================================================================
--- pbibuild/modules/xchat/overlay-dir/PBI.RemoveScript.sh	2007-12-06 01:24:27 UTC (rev 958)
+++ pbibuild/modules/xchat/overlay-dir/PBI.RemoveScript.sh	2007-12-06 01:30:40 UTC (rev 959)
@@ -7,32 +7,14 @@
 # TIP: 'kdialog' should be used for user interaction. 
 #########################################
 
-rm -fR /usr/local/share/locale/be/LC_MESSAGES/xchat.mo
-rm -fR /usr/local/share/locale/ca/LC_MESSAGES/xchat.mo
-rm -fR /usr/local/share/locale/cs/LC_MESSAGES/xchat.mo
-rm -fR /usr/local/share/locale/de/LC_MESSAGES/xchat.mo
-rm -fR /usr/local/share/locale/el/LC_MESSAGES/xchat.mo
-rm -fR /usr/local/share/locale/es/LC_MESSAGES/xchat.mo
-rm -fR /usr/local/share/locale/fi/LC_MESSAGES/xchat.mo
-rm -fR /usr/local/share/locale/fr/LC_MESSAGES/xchat.mo
-rm -fR /usr/local/share/locale/gl/LC_MESSAGES/xchat.mo
-rm -fR /usr/local/share/locale/hu/LC_MESSAGES/xchat.mo
-rm -fR /usr/local/share/locale/it/LC_MESSAGES/xchat.mo
-rm -fR /usr/local/share/locale/ja/LC_MESSAGES/xchat.mo
-rm -fR /usr/local/share/locale/ko/LC_MESSAGES/xchat.mo
-rm -fR /usr/local/share/locale/lt/LC_MESSAGES/xchat.mo
-rm -fR /usr/local/share/locale/mk/LC_MESSAGES/xchat.mo
-rm -fR /usr/local/share/locale/nl/LC_MESSAGES/xchat.mo
-rm -fR /usr/local/share/locale/pa/LC_MESSAGES/xchat.mo
-rm -fR /usr/local/share/locale/pt/LC_MESSAGES/xchat.mo
-rm -fR /usr/local/share/locale/ru/LC_MESSAGES/xchat.mo
-rm -fR /usr/local/share/locale/sq/LC_MESSAGES/xchat.mo
-rm -fR /usr/local/share/locale/sr/LC_MESSAGES/xchat.mo
-rm -fR /usr/local/share/locale/sv/LC_MESSAGES/xchat.mo
-rm -fR /usr/local/share/locale/uk/LC_MESSAGES/xchat.mo
-rm -fR /usr/local/share/locale/vi/LC_MESSAGES/xchat.mo
-rm -fR /usr/local/share/locale/zh_CN/LC_MESSAGES/xchat.mo
-rm -fR /usr/local/share/locale/zh_TW/LC_MESSAGES/xchat.mo
+# Remove the old locale files since we are uninstalling
+LANGFILE="xchat.mo"
+cd /Programs/${PROGDIR}/locale
+for i in `ls`
+do
+  rm /usr/local/share/locale/${i}/LC_MESSAGES/${LANGFILE}
+done
+
 rm -fR /usr/local/bin/xchat
 
 cd /home 

Modified: pbibuild/modules/xchat/overlay-dir/PBI.SetupScript.sh
===================================================================
--- pbibuild/modules/xchat/overlay-dir/PBI.SetupScript.sh	2007-12-06 01:24:27 UTC (rev 958)
+++ pbibuild/modules/xchat/overlay-dir/PBI.SetupScript.sh	2007-12-06 01:30:40 UTC (rev 959)
@@ -13,32 +13,14 @@
 #########################################
 
 ln -s /Programs/${PROGDIR}/.sbin/xchat /usr/local/bin/xchat
+# Copy over all the LANG files
+LANGFILE="xchat.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
 
-ln -s /Programs/${PROGDIR}/share/locale/be/LC_MESSAGES/xchat.mo /usr/local/share/locale/be/LC_MESSAGES/xchat.mo
-ln -s /Programs/${PROGDIR}/share/locale/ca/LC_MESSAGES/xchat.mo /usr/local/share/locale/ca/LC_MESSAGES/xchat.mo
-ln -s /Programs/${PROGDIR}/share/locale/cs/LC_MESSAGES/xchat.mo /usr/local/share/locale/cs/LC_MESSAGES/xchat.mo
-ln -s /Programs/${PROGDIR}/share/locale/de/LC_MESSAGES/xchat.mo /usr/local/share/locale/de/LC_MESSAGES/xchat.mo
-ln -s /Programs/${PROGDIR}/share/locale/el/LC_MESSAGES/xchat.mo /usr/local/share/locale/el/LC_MESSAGES/xchat.mo
-ln -s /Programs/${PROGDIR}/share/locale/es/LC_MESSAGES/xchat.mo /usr/local/share/locale/es/LC_MESSAGES/xchat.mo
-ln -s /Programs/${PROGDIR}/share/locale/fi/LC_MESSAGES/xchat.mo /usr/local/share/locale/fi/LC_MESSAGES/xchat.mo
-ln -s /Programs/${PROGDIR}/share/locale/fr/LC_MESSAGES/xchat.mo /usr/local/share/locale/fr/LC_MESSAGES/xchat.mo
-ln -s /Programs/${PROGDIR}/share/locale/gl/LC_MESSAGES/xchat.mo /usr/local/share/locale/gl/LC_MESSAGES/xchat.mo
-ln -s /Programs/${PROGDIR}/share/locale/hu/LC_MESSAGES/xchat.mo /usr/local/share/locale/hu/LC_MESSAGES/xchat.mo
-ln -s /Programs/${PROGDIR}/share/locale/it/LC_MESSAGES/xchat.mo /usr/local/share/locale/it/LC_MESSAGES/xchat.mo
-ln -s /Programs/${PROGDIR}/share/locale/ja/LC_MESSAGES/xchat.mo /usr/local/share/locale/ja/LC_MESSAGES/xchat.mo
-ln -s /Programs/${PROGDIR}/share/locale/ko/LC_MESSAGES/xchat.mo /usr/local/share/locale/ko/LC_MESSAGES/xchat.mo
-ln -s /Programs/${PROGDIR}/share/locale/lt/LC_MESSAGES/xchat.mo /usr/local/share/locale/lt/LC_MESSAGES/xchat.mo
-ln -s /Programs/${PROGDIR}/share/locale/mk/LC_MESSAGES/xchat.mo /usr/local/share/locale/mk/LC_MESSAGES/xchat.mo
-ln -s /Programs/${PROGDIR}/share/locale/nl/LC_MESSAGES/xchat.mo /usr/local/share/locale/nl/LC_MESSAGES/xchat.mo
-ln -s /Programs/${PROGDIR}/share/locale/pa/LC_MESSAGES/xchat.mo /usr/local/share/locale/pa/LC_MESSAGES/xchat.mo
-ln -s /Programs/${PROGDIR}/share/locale/pt/LC_MESSAGES/xchat.mo /usr/local/share/locale/pt/LC_MESSAGES/xchat.mo
-ln -s /Programs/${PROGDIR}/share/locale/ru/LC_MESSAGES/xchat.mo /usr/local/share/locale/ru/LC_MESSAGES/xchat.mo
-ln -s /Programs/${PROGDIR}/share/locale/sq/LC_MESSAGES/xchat.mo /usr/local/share/locale/sq/LC_MESSAGES/xchat.mo
-ln -s /Programs/${PROGDIR}/share/locale/sr/LC_MESSAGES/xchat.mo /usr/local/share/locale/sr/LC_MESSAGES/xchat.mo
-ln -s /Programs/${PROGDIR}/share/locale/sv/LC_MESSAGES/xchat.mo /usr/local/share/locale/sv/LC_MESSAGES/xchat.mo
-ln -s /Programs/${PROGDIR}/share/locale/uk/LC_MESSAGES/xchat.mo /usr/local/share/locale/uk/LC_MESSAGES/xchat.mo
-ln -s /Programs/${PROGDIR}/share/locale/vi/LC_MESSAGES/xchat.mo /usr/local/share/locale/vi/LC_MESSAGES/xchat.mo
-ln -s /Programs/${PROGDIR}/share/locale/zh_CN/LC_MESSAGES/xchat.mo /usr/local/share/locale/zh_CN/LC_MESSAGES/xchat.mo
-ln -s /Programs/${PROGDIR}/share/locale/zh_TW/LC_MESSAGES/xchat.mo /usr/local/share/locale/zh_TW/LC_MESSAGES/xchat.mo
 
 echo "LAUNCHCLOSE: /usr/local/bin/xchat"
\ No newline at end of file



More information about the Commits mailing list