X-Git-Url: https://feistymeow.org/gitweb/?a=blobdiff_plain;f=scripts%2Fclam%2Fclean_subdirs.sh;h=a438cc08f793af70be2ae659737b334989654a98;hb=8aec25f6496659248d997e474195ee4acdcdb976;hp=dd06d0c9600f33e2a9dae3183cdbf4c831ce61cc;hpb=7840268dfdea02554f683016569e82b3466ccb18;p=feisty_meow.git diff --git a/scripts/clam/clean_subdirs.sh b/scripts/clam/clean_subdirs.sh old mode 100644 new mode 100755 index dd06d0c9..a438cc08 --- a/scripts/clam/clean_subdirs.sh +++ b/scripts/clam/clean_subdirs.sh @@ -8,20 +8,15 @@ function clean_subdirectories() local smoot87 # find all the subdirectories. - for smoot87 in $(find . -mindepth 1 -maxdepth 1 -type f); do -echo name is $i - -# # skip if not a directory. -# if [ ! -d "$smoot87" ]; then continue; fi -#echo "inside first check of it being dir: $smoot87" - + for smoot87 in $(find . -mindepth 1 -maxdepth 1 -type d); do # make sure there's a makefile there. - if [ -f "$smoot87/$MAKEFILE_NAME" ]; then -echo "inside barriers, with filename=$smoot87 and all conditions met." - pushd "$smoot87" - make --silent NOT_FIRST_MAKE=t -f $MAKEFILE_NAME clean + if [ -f "$smoot87/makefile" ]; then +#echo -e "\n\n[[inside barriers, with filename=$burlap51 and all conditions met]]\n\n" + pushd "$smoot87" &>/dev/null + make --silent -I "$CLAM_SCRIPTS" NOT_FIRST_MAKE=t clean + popd &>/dev/null else - echo "Skipping makefile-less directory $smoot87..." + echo "(skipping directory $smoot87)" fi done }