summaryrefslogtreecommitdiff
path: root/tool/make-snapshot
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-03-01 05:13:28 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-03-01 05:13:28 +0000
commit22dc58bf973a78675b1f98eafe052fe614471d72 (patch)
tree701e027bfdde5786c4e7d58c80fd95d9660c4fa1 /tool/make-snapshot
parent00bf4e8a84c59f051b87c1a613fe8544b86c5aa6 (diff)
* tool/make-snapshot: make prereq uses MINIRUBY.
* tool/make-snapshot: allow packaging like 1.9.0-1 by second command-line argument. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15659 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'tool/make-snapshot')
-rwxr-xr-xtool/make-snapshot8
1 files changed, 4 insertions, 4 deletions
diff --git a/tool/make-snapshot b/tool/make-snapshot
index 3d3b43a..c3dbf54 100755
--- a/tool/make-snapshot
+++ b/tool/make-snapshot
@@ -3,8 +3,8 @@
LC_ALL=C LANG=C
SVNURL=http://svn.ruby-lang.org/repos/ruby/trunk
export LC_ALL LANG
-: ${VPATH=include/ruby} ${YACC=bison} ${BASERUBY=ruby} ${RUBY=ruby} ${MV=mv}
-export VPATH YACC BASERUBY RUBY MV
+: ${VPATH=include/ruby} ${YACC=bison} ${BASERUBY=ruby} ${RUBY=ruby} ${MV=mv} ${MINIRUBY=ruby}
+export VPATH YACC BASERUBY RUBY MV MINIRUBY
if [ ! "$1" ]; then
echo usage: `basename $0` new-directory-to-save 1>&2
@@ -16,11 +16,11 @@ 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]//gp'`
+revision=r`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
version=`sed -n -e '/^#define RUBY_VERSION /s/[^0-9.]//gp' ruby/version.h`
-v=ruby-$version-r$revision
+v=ruby-$version-${2-$revision}
mv ruby $v
(cd $v; autoconf; (sed '/lex\.c/,/^$/!d' Makefile.in; sed 's/{[^{}]*}//g' common.mk) | make -f - prereq srcdir=.)