mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* tool/make-snapshot: prefixed r makes $revision always true.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15661 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
ffd3954d31
commit
e31eeedb94
1 changed files with 2 additions and 2 deletions
|
@ -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=.)
|
||||
|
||||
|
|
Loading…
Reference in a new issue