[PC-BSD Commits] r963 - in pbibuild/modules/kdesvn: . overlay-dir

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


Author: gonzalo
Date: 2007-12-05 17:55:17 -0800 (Wed, 05 Dec 2007)
New Revision: 963

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

Modified: pbibuild/modules/kdesvn/build.sh
===================================================================
--- pbibuild/modules/kdesvn/build.sh	2007-12-06 01:49:27 UTC (rev 962)
+++ pbibuild/modules/kdesvn/build.sh	2007-12-06 01:55:17 UTC (rev 963)
@@ -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="kdesvn.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/kdesvn/copy-files
===================================================================
--- pbibuild/modules/kdesvn/copy-files	2007-12-06 01:49:27 UTC (rev 962)
+++ pbibuild/modules/kdesvn/copy-files	2007-12-06 01:55:17 UTC (rev 963)
@@ -40,18 +40,6 @@
 /usr/local/share/icons/hicolor/scalable/actions/kdesvn* share/icons/hicolor/scalable/actions/
 /usr/local/share/icons/hicolor/scalable/apps/kdesvn* share/icons/hicolor/scalable/apps/
 /usr/local/share/icons/hicolor/scalable/filesystems/kdesvn* share/icons/hicolor/scalable/filesystems/
-/usr/local/share/locale/ca/LC_MESSAGES/kdesvn.mo share/locale/ca/LC_MESSAGES/
-/usr/local/share/locale/cs/LC_MESSAGES/kdesvn.mo share/locale/cs/LC_MESSAGES/
-/usr/local/share/locale/de/LC_MESSAGES/kdesvn.mo share/locale/de/LC_MESSAGES/
-/usr/local/share/locale/es/LC_MESSAGES/kdesvn.mo share/locale/es/LC_MESSAGES/
-/usr/local/share/locale/fr/LC_MESSAGES/kdesvn.mo share/locale/fr/LC_MESSAGES/
-/usr/local/share/locale/gl/LC_MESSAGES/kdesvn.mo share/locale/gl/LC_MESSAGES/
-/usr/local/share/locale/it/LC_MESSAGES/kdesvn.mo share/locale/it/LC_MESSAGES/
-/usr/local/share/locale/lt/LC_MESSAGES/kdesvn.mo share/locale/lt/LC_MESSAGES/
-/usr/local/share/locale/nl/LC_MESSAGES/kdesvn.mo share/locale/nl/LC_MESSAGES/
-/usr/local/share/locale/pa/LC_MESSAGES/kdesvn.mo share/locale/pa/LC_MESSAGES/
-/usr/local/share/locale/ru/LC_MESSAGES/kdesvn.mo share/locale/ru/LC_MESSAGES/
-/usr/local/share/locale/sv/LC_MESSAGES/kdesvn.mo share/locale/sv/LC_MESSAGES/
 /usr/local/share/services/ksvn* share/services/
 /usr/local/share/services/svn* share/services/
 /usr/local/share/services/kded/kdesvnd.desktop share/services/kded/

Modified: pbibuild/modules/kdesvn/overlay-dir/PBI.RemoveScript.sh
===================================================================
--- pbibuild/modules/kdesvn/overlay-dir/PBI.RemoveScript.sh	2007-12-06 01:49:27 UTC (rev 962)
+++ pbibuild/modules/kdesvn/overlay-dir/PBI.RemoveScript.sh	2007-12-06 01:55:17 UTC (rev 963)
@@ -48,10 +48,16 @@
 rm -fR /usr/local/share/icons/hicolor/scalable/actions/kdesvn*
 rm -fR /usr/local/share/icons/hicolor/scalable/apps/kdesvn*
 rm -fR /usr/local/share/icons/hicolor/scalable/filesystems/kdesvn*
-rm -fR /usr/local/share/locale/*/LC_MESSAGES/kdesvn.mo
 rm -fR /usr/local/share/services/ksvn*
 rm -fR /usr/local/share/services/svn*
 rm -fR /usr/local/share/services/kded/kdesvnd.desktop
+# Remove the old locale files since we are uninstalling
+LANGFILE="kdesvn.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` 

Modified: pbibuild/modules/kdesvn/overlay-dir/PBI.SetupScript.sh
===================================================================
--- pbibuild/modules/kdesvn/overlay-dir/PBI.SetupScript.sh	2007-12-06 01:49:27 UTC (rev 962)
+++ pbibuild/modules/kdesvn/overlay-dir/PBI.SetupScript.sh	2007-12-06 01:55:17 UTC (rev 963)
@@ -58,9 +58,17 @@
 ln -s /Programs/${PROGDIR}/share/icons/hicolor/scalable/actions/kdesvn* /usr/local/share/icons/hicolor/scalable/actions/
 ln -s /Programs/${PROGDIR}/share/icons/hicolor/scalable/apps/kdesvn* /usr/local/share/icons/hicolor/scalable/apps/
 ln -s /Programs/${PROGDIR}/share/icons/hicolor/scalable/filesystems/kdesvn* /usr/local/share/icons/hicolor/scalable/filesystems/
-ln -s /Programs/${PROGDIR}/share/locale/*/LC_MESSAGES/kdesvn.mo /usr/local/share/locale/*/LC_MESSAGES/
 ln -s /Programs/${PROGDIR}/share/services/ksvn* /usr/local/share/services/
 ln -s /Programs/${PROGDIR}/share/services/svn* /usr/local/share/services/
 ln -s /Programs/${PROGDIR}/share/services/kded/kdesvnd.desktop /usr/local/share/services/kded/
 
+# Copy over all the LANG files
+LANGFILE="kdesvn.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/kdesvn"



More information about the Commits mailing list