From: Heiko Z. <smi...@us...> - 2015-10-31 14:38:00
|
Update of /cvsroot/devil-linux/build/scripts In directory sfp-cvs-1.v30.ch3.sourceforge.com:/tmp/cvs-serv6730 Modified Files: cd_cleanup Log Message: separate directories out to help prevent segfaults Index: cd_cleanup =================================================================== RCS file: /cvsroot/devil-linux/build/scripts/cd_cleanup,v retrieving revision 1.21 retrieving revision 1.22 diff -u -d -r1.21 -r1.22 --- cd_cleanup 20 Oct 2015 00:50:37 -0000 1.21 +++ cd_cleanup 31 Oct 2015 14:37:58 -0000 1.22 @@ -14,17 +14,21 @@ # source functions and config source $MYDIR/settings -set -x - case $1 in install ) ls -1 $CDDIR/usr/include/* | grep -v "^python" | xargs -n 1 rm -rf find $CDDIR -type f -name '*.la' | grep -v Magick | xargs -n 1 rm -f find $CDDIR -type f -name '*.a' | xargs -n 1 rm -f - find $CDDIR -type f -exec strip --strip-debug '{}' ';' - find $INITRDDIR -type f -exec strip --strip-debug '{}' ';' - find $CDDIR/{lib,usr/lib,usr/libexec} -exec strip --strip-debug '{}' ';' - find $CDDIR/{bin,sbin,usr/bin,usr/sbin,usr/libexec} -type f ! -name '*.so' -exec strace strip --strip-all '{}' ';' + for DIR in $INITRDDIR $CDDIR + do + echo "Stripping debug symbols on files in ${DIR}" + find ${DIR} -type f -exec strip --strip-debug '{}' ';' 2> /dev/null + done + for DIR in $CDDIR/{bin,sbin,usr/bin,usr/sbin,usr/libexec} + do + echo "Fully stripping files in ${DIR}" + find ${DIR} -type f ! -name '*.so' -exec strip --strip-all '{}' ';' 2> /dev/null + done rm -rf $CDDIR/usr/lib/pkgconfig |