Skip to content

Commit

Permalink
* tool/make-snapshot: prefixed r makes $revision always true.
Browse files Browse the repository at this point in the history
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15661 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  • Loading branch information
nobu committed Mar 1, 2008
1 parent ffd3954 commit e31eeed
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tool/make-snapshot
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@ dest=`cd "$1"; pwd`
tmp="${TMP_DIR-/tmp}/ruby-snapshot-$$"
mkdir -p "$tmp"
(cd "$tmp"
revision=r`svn export $SVNURL ruby | sed -n '$s/[^0-9]//gp'`
revision=`svn export $SVNURL ruby | sed -n '$s/[^0-9]//gp'`
[ $revision ] || revision=`svn info $SVNURL | sed -n 's/Revision: //p'`
echo "#define RUBY_REVISION $revision" > ruby/revision.h
version=`sed -n -e '/^#define RUBY_VERSION /s/[^0-9.]//gp' ruby/version.h`
v=ruby-$version-${2-$revision}
v=ruby-$version-${2-r$revision}
mv ruby $v
(cd $v; autoconf; (sed '/lex\.c/,/^$/!d' Makefile.in; sed 's/{[^{}]*}//g' common.mk) | make -f - prereq srcdir=.)

Expand Down

0 comments on commit e31eeed

Please sign in to comment.