Guest User

Untitled

a guest
May 25th, 2018
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. #!/bin/sh
  2. VN=$(git describe --tags HEAD 2>/dev/null)
  3. #VN=$(echo "$VN" | sed -e 's/-/./g')
  4. LF='
  5. '
  6. case "$VN" in
  7. *$LF*) (exit 1) ;;
  8. v[0-9]*)
  9. test -z "$(git diff-index --name-only HEAD)" ||
  10. VN="$VN-dirty" ;;
  11. esac
  12. VN=$(expr "$VN" : v*'\(.*\)')
  13. echo "$VN"
Add Comment
Please, Sign In to add comment