From e8bd0d7bb0bd4888a516d198b7d166029c48a61e Mon Sep 17 00:00:00 2001 From: Charlie Somerville Date: Thu, 17 Oct 2013 14:59:37 -0400 Subject: [PATCH 1/3] put (development) in RUBY_DESCRIPTION instead of date/revision --- version.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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) " \ From b7fd1f95fdbe8ab6849f08b2cd7a11570942115a Mon Sep 17 00:00:00 2001 From: Charlie Somerville Date: Thu, 17 Oct 2013 15:09:14 -0400 Subject: [PATCH 2/3] put branch name and commit sha in -v output --- script/deploy | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/script/deploy b/script/deploy index 82f82214b713bb..c0df2b3b1fd8b1 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)" + +sed -i '' -e "s/development/$branch_name $commit/" version.h + try autoconf try ./configure --prefix=/data/ruby --disable-install-doc try make -j 4 From 62adaaa6bc73c3d24fd3ad7ed86c807de7815a4d Mon Sep 17 00:00:00 2001 From: Charlie Somerville Date: Thu, 17 Oct 2013 15:19:31 -0400 Subject: [PATCH 3/3] use perl instead because sed was throwing a weird error --- script/deploy | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/script/deploy b/script/deploy index c0df2b3b1fd8b1..7588026ab7b201 100755 --- a/script/deploy +++ b/script/deploy @@ -14,7 +14,7 @@ cd "$(dirname "$0")/.." branch_name="$1" commit="$(git rev-parse --short HEAD)" -sed -i '' -e "s/development/$branch_name $commit/" version.h +perl -pi -e "s/development/$branch_name $commit/" version.h try autoconf try ./configure --prefix=/data/ruby --disable-install-doc