summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-05-16 04:38:47 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-05-16 04:38:47 +0000
commitef1e10197bdae9170d620fe58783fd562f88da90 (patch)
tree1cd844183f5c9bb9a0326d1dd1dadffa85c34cef
parent9d9c38d4f9fc92495d2b1ab6a4630db46db190b2 (diff)
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
-rw-r--r--ChangeLog6
-rw-r--r--Makefile.in19
2 files changed, 25 insertions, 0 deletions
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 <akr@fsij.org>
+
+ * 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 <nagai@ai.kyutech.ac.jp>
* 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