SVN: ppcrcd/trunk/Makefile
sparky
sparky at pld-linux.org
Thu Oct 12 15:09:51 CEST 2006
Author: sparky
Date: Thu Oct 12 15:09:50 2006
New Revision: 7846
Modified:
ppcrcd/trunk/Makefile
Log:
- better file deleting: stop if file cannot be deleted
Modified: ppcrcd/trunk/Makefile
==============================================================================
--- ppcrcd/trunk/Makefile (original)
+++ ppcrcd/trunk/Makefile Thu Oct 12 15:09:50 2006
@@ -181,12 +181,13 @@
#
$(SU) cp -a $(root_inst)/* $@.work
#
- -while read TODEL; do [[ $$TODEL == *lib* ]] && \
- $(SU) rm -rf $@.work/$$TODEL; done < todel
+ while read TODEL; do [[ $$TODEL == *lib* ]] && \
+ { $(SU) rm -r $@.work/$$TODEL || exit 1; } || : ; done < todel
#
$(SU) chroot $@.work /sbin/ldconfig -c new
#
- while read TODEL; do $(SU) rm -rf $@.work/$$TODEL; done < todel
+ while read TODEL; do [[ $$TODEL == *lib* ]] || \
+ { $(SU) rm -r $@.work/$$TODEL || exit 1; } || : ; done < todel
#
$(SU) find $@.work -type f | xargs file | grep ELF | \
grep "not stripped" | sed "s/:.*//" | xargs $(SU) strip
More information about the pld-cvs-commit
mailing list