wcleanAll, wrmdep: Updated check for the WM_PROJECT_DIR

This commit is contained in:
Henry Weller
2015-12-14 17:49:02 +00:00
parent 3de4dcd838
commit 13094c2ab3
2 changed files with 4 additions and 2 deletions

View File

@ -61,7 +61,8 @@ do
esac esac
done 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" echo "Removing platforms/sub-directories"

View File

@ -190,7 +190,8 @@ oldFolders)
updateMode) 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..." echo "Purging all dep files that relate to files that no longer exist..."
fileNameList=$(find -L src applications -name '*.[CHL]' -type l \ fileNameList=$(find -L src applications -name '*.[CHL]' -type l \