From 7c4c80727b048ce6fd4b764eddbf20708113f9cc Mon Sep 17 00:00:00 2001 From: Eric Hameleers Date: Tue, 2 May 2017 22:23:41 +0200 Subject: XFCE: some more aggressive pruning of content to reduce the ISO size --- make_slackware_live.sh | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'make_slackware_live.sh') 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 -- cgit v1.2.3