From 9a34024e57527a0a706ca39a6cd03239592c99f6 Mon Sep 17 00:00:00 2001 From: Dan McGee Date: Tue, 23 Oct 2007 23:05:44 -0500 Subject: Allow livecd to be developer friendly We should clean up some stuff but not actually muddle with what is installed by packages. Leave static libs if they were installed, and leave include files so we can actually build a package from the live CD if we want to. Signed-off-by: Dan McGee --- mkarchiso | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/mkarchiso b/mkarchiso index 3703b0b..097de00 100755 --- a/mkarchiso +++ b/mkarchiso @@ -155,17 +155,13 @@ if [ "${command_name}" = "install" -o "${command_name}" = "all" ]; then find "${instroot}" -name *.pacnew -name *.pacsave -name *.pacorig -delete # delete a lot of unnecessary cache/log files - kill_dirs="var/abs var/cache/man var/cache/pacman var/log/* var/mail tmp/* usr/include initrd" + kill_dirs="var/abs var/cache/man var/cache/pacman var/log/* var/mail tmp/* initrd" for x in ${kill_dirs}; do if [ -e "${instroot}/${x}" ]; then rm -rf "${instroot}/${x}" fi done - # delete static libraries - find "${instroot}/lib" -name *.a -delete - find "${instroot}/usr/lib" -name *.a -delete - # pacman DBs are big, delete all sync dbs for d in ${instroot}/var/lib/pacman/*; do [ "$(basename ${d})" != "local" ] && rm -rf "${d}" -- cgit v1.2.3-54-g00ecf