* tool/make-snapshot (revision): sed does not support +.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14693 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
0ee5a49dd4
commit
b2258b6482
@ -12,7 +12,7 @@ dest=`cd "$1"; pwd`
|
|||||||
tmp=${TMP_DIR-/tmp}/ #ruby-snapshot-$$
|
tmp=${TMP_DIR-/tmp}/ #ruby-snapshot-$$
|
||||||
mkdir -p "$tmp"
|
mkdir -p "$tmp"
|
||||||
cd "$tmp"
|
cd "$tmp"
|
||||||
revision=`svn export $SVNURL ruby | sed -n '$s/.*\([0-9]+\).*/\1/p'`
|
revision=`svn export $SVNURL ruby | sed -n '$s/.*\([0-9][0-9]*\).*/\1/p'`
|
||||||
[ $revision ] || revision=`svn info $SVNURL | sed -n 's/Revision: //p'`
|
[ $revision ] || revision=`svn info $SVNURL | sed -n 's/Revision: //p'`
|
||||||
echo "#define RUBY_REVISION $revision" > ruby/revision.h
|
echo "#define RUBY_REVISION $revision" > ruby/revision.h
|
||||||
v=ruby-r$revision
|
v=ruby-r$revision
|
||||||
|
Loading…
x
Reference in New Issue
Block a user