Skip to content
Snippets Groups Projects
Commit 7ecb1422 authored by Henry Weller's avatar Henry Weller
Browse files

wclean all: if an Allclean script exists in sub-directories execute otherwise execute wclean

parent d04ea965
No related branches found
No related tags found
No related merge requests found
...@@ -224,8 +224,15 @@ then ...@@ -224,8 +224,15 @@ then
# For all the sub-directories containing a 'Make' directory # For all the sub-directories containing a 'Make' directory
for dir in `find . \( -type d -a -name Make \)` for dir in `find . \( -type d -a -name Make \)`
do do
dir=${dir%/Make} # Parent directory - trim /Make from the end
echo $dir echo $dir
$0 ${dir%/Make} # Parent directory - trim /Make from the end # If Allwclean exists execute otherwise wclean
if [ -e "$dir/Allwclean" ]
then
$dir/Allwclean
else
$0 $dir
fi
done done
fi fi
fi fi
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment