diff --git a/script/deploy b/script/deploy index 82f82214b713bb..7588026ab7b201 100755 --- a/script/deploy +++ b/script/deploy @@ -11,6 +11,11 @@ function try { cd "$(dirname "$0")/.." +branch_name="$1" +commit="$(git rev-parse --short HEAD)" + +perl -pi -e "s/development/$branch_name $commit/" version.h + try autoconf try ./configure --prefix=/data/ruby --disable-install-doc try make -j 4 diff --git a/version.h b/version.h index 4f524ae8ba58cd..8d40c4361c54e6 100644 --- a/version.h +++ b/version.h @@ -43,8 +43,7 @@ "ruby "RUBY_VERSION \ RUBY_PATCHLEVEL_STR \ "-tcs-github" \ - " ("RUBY_RELEASE_DATE \ - RUBY_REVISION_STR") " \ + " (development) " \ "["RUBY_PLATFORM"]" # define RUBY_COPYRIGHT \ "ruby - Copyright (C) " \