Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- From fb69a88323eef661b6a9113ad7967138f4d78e9f Mon Sep 17 00:00:00 2001
- From: Shiv Shankar <shiv.shankar@gtnexus.com>
- Date: Thu, 28 Apr 2016 15:53:33 -0400
- Subject: [PATCH] from before it was mainstream
- ---
- GIT-VERSION-GEN | 22 ++--------------------
- 1 file changed, 2 insertions(+), 20 deletions(-)
- diff --git a/GIT-VERSION-GEN b/GIT-VERSION-GEN
- index 655b490..09c9c04 100755
- --- a/GIT-VERSION-GEN
- +++ b/GIT-VERSION-GEN
- @@ -1,30 +1,12 @@
- #!/bin/sh
- GVF=GIT-VERSION-FILE
- -DEF_VER=v2.8.0.GIT
- +DEF_VER=v0.0.1.FROMBEFOREITWASMAINSTREAM
- LF='
- '
- -# First see if there is a version file (included in release tarballs),
- -# then try git-describe, then default.
- -if test -f version
- -then
- - VN=$(cat version) || VN="$DEF_VER"
- -elif test -d ${GIT_DIR:-.git} -o -f .git &&
- - VN=$(git describe --match "v[0-9]*" --abbrev=7 HEAD 2>/dev/null) &&
- - case "$VN" in
- - *$LF*) (exit 1) ;;
- - v[0-9]*)
- - git update-index -q --refresh
- - test -z "$(git diff-index --name-only HEAD --)" ||
- - VN="$VN-dirty" ;;
- - esac
- -then
- - VN=$(echo "$VN" | sed -e 's/-/./g');
- -else
- - VN="$DEF_VER"
- -fi
- +VN="$DEF_VER"
- VN=$(expr "$VN" : v*'\(.*\)')
- --
- 2.8.1.339.g3ad15fd.dirty
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement