You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by xi...@apache.org on 2021/03/07 04:17:53 UTC

[incubator-nuttx] branch master updated: tools/version.h: If the version is not available, use 0.0.0

This is an automated email from the ASF dual-hosted git repository.

xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git


The following commit(s) were added to refs/heads/master by this push:
     new cb9ff5f  tools/version.h: If the version is not available, use 0.0.0
cb9ff5f is described below

commit cb9ff5ff994fbbcd8eb949fabcb8b8765709b356
Author: YAMAMOTO Takashi <ya...@midokura.com>
AuthorDate: Fri Feb 26 12:21:07 2021 +0900

    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.
---
 tools/version.sh | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/tools/version.sh b/tools/version.sh
index f695efd..8c47bd8 100755
--- a/tools/version.sh
+++ b/tools/version.sh
@@ -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