From: Ralf Hartmann Date: Tue, 10 Feb 2004 14:01:14 +0000 (+0000) Subject: Add perl and grep commands for MIPSpro7.4 compiler. X-Git-Tag: v8.0.0~15801 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7f6af6ac185663e26c44a21e4104d48cdc9ed1d6;p=dealii.git Add perl and grep commands for MIPSpro7.4 compiler. git-svn-id: https://svn.dealii.org/trunk@8455 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/common/scripts/minimize_boost b/deal.II/common/scripts/minimize_boost index 2e14f2d42c..89cef1cd85 100755 --- a/deal.II/common/scripts/minimize_boost +++ b/deal.II/common/scripts/minimize_boost @@ -6,7 +6,7 @@ echo Running `pwd`/minimize_boost # path of the (original) boost library, e.g. -O=/home/atlas2/hartmann/tmp +O=/home/rhartman/tmp/boost-1.30.2 # directory of the deal.II library Dtmp=`pwd`/../.. cd $Dtmp && \ @@ -125,8 +125,12 @@ while test -s $B/files.txt; do # recompile and keep track of missing boost files # create files.txt which includes a list of all missing boost files # CHANGE FOLLOWING TWO LINES ACCORDING TO THE OUTPUT OF YOUR SPECIFIC COMPILER +# linux, gcc2.95.3: cd $D/base && make $F | grep "No such file" > $B/files.txt perl -pi -e 's&^[^ ]* ([^:]*): .*&$1&g;' $B/files.txt +# sgi, MIPSpro7.4: +# cd $D/base && gmake $F | grep "source file" > $B/files.txt +# perl -pi -e 's&.*\"(.*)\".*&$1&g;' $B/files.txt # if there are some boost files missing if test -s $B/files.txt; then # collect them from the original boost directory @@ -143,7 +147,7 @@ echo Remove empty directories cd $B && find boost -type d > dirs.txt cp $B/dirs.txt $B/diff.txt while test -s $B/diff.txt; do - cd $B && rmdir --ignore-fail-on-non-empty `cat dirs.txt` + cd $B && rmdir `cat dirs.txt` cp $B/dirs.txt $B/dirs.old.txt cd $B && find boost -type d > dirs.txt rm $B/diff.txt