From ef1e10197bdae9170d620fe58783fd562f88da90 Mon Sep 17 00:00:00 2001 From: akr Date: Fri, 16 May 2008 04:38:47 +0000 Subject: Makefile.in (update-rubyspec): new target to download rubyspec. (test-rubyspec): new target to run rubyspec. this doesn't work before install. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@16430 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 6 ++++++ Makefile.in | 19 +++++++++++++++++++ 2 files changed, 25 insertions(+) diff --git a/ChangeLog b/ChangeLog index 91cf7e6d49..7da5e53c73 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +Fri May 16 13:01:43 2008 Tanaka Akira + + * Makefile.in (update-rubyspec): new target to download rubyspec. + (test-rubyspec): new target to run rubyspec. this doesn't work + before install. + Fri May 16 08:15:52 2008 Hidetoshi NAGAI * ext/tk/lib/tk.rb: fix memory (object) leak bug. diff --git a/Makefile.in b/Makefile.in index dc7ae287e8..9de43439e4 100644 --- a/Makefile.in +++ b/Makefile.in @@ -181,3 +181,22 @@ distclean-local:: ext/extinit.$(OBJEXT): ext/extinit.c $(SETUP) $(CC) $(CFLAGS) $(XCFLAGS) $(CPPFLAGS) $(OUTFLAG)$@ -c ext/extinit.c + +MSPEC_GIT_URL=git://github.com/brixen/mspec.git +RUBYSPEC_GIT_URL=git://github.com/brixen/rubyspec.git + +update-rubyspec: + if [ -d rubyspec ]; then \ + cd rubyspec/mspec; \ + git pull; \ + cd ../spec/rubyspec; \ + git pull; \ + else \ + git clone $(MSPEC_GIT_URL) rubyspec/mspec; \ + git clone $(RUBYSPEC_GIT_URL) rubyspec/spec/rubyspec; \ + fi + +# currently this doesn't work before install. +test-rubyspec: + @if [ ! -d rubyspec ]; then echo No rubyspec here. make update-rubyspec first.; exit 1; fi + ./$(PROGRAM) rubyspec/mspec/bin/mspec -t ./$(PROGRAM) rubyspec/spec/rubyspec/1.8 -- cgit v1.2.3