Add MIT license to autogen.sh and share/genbuild.sh
[VerusCoin.git] / share / genbuild.sh
index ffa89ca6e47b2c4764d17b1fed97742228552552..3c0a591a3c9b25ff642166110f56b1a1b6cf1947 100755 (executable)
@@ -1,4 +1,10 @@
 #!/bin/sh
+# Copyright (c) 2016-2019 The Zcash developers
+# Copyright (c) 2012-2019 The Bitcoin Core developers
+# Copyright (c) 2012-2019 Bitcoin Developers
+# Distributed under the MIT software license, see the accompanying
+# file COPYING or http://www.opensource.org/licenses/mit-license.php .
+
 if [ $# -gt 1 ]; then
     cd "$2"
 fi
@@ -22,7 +28,7 @@ if [ -e "$(which git 2>/dev/null)" -a "$(git rev-parse --is-inside-work-tree 2>/
 
     # if latest commit is tagged and not dirty, then override using the tag name
     RAWDESC=$(git describe --abbrev=0 2>/dev/null)
-    if [ "$(git rev-parse HEAD)" = "$(git rev-list -1 $RAWDESC)" ]; then
+    if [ "$(git rev-parse HEAD)" = "$(git rev-list -1 $RAWDESC 2>/dev/null)" ]; then
         git diff-index --quiet HEAD -- && DESC=$RAWDESC
     fi
 
This page took 0.024433 seconds and 4 git commands to generate.