diff options
author | Chris Gianelloni <wolf31o2@gentoo.org> | 2008-03-13 00:41:16 +0000 |
---|---|---|
committer | Chris Gianelloni <wolf31o2@gentoo.org> | 2008-03-13 00:41:16 +0000 |
commit | 8f6e9c62a02e4ad33965c5217e91b4824988a772 (patch) | |
tree | b33a0bb99c5169c1c978fc0d64f47b8c5f910311 /targets/livecd-stage2 | |
parent | We should be using --newuse when merging our packages in callback. (diff) | |
download | catalyst-8f6e9c62a02e4ad33965c5217e91b4824988a772.tar.gz catalyst-8f6e9c62a02e4ad33965c5217e91b4824988a772.tar.bz2 catalyst-8f6e9c62a02e4ad33965c5217e91b4824988a772.zip |
Cleanup the clean section for stage1 and add an updated clean section for livecd-stage2 when we're a minimal, universal, or game CD. This is 2.0.6_pre14 for testing.
git-svn-id: svn+ssh://svn.gentoo.org/var/svnroot/catalyst/trunk@1372 d1e1f19c-881f-0410-ab34-b69fee027534
Diffstat (limited to 'targets/livecd-stage2')
-rwxr-xr-x | targets/livecd-stage2/livecd-stage2-controller.sh | 21 |
1 files changed, 14 insertions, 7 deletions
diff --git a/targets/livecd-stage2/livecd-stage2-controller.sh b/targets/livecd-stage2/livecd-stage2-controller.sh index e9c9c818..0185b18a 100755 --- a/targets/livecd-stage2/livecd-stage2-controller.sh +++ b/targets/livecd-stage2/livecd-stage2-controller.sh @@ -94,13 +94,20 @@ case $1 in exec_in_chroot ${clst_fsscript} ;; clean) - for x in lib lib32 lib64 - do - if [ -d "${clst_chroot_path}/usr/${x}" ] - then - find "${clst_chroot_path}/usr/${x}" -iname "*.pyc" -exec rm -f {} \; - fi - done + if [ "${clst_livecd_type}" = "gentoo-gamecd" ] \ + || [ "${clst_livecd_type}" = "gentoo-release-minimal" ] \ + || [ "${clst_livecd_type}" = "gentoo-release-universal" ] + then + # Clean out man, info and doc files + rm -rf usr/share/{man,doc,info}/* + # Zap all .pyc and .pyo files + find / -iname "*.py[co]" -exec rm -f {} \; + fi + # Cleanup all .a files except libgcc.a, *_nonshared.a and + # /usr/lib/portage/bin/*.a + find / -type f -iname "*.a" | grep -v 'libgcc.a' | \ + grep -v 'nonshared.a' | grep -v '/usr/lib/portage/bin/' | \ + grep -v 'libgcc_eh.a' | xargs rm -f ;; bootloader) shift |