summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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