ENH: respect '-silent' option for cmake builds

- minor cleanup of wmake sources
This commit is contained in:
Mark Olesen
2017-03-15 13:06:45 +01:00
parent 4339d93c8e
commit 249f334f83
12 changed files with 456 additions and 285 deletions

View File

@ -59,23 +59,23 @@ do
-h | -help) # Provide immediate help
usage
;;
-*)
usage "unknown option: '$1'"
;;
*)
break
# No options/arguments
usage "unexpected options/arguments: $*"
;;
esac
done
# No arguments
[ "$#" -eq 0 ] || usage "unexpected arguments: '$*'"
if [ -e Make ]
then
echo "$Script error: Make directory already exists" 1>&2
exit 1
fi
#------------------------------------------------------------------------------
# Check environment variables
#------------------------------------------------------------------------------
for check in WM_OPTIONS WM_LINK_LANGUAGE WM_DIR
for check in WM_DIR WM_ARCH WM_COMPILER
do
eval test "\$$check" || {
echo "$Script error: environment variable \$$check not set" 1>&2
@ -83,24 +83,9 @@ do
}
done
if [ -d Make ]
then
echo "$Script error: Make directory already exists" 1>&2
exit 1
else
mkdir Make
fi
[ -e Make/files ] || {
echo "$Script: Creating Make/files"
$WM_DIR/scripts/makeFiles
}
[ -e Make/options ] || {
echo "$Script: Creating Make/options"
$WM_DIR/scripts/makeOptions
}
mkdir Make
[ -e Make/files ] || $WM_DIR/scripts/makeFiles
[ -e Make/options ] || $WM_DIR/scripts/makeOptions
exit 0 # clean exit