mirror of
https://github.com/OpenFOAM/OpenFOAM-6.git
synced 2025-12-08 06:57:46 +00:00
Allwmake: Remove 'set -x' which generates a lot of noise
'set -x' should be used for debugging. Added command printing into wmake and Allwmake as a replacement for 'set -x' to log current target.
This commit is contained in:
@ -90,6 +90,14 @@ do
|
||||
done
|
||||
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# Print command
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
[ -z "$targetType" ] || targetSpace=" "
|
||||
echo "$Script $targetType$targetSpace$(echo $PWD | sed s%$WM_PROJECT_DIR/%% )"
|
||||
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# Execute wmake -all if not called from wmake
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
@ -122,8 +122,9 @@ then
|
||||
}
|
||||
fi
|
||||
|
||||
# Provide some feedback
|
||||
echo "$Script $targetType ${dir:-.}"
|
||||
# Print command
|
||||
[ -z "$targetType" ] || targetSpace=" "
|
||||
echo "$Script $targetType$targetSpace${dir:-.}"
|
||||
fi
|
||||
|
||||
|
||||
@ -164,7 +165,7 @@ then
|
||||
|
||||
if [ -d $objectsDir ]
|
||||
then
|
||||
echo "Removing redundant object directories in $objectsDir"
|
||||
echo " Removing redundant object directories in $objectsDir"
|
||||
|
||||
find $objectsDir -name 'variables' -print | \
|
||||
while read variablesFile
|
||||
@ -253,7 +254,7 @@ unset targetType
|
||||
if [ -d $MakeDir ]
|
||||
then
|
||||
objectsDir=$MakeDir/$WM_OPTIONS
|
||||
if echo $PWD | grep "$WM_PROJECT_DIR"
|
||||
if [ $(echo $PWD | grep "$WM_PROJECT_DIR") ]
|
||||
then
|
||||
platformPath=$WM_PROJECT_DIR/platforms/${WM_OPTIONS}
|
||||
objectsDir=$platformPath$(echo $PWD | sed s%$WM_PROJECT_DIR%% )
|
||||
|
||||
@ -268,6 +268,10 @@ then
|
||||
exit 1
|
||||
}
|
||||
fi
|
||||
|
||||
# Print command
|
||||
[ -z "$targetType" ] || targetSpace=" "
|
||||
echo "$Script $targetType$targetSpace${dir:-.}"
|
||||
fi
|
||||
|
||||
|
||||
@ -386,7 +390,7 @@ fi
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
objectsDir=$MakeDir/$WM_OPTIONS
|
||||
if echo $PWD | grep "$WM_PROJECT_DIR"
|
||||
if [ $(echo $PWD | grep "$WM_PROJECT_DIR") ]
|
||||
then
|
||||
platformPath=$WM_PROJECT_DIR/platforms/${WM_OPTIONS}
|
||||
objectsDir=$platformPath$(echo $PWD | sed s%$WM_PROJECT_DIR%% )
|
||||
|
||||
Reference in New Issue
Block a user