diff --git a/wmake/wmakePrintBuild b/wmake/wmakePrintBuild index d82c9ef92d..da3c8d4086 100755 --- a/wmake/wmakePrintBuild +++ b/wmake/wmakePrintBuild @@ -27,15 +27,13 @@ # wmakePrintBuild # # Description -# Print the version used when building the project. +# Print the version used when building the project # #------------------------------------------------------------------------------ -Script=${0##*/} - usage() { while [ "$#" -ge 1 ]; do echo "$1"; shift; done cat</dev/null | head -1) + version=$( + cd $WM_PROJECT_DIR 2>/dev/null && \ + git show-ref --hash=12 --head HEAD 2>/dev/null | head -1 + ) if [ -n "$version" ] then