Skip to content

Commit 40038e1

Browse files
author
Charlie Somerville
committed
Merge pull request #6 from github/branch-and-sha-in-description-1.9
Put branch name and commit SHA in RUBY_DESCRIPTION
2 parents 75b89a1 + 62adaaa commit 40038e1

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

script/deploy

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,11 @@ function try {
1111

1212
cd "$(dirname "$0")/.."
1313

14+
branch_name="$1"
15+
commit="$(git rev-parse --short HEAD)"
16+
17+
perl -pi -e "s/development/$branch_name $commit/" version.h
18+
1419
try autoconf
1520
try ./configure --prefix=/data/ruby --disable-install-doc
1621
try make -j 4

version.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,7 @@
4343
"ruby "RUBY_VERSION \
4444
RUBY_PATCHLEVEL_STR \
4545
"-tcs-github" \
46-
" ("RUBY_RELEASE_DATE \
47-
RUBY_REVISION_STR") " \
46+
" (development) " \
4847
"["RUBY_PLATFORM"]"
4948
# define RUBY_COPYRIGHT \
5049
"ruby - Copyright (C) " \

0 commit comments

Comments
 (0)