summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--perl-install/lang.pm4
-rwxr-xr-xtools/make_mdkinst_stage23
2 files changed, 7 insertions, 0 deletions
diff --git a/perl-install/lang.pm b/perl-install/lang.pm
index f24db210f..6d773801a 100644
--- a/perl-install/lang.pm
+++ b/perl-install/lang.pm
@@ -560,6 +560,10 @@ sub set {
require packdrake;
my $packer = new packdrake("$ENV{SHARE_PATH}/locale.cz2", quiet => 1);
$packer->extract_archive("$ENV{SHARE_PATH}/locale", lang2LANG($lang));
+
+ #- LC_COLLATE and LC_CTYPE are getFile'd (cuz they are big, causing the .cz2 to be *big*)
+ my ($dir) = glob_("$ENV{SHARE_PATH}/locale/*");
+ install_any::getAndSaveFile("$dir/$_") foreach 'LC_COLLATE', 'LC_CTYPE';
};
}
diff --git a/tools/make_mdkinst_stage2 b/tools/make_mdkinst_stage2
index 1d1270b87..8b75f001b 100755
--- a/tools/make_mdkinst_stage2
+++ b/tools/make_mdkinst_stage2
@@ -45,6 +45,8 @@ rm -f $STAGE2TMP/usr/X11R6/lib/X11/fonts/{taipei16,gb16fs,k14,baekmuk_gulim_h_14
rm -rf $STAGE2TMP/usr/share/locale_special
for i in /usr/share/locale; do
name=`basename $i`
+ # LC_COLLATE and LC_CTYPE are getFile'd (cuz they are big, causing the .cz2 to be *big*)
+ find $STAGE2TMP/$i -name LC_COLLATE -o -name LC_CTYPE | xargs rm
(cd $STAGE2TMP/$i ; find * | $BUILD_ARCHIVE -b9s ../$name.cz2 4000000)
rm -rf $STAGE2TMP/$i
done
@@ -62,6 +64,7 @@ dd if=/dev/zero of=$STAGE2 bs=1k count=$[ `du -s $STAGE2TMP | cut -f1` + 1024 +
$MKE2FS -N 1000 $STAGE2
$SUDO mount -t ext2 $STAGE2 $MNTPOINT -o loop
+rmdir $MNTPOINT/lost+found
$SUDO cp -a $STAGE2TMP/* $MNTPOINT
$SUDO rm -rf $STAGE2TMP