ENH: wmakeRoot for locating the root directory

This commit is contained in:
Mark Olesen
2019-01-18 10:58:07 +01:00
parent 3c81aec0e2
commit 1dd7362aed
4 changed files with 123 additions and 6 deletions

View File

@ -31,7 +31,7 @@
# Usage : makeFiles
#
#------------------------------------------------------------------------------
dirToString="$WM_DIR/platforms/$WM_ARCH$WM_COMPILER"/dirToString
dirToString="${WM_DIR:-$WM_PROJECT_DIR/wmake}/platforms/$WM_ARCH$WM_COMPILER/dirToString"
if [ -r Make/files ]
then
@ -46,8 +46,10 @@ fi
[ -d Make ] || mkdir Make
rm -f Make/files
#------------------------------------------------------------------------------
echo "Creating Make/files"
echo "Creating Make/files ..."
for dir in $(find . -mindepth 1 -type d -print)
do
@ -68,7 +70,7 @@ do
if [ -n "$pathName" ]
then
echo '$('$pathName')/'"${file##*/}"
echo '$('"$pathName"')/'"${file##*/}"
else
echo "${file##*/}"
fi