[Lunar-commits] r26129 - moonbase/branches/crater/libs/glibc-new

Jannis Pohlmann jannis at lunar-linux.org
Mon Oct 8 22:08:56 CEST 2007


Author: jannis
Date: 2007-10-08 22:08:56 +0200 (Mon, 08 Oct 2007)
New Revision: 26129

Modified:
   moonbase/branches/crater/libs/glibc-new/BUILD
Log:
Split the selected LOCALEs up in a different way than before in order to call localedef correctly.

Modified: moonbase/branches/crater/libs/glibc-new/BUILD
===================================================================
--- moonbase/branches/crater/libs/glibc-new/BUILD	2007-10-08 19:54:46 UTC (rev 26128)
+++ moonbase/branches/crater/libs/glibc-new/BUILD	2007-10-08 20:08:56 UTC (rev 26129)
@@ -127,11 +127,12 @@
   else
     devoke_installwatch &&
     for LOCALE in $GLIBC_LOCALES; do
-      INPUTFILE=$(echo $LOCALE | cut -d/ -f1)
+      INPUTFILE=$(echo $LOCALE | cut -d/ -f1 | sed -e 's:\..*$::g')
+      OUTPUTFILE=$(echo $LOCALE | cut -d/ -f1)
       CHARMAP=$(echo  $LOCALE | cut -d/ -f2)
-      mkdir -p /usr/lib/locale/$INPUTFILE
-      echo "localedef -i $INPUTFILE -f $CHARMAP $INPUTFILE"
-      localedef -i $INPUTFILE -f $CHARMAP $INPUTFILE
+      mkdir -p /usr/lib/locale/$OUTPUTFILE
+      echo "localedef -i $INPUTFILE -f $CHARMAP $OUTPUTFILE"
+      localedef -i $INPUTFILE -f $CHARMAP $OUTPUTFILE
     done
     invoke_installwatch &&
     touch /usr/lib/locale/locale-archive



More information about the Lunar-commits mailing list