aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xmake_slackware_live.sh15
-rw-r--r--pkglists/xapbase.lst1
2 files changed, 16 insertions, 0 deletions
diff --git a/make_slackware_live.sh b/make_slackware_live.sh
index 538d395..929369d 100755
--- a/make_slackware_live.sh
+++ b/make_slackware_live.sh
@@ -411,6 +411,21 @@ function install_pkgs() {
# Also remove some of the big unused/esoteric static libraries:
rm -rf "$2"/usr/lib${DIRSUFFIX}/{libaudiofile,libgdk,libglib,libgtk}.a
rm -rf "$2"/usr/lib${DIRSUFFIX}/{liblftp*,libnl}.a
+ # Remove unneeded languages from glibc:
+ KEEPLANG="$(cat ${LIVE_TOOLDIR}/languages|grep -Ev "(^ *#|^$)"|cut -d: -f1)"
+ for LOCALEDIR in /usr/lib${DIRSUFFIX}/locale /usr/share/i18n/locales /usr/share/locale ; do
+ if [ -d "${2}"/${LOCALEDIR} ]; then
+ cd "${2}"/${LOCALEDIR}
+ mkdir .keep
+ for KL in C ${KEEPLANG} ; do
+ mv ${KL}* .keep 2>/dev/null
+ done
+ rm -rf [A-Za-z]*
+ mv .keep/* . 2>/dev/null
+ rm -rf .keep
+ cd - 1>/dev/null
+ fi
+ done
fi
# End install_pkgs
diff --git a/pkglists/xapbase.lst b/pkglists/xapbase.lst
index f8b768b..0189ba3 100644
--- a/pkglists/xapbase.lst
+++ b/pkglists/xapbase.lst
@@ -31,6 +31,7 @@ rxvt
sane
seamonkey-solibs
tigervnc
+vim
vim-gvim
x11-ssh-askpass
x3270