1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* 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:
nobu 2007-12-25 11:03:28 +00:00
parent 0ee5a49dd4
commit b2258b6482

View file

@ -12,7 +12,7 @@ dest=`cd "$1"; pwd`
tmp=${TMP_DIR-/tmp}/ #ruby-snapshot-$$
mkdir -p "$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'`
echo "#define RUBY_REVISION $revision" > ruby/revision.h
v=ruby-r$revision