summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoreban <eban@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-12-25 11:14:38 +0000
committereban <eban@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-12-25 11:14:38 +0000
commit7847c1b860cd634aa88e15ee5b7a81e3a8eb182c (patch)
treefd45335ae4e96c3e14da1126320bb65fd2c569e3
parentb2258b6482dda5d30d85d49900cc7612f6ca2f73 (diff)
* tool/make-snapshot: more portable.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14694 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--ChangeLog4
-rwxr-xr-xtool/make-snapshot2
2 files changed, 5 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index d2a6dc56a73..935607bf31e 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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 f0f377c9ca7..957c3e8b465 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