From 17d159d76d1a53c2ee8ab6b79078a5288e185674 Mon Sep 17 00:00:00 2001 From: Mark Olesen Date: Sun, 10 Nov 2019 11:24:07 +0100 Subject: [PATCH] COMP: add version information to wmake - wmake -version, --version option (alias for -show-api) for consistency with standard system tools --- wmake/wmake | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/wmake/wmake b/wmake/wmake index ec46d3f83d..88b227e17b 100755 --- a/wmake/wmake +++ b/wmake/wmake @@ -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