diff options
author | Eric Hameleers <alien@slackware.com> | 2017-05-02 22:23:41 +0200 |
---|---|---|
committer | Eric Hameleers <alien@slackware.com> | 2017-05-02 22:23:41 +0200 |
commit | 7c4c80727b048ce6fd4b764eddbf20708113f9cc (patch) | |
tree | d16af051489eab69e8ec4b2d87f812b73204f330 /make_slackware_live.sh | |
parent | 204ba11b83b706b1dafff30a5023c8bf999c7202 (diff) | |
download | liveslak-7c4c80727b048ce6fd4b764eddbf20708113f9cc.tar.gz liveslak-7c4c80727b048ce6fd4b764eddbf20708113f9cc.tar.xz |
XFCE: some more aggressive pruning of content to reduce the ISO size
Diffstat (limited to 'make_slackware_live.sh')
-rwxr-xr-x | make_slackware_live.sh | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/make_slackware_live.sh b/make_slackware_live.sh index 7d6aca9..1c9b303 100755 --- a/make_slackware_live.sh +++ b/make_slackware_live.sh @@ -434,7 +434,8 @@ function install_pkgs() { rm -rf "$2"/usr/share/gtk-doc rm -rf "$2"/usr/share/help # Remove residual bloat: - rm -f "${2}"/usr/doc/*/*.{html,css,xml,pdf,db,bz2,xz} + rm -rf "${2}"/usr/doc/*/html + rm -f "${2}"/usr/doc/*/*.{html,css,xml,pdf,db,gz,bz2,xz,txt,TXT} fi if [ "$TRIM" = "mandoc" ]; then # Also remove man and info pages: @@ -450,6 +451,13 @@ 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 + rm -rf "$2"/usr/lib${DIRSUFFIX}/libboost*test*.a + # The llvm static libraries are not needed since we also ship the .so: + rm -rf "$2"/usr/lib${DIRSUFFIX}/lib{LLVM,clang,lldb}*.a + # And these are not needed for a simple XFCE ISO: + rm -rf "$2"/usr/lib${DIRSUFFIX}/clang/*/lib/linux/*.a{,.syms} + # Get rid of useless documentation: + rm -rf "$2"/usr/share/ghostscript/*/doc/ # 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 |