[PC-BSD Commits] r3180 - pbibuild/pbibuilder/scripts

svn at pcbsd.org svn at pcbsd.org
Tue Jan 6 06:45:22 PST 2009


Author: kris
Date: 2009-01-06 06:45:22 -0800 (Tue, 06 Jan 2009)
New Revision: 3180

Modified:
   pbibuild/pbibuilder/scripts/3.makepbi.sh
Log:

Setup our makepbi script to include any locale data by default, so i18n should work on nearly all modules with standard localization features



Modified: pbibuild/pbibuilder/scripts/3.makepbi.sh
===================================================================
--- pbibuild/pbibuilder/scripts/3.makepbi.sh	2009-01-06 14:34:21 UTC (rev 3179)
+++ pbibuild/pbibuilder/scripts/3.makepbi.sh	2009-01-06 14:45:22 UTC (rev 3180)
@@ -190,6 +190,30 @@
 fi
 ln -s lib autolibs >/dev/null >/dev/null
 
+## Lets copy over all of the locale data for i18n to work properly
+if [ -d "/usr/local/share/locale" ]
+then
+  if [ -d "${PBIDIR}/share/locale" ]
+  then
+    tar cvf - -C /usr/local/share/locale/ . 2>/dev/null | tar xvpf - -C ${PBIDIR}/share/locale/ 2>/dev/null
+  else
+   mkdir -p ${PBIDIR}/share
+   cp -R /usr/local/share/locale ${PBIDIR}/share/
+  fi
+fi
+
+## Lets copy over all of the kde4 locale data for i18n to work properly
+if [ -d "/usr/local/kde4/share/locale" ]
+then
+  if [ -d "${PBIDIR}/kde4/share/locale" ]
+  then
+    tar cvf - -C /usr/local/kde4/share/locale/ . 2>/dev/null | tar xvpf - -C ${PBIDIR}/kde4/share/locale/ 2>/dev/null
+  else
+   mkdir -p ${PBIDIR}/kde4/share
+   cp -R /usr/local/kde4/share/locale ${PBIDIR}/kde4/share/
+  fi
+fi
+
 ## Check for some common types of setups, and copy necessary files
 if [ -d "/usr/local/kde4/lib/kde4" ]
 then



More information about the Commits mailing list