Advertisement
Guest User

Untitled

a guest
Apr 28th, 2016
49
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.13 KB | None | 0 0
  1. From fb69a88323eef661b6a9113ad7967138f4d78e9f Mon Sep 17 00:00:00 2001
  2. From: Shiv Shankar <shiv.shankar@gtnexus.com>
  3. Date: Thu, 28 Apr 2016 15:53:33 -0400
  4. Subject: [PATCH] from before it was mainstream
  5.  
  6. ---
  7. GIT-VERSION-GEN | 22 ++--------------------
  8. 1 file changed, 2 insertions(+), 20 deletions(-)
  9.  
  10. diff --git a/GIT-VERSION-GEN b/GIT-VERSION-GEN
  11. index 655b490..09c9c04 100755
  12. --- a/GIT-VERSION-GEN
  13. +++ b/GIT-VERSION-GEN
  14. @@ -1,30 +1,12 @@
  15. #!/bin/sh
  16.  
  17. GVF=GIT-VERSION-FILE
  18. -DEF_VER=v2.8.0.GIT
  19. +DEF_VER=v0.0.1.FROMBEFOREITWASMAINSTREAM
  20.  
  21. LF='
  22. '
  23.  
  24. -# First see if there is a version file (included in release tarballs),
  25. -# then try git-describe, then default.
  26. -if test -f version
  27. -then
  28. - VN=$(cat version) || VN="$DEF_VER"
  29. -elif test -d ${GIT_DIR:-.git} -o -f .git &&
  30. - VN=$(git describe --match "v[0-9]*" --abbrev=7 HEAD 2>/dev/null) &&
  31. - case "$VN" in
  32. - *$LF*) (exit 1) ;;
  33. - v[0-9]*)
  34. - git update-index -q --refresh
  35. - test -z "$(git diff-index --name-only HEAD --)" ||
  36. - VN="$VN-dirty" ;;
  37. - esac
  38. -then
  39. - VN=$(echo "$VN" | sed -e 's/-/./g');
  40. -else
  41. - VN="$DEF_VER"
  42. -fi
  43. +VN="$DEF_VER"
  44.  
  45. VN=$(expr "$VN" : v*'\(.*\)')
  46.  
  47. --
  48. 2.8.1.339.g3ad15fd.dirty
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement