tools/version.h: If the version is not available, use 0.0.0

It's useful when you only have shallow git history handy.
(eg. to save some network bandwidth)

The default value here was chosen to mirror the default of
tools/Makefile.win.
This commit is contained in:
YAMAMOTO Takashi 2021-02-26 12:21:07 +09:00 committed by Xiang Xiao
parent 95c8c99a3f
commit cb9ff5ff99

View File

@ -84,10 +84,8 @@ fi
# Make sure we know what is going on
if [ -z ${VERSION} ] ; then
echo "Missing versioning information"
echo $USAGE
echo $ADVICE
exit 1
echo "Missing versioning information. Using the dummy value. (0.0.0)"
VERSION="0.0.0"
fi
if [ -z ${OUTFILE} ] ; then