ppcrcd: Makefile todel

sparky cvs at pld-linux.org
Thu Jun 16 14:45:03 CEST 2005


Author: sparky
Date: Thu Jun 16 14:44:57 2005
New Revision: 6098

Added:
   ppcrcd/todel
Modified:
   ppcrcd/Makefile
Log:
- gunzip everything before preparing image - it will
  be much smaller
- delete files listed in todel


Modified: ppcrcd/Makefile
==============================================================================
--- ppcrcd/Makefile	(original)
+++ ppcrcd/Makefile	Thu Jun 16 14:44:57 2005
@@ -91,28 +91,34 @@
 
 root.stripped:	root.installed
 	$(SU) rm -rf root.swork
+	#
 	mkdir -p root.swork/dev
 	cd root.swork/dev; while read T M m N; do	\
 		$(SU) mknod $$N $$T $$M $$m;	\
 	done < ../../conf.dir/dev/devs
+	#
 	$(SU) cp -a root.inst/* root.swork
-	$(SU) rm -rf root.swork/usr/share/doc/*
-	$(SU) rm -f root.swork/usr/share/man/man3/*perl*
-	$(SU) rm root.swork/boot/{vmlinu,System.map,initrd}*
-	$(SU) rm -f root.swork/var/lib/rpm/*
-	find root.swork -type f | xargs file | grep ELF | grep "not stripped" | sed "s/:.*//" | xargs $(SU) strip
-	find root.swork/lib/modules -type f -name "*.ko.gz" | xargs $(SU) gunzip
+	#
+	while read TODEL; do $(SU) rm -rf root.swork/$$TODEL; done < todel
+	#
+	$(SU) find root.swork -type f | xargs file | grep ELF | grep "not stripped" | sed "s/:.*//" | xargs $(SU) strip
+	$(SU) find root.swork -name "*.gz" | xargs -n 20 sudo gunzip
 	find root.swork/lib/modules -type f -name "*.ko" | xargs $(SU) strip --strip-unneeded -g
-	find root.swork/lib/modules -type f -name "*.ko" | xargs $(SU) gzip -9
+	#
 	KVER=`ls root.swork/lib/modules`; \
 		$(SU) chroot root.swork /sbin/depmod -a $$KVER
+	#
 	$(SU) cp -dr conf.dir/* root.swork
 	$(SU) mkdir -p root.swork/usr/share/doc/ppcrcd
 	$(SU) cp -r doc/* root.swork/usr/share/doc/ppcrcd
+	#
 	$(SU) sed -e 's/@_VERSION_@/$(VERSION)/g' \
 		-i root.swork/linuxrc
+	#
+	$(SU) chown root -R root.swork/*
 	$(SU) mv root.swork $@
 
+
 yaboot/yaboot:	yaboot/yaboot.c yaboot/Makefile
 	make -C yaboot
 

Added: ppcrcd/todel
==============================================================================
--- (empty file)
+++ ppcrcd/todel	Thu Jun 16 14:44:57 2005
@@ -0,0 +1,18 @@
+boot/{vmlinu,System.map,initrd}*
+usr/share/vim/vim63/doc
+usr/src
+usr/share/applications
+usr/share/doc
+usr/share/ekg/themes
+usr/share/fonts
+usr/share/icons
+usr/share/pixmaps
+usr/share/man/man3/*perl*
+usr/share/man/man1/openssl_*
+usr/share/man/man7/groff_*
+usr/share/pldconf/X/gfx
+usr/share/vim/vim63/print
+usr/share/vim/vim63/macros
+usr/share/vim/vim63/tools
+usr/share/vim/vim63/tutor
+usr/share/groff/*/font



More information about the pld-cvs-commit mailing list