Git-Url: 
http://git.frugalware.org/gitweb/gitweb.cgi?p=fwlive.git;a=commitdiff;h=1dea0bc175749ae421d4785c34cbe6a50695400a

commit 1dea0bc175749ae421d4785c34cbe6a50695400a
Author: Baste <ba...@frugalware.org>
Date:   Thu Dec 15 16:39:25 2011 +0100

* Need /usr/include/python2.7/* for somes progs ( not remove)

diff --git a/bin/create-rootfs b/bin/create-rootfs
index d932177..af6f8ac 100755
--- a/bin/create-rootfs
+++ b/bin/create-rootfs
@@ -182,10 +182,13 @@ rm -rf $CHROOTDIR/usr/share/man/*
rm -rf $CHROOTDIR/usr/man/*
rm -rf $CHROOTDIR/usr/share/info/*

-## Remove Static libraries and header
+## Remove Static libraries and header
+## Need /usr/include/python2.7/* for somes progs
echo "Deleting Static libraries and header which are not needed in Live mode..."
-rm -rf $CHROOTDIR/usr/include/*
-find $CHROOTDIR/ -name "*.[ha]" -delete
+#rm -rf $CHROOTDIR/usr/include/*
+find $CHROOTDIR/usr/include/* -maxdepth 0 ! -name "python2.7" -exec rm -r {} \;
+#find $CHROOTDIR/ -name "*.[ha]" -delete
+find $CHROOTDIR/ -path '$CHROOTDIR/usr/include*' -prune -o -name "*.[ha]" 
-exec rm -rf {} \;

## Remove /boot contents, but backup kernel and initrd
echo "Removing boot files which are not needed in Live mode..."
_______________________________________________
Frugalware-git mailing list
Frugalware-git@frugalware.org
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to