mirror of
https://github.com/OpenFOAM/OpenFOAM-6.git
synced 2025-12-08 06:57:46 +00:00
wcleanAll, wrmdep: Updated check for the WM_PROJECT_DIR
This commit is contained in:
@ -61,7 +61,8 @@ do
|
||||
esac
|
||||
done
|
||||
|
||||
[ -d bin -a -d src ] || usage "not in the project top level directory"
|
||||
[ "$PWD" = "$WM_PROJECT_DIR" ] \
|
||||
|| usage "Not in the project top-level directory"
|
||||
|
||||
|
||||
echo "Removing platforms/sub-directories"
|
||||
|
||||
@ -190,7 +190,8 @@ oldFolders)
|
||||
|
||||
updateMode)
|
||||
|
||||
[ -d bin -a -d src ] || usage "Not in the project top-level directory"
|
||||
[ "$PWD" = "$WM_PROJECT_DIR" ] \
|
||||
|| usage "Not in the project top-level directory"
|
||||
|
||||
echo "Purging all dep files that relate to files that no longer exist..."
|
||||
fileNameList=$(find -L src applications -name '*.[CHL]' -type l \
|
||||
|
||||
Reference in New Issue
Block a user