diff options
Diffstat (limited to 'VERSION-GEN')
-rwxr-xr-x | VERSION-GEN | 36 |
1 files changed, 0 insertions, 36 deletions
diff --git a/VERSION-GEN b/VERSION-GEN deleted file mode 100755 index 35dab9d..0000000 --- a/VERSION-GEN +++ /dev/null @@ -1,36 +0,0 @@ -#!/bin/sh -VF=lib/mwrap/version.rb -DEF_VER=v3.0.0-pre1 -VN=$(git describe HEAD 2>/dev/null) -if test $? -eq 0 -then - case "$VN" in - v[0-9]*) - set -e - git update-index -q --refresh - set +e - git diff-index --quiet HEAD -- || VN="$VN-dirty" - set -e - VN=$(echo $VN | tr '-' '.') - ;; - esac -fi -set -e - -case $VN in -'') VN="$DEF_VER" ;; -esac - -VN=$(expr "$VN" : v*'\(.*\)') -VC=unset -if test -r $VF -then - VC="$(cat $VF)" -fi - -new="module Mwrap; VERSION = '$VN'.freeze; end" -if test x"$new" != x"$VC" -then - echo "$new" >$VF -fi -echo $VN |