mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* tool/make-snapshot: add version number.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14700 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
633df8de16
commit
f64fc63cec
2 changed files with 10 additions and 4 deletions
|
@ -1,3 +1,7 @@
|
|||
Tue Dec 25 21:44:50 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* tool/make-snapshot: add version number.
|
||||
|
||||
Tue Dec 25 21:32:54 2007 Koichi Sasada <ko1@atdot.net>
|
||||
|
||||
* compile.c (iseq_compile_each): fix stack consistency error
|
||||
|
|
|
@ -13,13 +13,14 @@ fi
|
|||
[ -d "$1" ] || mkdir "$1" || exit 1
|
||||
dest=`cd "$1"; pwd`
|
||||
|
||||
tmp=${TMP_DIR-/tmp}/ #ruby-snapshot-$$
|
||||
tmp="${TMP_DIR-/tmp}/ruby-snapshot-$$"
|
||||
mkdir -p "$tmp"
|
||||
cd "$tmp"
|
||||
(cd "$tmp"
|
||||
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
|
||||
version=`sed -n -e '/^#define RUBY_VERSION /s/[^0-9.]//gp' ruby/version.h`
|
||||
v=ruby-$version-r$revision
|
||||
mv ruby $v
|
||||
(cd $v; autoconf; (sed '/lex\.c/,/^$/!d' Makefile.in; sed 's/{[^{}]*}//g' common.mk) | make -f - prereq srcdir=.)
|
||||
|
||||
|
@ -33,4 +34,5 @@ for cmd in "bzip tarball.tar.bz2 tar cjf" "gzip tarball.tar.gz tar czf" "zip arc
|
|||
echo " failed"
|
||||
fi
|
||||
done
|
||||
exec rm -fr $v
|
||||
exec rm -fr $v)
|
||||
exec rmdir "$tmp"
|
||||
|
|
Loading…
Reference in a new issue