diff options
author | Eric Hameleers <alien@slackware.com> | 2016-11-09 22:14:19 +0100 |
---|---|---|
committer | Eric Hameleers <alien@slackware.com> | 2016-11-09 22:14:19 +0100 |
commit | 15026b11187ad9cdc2be7a1d88ebce6531349a72 (patch) | |
tree | 437ec9adef039c7a810aaa681d1aa7dfb81def49 /make_slackware_live.sh | |
parent | d6e79a7c070183e3181e1fbf8d6ecbe3ebffd001 (diff) | |
download | liveslak-15026b11187ad9cdc2be7a1d88ebce6531349a72.tar.gz liveslak-15026b11187ad9cdc2be7a1d88ebce6531349a72.tar.xz |
XFCE: remove unused glibc locales to conserve space.
The XFCE ISO is below 737.280.000 bytes again.
Also, the 'vim' package fits in now, which makes gvim a lot more functional.
Diffstat (limited to 'make_slackware_live.sh')
-rwxr-xr-x | make_slackware_live.sh | 15 |
1 files changed, 15 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 |