diff options
-rw-r--r-- | ChangeLog | 4 | ||||
-rwxr-xr-x | tool/make-snapshot | 2 |
2 files changed, 5 insertions, 1 deletions
@@ -1,3 +1,7 @@ +Tue Dec 25 20:07:13 2007 WATANABE Hirofumi <eban@ruby-lang.org> + + * tool/make-snapshot: more portable. + Tue Dec 25 19:01:04 2007 Nobuyoshi Nakada <nobu@ruby-lang.org> * encoding.h (rb_enc_mbc_to_codepoint): wrapper for 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 |