diff options
Diffstat (limited to 'tool')
-rwxr-xr-x | tool/make-snapshot | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tool/make-snapshot b/tool/make-snapshot index f0f377c9ca..957c3e8b46 100755 --- a/tool/make-snapshot +++ b/tool/make-snapshot @@ -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][0-9]*\).*/\1/p'` +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 v=ruby-r$revision |