COMP: add version information to wmake

- wmake -version, --version option (alias for -show-api)
  for consistency with standard system tools
This commit is contained in:
Mark Olesen
2019-11-10 11:24:07 +01:00
committed by Andrew Heather
parent 52d2643994
commit 17d159d76d

View File

@ -88,6 +88,7 @@ options:
-show-cxxflags Print C++ compiler flags
-show-cflags-arch The C compiler arch flag (eg, -m64 etc)
-show-cxxflags-arch The C++ compiler arch flag (eg, -m64 etc)
-version | --version Print the api value
-h | -help Print the usage
@ -196,6 +197,11 @@ do
update=true
: ${all:=all} # implies 'all', unless previous set to 'queue' etc.
;;
-version | --version)
$make -f $WM_DIR/makefiles/info api
optShow=true
break;
;;
--)
shift
break