[前][次][番号順一覧][スレッド一覧]

ruby-changes:19616

From: shyouhei <ko1@a...>
Date: Sat, 21 May 2011 07:27:18 +0900 (JST)
Subject: [ruby-changes:19616] shyouhei:r31658 (ruby_1_8_7): merge revision(s) 30401:

shyouhei	2011-05-21 07:25:38 +0900 (Sat, 21 May 2011)

  New Revision: 31658

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=31658

  Log:
    merge revision(s) 30401:
    
    * win32/README.win32: note to need NT based OS to build ruby.
    
    * win32/{configure.bat,setup.mak}: backport current build method from
      trunk. [ruby-dev:42893] (#4206)
    
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@30401 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
    Signed-off-by: URABE, Shyouhei <shyouhei@r...>

  Modified files:
    branches/ruby_1_8_7/ChangeLog
    branches/ruby_1_8_7/version.h
    branches/ruby_1_8_7/win32/README.win32
    branches/ruby_1_8_7/win32/configure.bat
    branches/ruby_1_8_7/win32/setup.mak

Index: ruby_1_8_7/ChangeLog
===================================================================
--- ruby_1_8_7/ChangeLog	(revision 31657)
+++ ruby_1_8_7/ChangeLog	(revision 31658)
@@ -1,3 +1,10 @@
+Fri May 20 23:10:07 2011  NAKAMURA Usaku  <usa@r...>
+
+	* win32/README.win32: note to need NT based OS to build ruby.
+
+	* win32/{configure.bat,setup.mak}: backport current build method from
+	  trunk. [ruby-dev:42893] (#4206)
+
 Fri May 20 23:06:31 2011  NAKAMURA, Hiroshi  <nahi@r...>
 
 	* Backported the fix at
Index: ruby_1_8_7/version.h
===================================================================
--- ruby_1_8_7/version.h	(revision 31657)
+++ ruby_1_8_7/version.h	(revision 31658)
@@ -2,7 +2,7 @@
 #define RUBY_RELEASE_DATE "2011-05-20"
 #define RUBY_VERSION_CODE 187
 #define RUBY_RELEASE_CODE 20110520
-#define RUBY_PATCHLEVEL 335
+#define RUBY_PATCHLEVEL 337
 
 #define RUBY_VERSION_MAJOR 1
 #define RUBY_VERSION_MINOR 8
Index: ruby_1_8_7/win32/configure.bat
===================================================================
--- ruby_1_8_7/win32/configure.bat	(revision 31657)
+++ ruby_1_8_7/win32/configure.bat	(revision 31658)
@@ -8,6 +8,7 @@
 echo>> ~tmp~.mak $(conf:\=/): nul
 echo>> ~tmp~.mak 	@del ~tmp~.mak
 echo>> ~tmp~.mak 	@-$(MAKE) -l$(MAKEFLAGS) -f $(@D)/setup.mak \
+echo>confargs.tmp #define CONFIGURE_ARGS \
 :loop
 if "%1" == "" goto :end
 if "%1" == "--prefix" goto :prefix
@@ -24,62 +25,84 @@
 if "%1" == "--enable-install-doc" goto :enable-rdoc
 if "%1" == "--disable-install-doc" goto :disable-rdoc
 if "%1" == "--extout" goto :extout
+echo %1| findstr "^--with-.*-dir$" > nul
+if not errorlevel 1 goto :withdir
+echo %1| findstr "^--with-.*-include$" > nul
+if not errorlevel 1 goto :withdir
+echo %1| findstr "^--with-.*-lib$" > nul
+if not errorlevel 1 goto :withdir
 if "%1" == "-h" goto :help
 if "%1" == "--help" goto :help
-  echo>> ~tmp~.mak 	"%1" \
+  echo>>confargs.tmp %1 \
   shift
 goto :loop
 :srcdir
   echo>> ~tmp~.mak 	"srcdir=%2" \
+  echo>>confargs.tmp %1=%2 \
   shift
   shift
 goto :loop
 :prefix
   echo>> ~tmp~.mak 	"prefix=%2" \
+  echo>>confargs.tmp %1=%2 \
   shift
   shift
 goto :loop
 :suffix
   echo>> ~tmp~.mak 	"RUBY_SUFFIX=%2" \
+  echo>>confargs.tmp %1=%2 \
   shift
   shift
 goto :loop
 :installname
   echo>> ~tmp~.mak 	"RUBY_INSTALL_NAME=%2" \
+  echo>>confargs.tmp %1=%2 \
   shift
   shift
 goto :loop
 :soname
   echo>> ~tmp~.mak 	"RUBY_SO_NAME=%2" \
+  echo>>confargs.tmp %1=%2 \
   shift
   shift
 goto :loop
 :target
   echo>> ~tmp~.mak 	"%2" \
+  echo>>confargs.tmp %1=%2 \
   shift
   shift
 goto :loop
 :extstatic
   echo>> ~tmp~.mak 	"EXTSTATIC=static" \
+  echo>>confargs.tmp %1 \
   shift
 goto :loop
 :winsock2
   echo>> ~tmp~.mak 	"USE_WINSOCK2=1" \
+  echo>>confargs.tmp %1 \
   shift
 goto :loop
 :enable-rdoc
   echo>> ~tmp~.mak 	"RDOCTARGET=install-doc" \
+  echo>>confargs.tmp %1 \
   shift
 goto :loop
 :disable-rdoc
   echo>> ~tmp~.mak 	"RDOCTARGET=install-nodoc" \
+  echo>>confargs.tmp %1 \
   shift
 goto :loop
 :extout
   echo>> ~tmp~.mak 	"EXTOUT=%2" \
+  echo>>confargs.tmp %1=%2 \
   shift
   shift
 goto :loop
+:withdir
+  echo>>confargs.tmp %1=%2 \
+  shift
+  shift
+goto :loop
 :help
   echo Configuration:
   echo   --help                  display this help
@@ -92,9 +115,17 @@
   echo   --with-winsock2         link winsock2
   echo   --with-static-linked-ext link external modules statically
   echo   --enable-install-doc    install rdoc indexes during install
+  del *.tmp
   del ~tmp~.mak
 goto :exit
 :end
-echo>> ~tmp~.mak 	WIN32DIR=$(@D)
+echo>> ~tmp~.mak 	WIN32DIR=$(@D:\=/)
+echo.>>confargs.tmp
+echo>confargs.c #define $ $$ 
+type>>confargs.c confargs.tmp
+echo>>confargs.c configure_args = CONFIGURE_ARGS
+echo>>confargs.c #undef $
+cl -EP confargs.c >> ~tmp~.mak 2>nul
+del *.tmp > nul
 nmake -alf ~tmp~.mak
 :exit
Index: ruby_1_8_7/win32/setup.mak
===================================================================
--- ruby_1_8_7/win32/setup.mak	(revision 31657)
+++ ruby_1_8_7/win32/setup.mak	(revision 31658)
@@ -165,7 +165,13 @@
 	@echo $(CPU) = 6>>$(MAKEFILE)
 
 -epilogue-: nul
+!if exist(confargs.c)
+	@$(APPEND)
+	@$(CPP) confargs.c 2>&1 | findstr "! =" >> $(MAKEFILE)
+	@del confargs.c
+!endif
 	@type << >>$(MAKEFILE)
+
 # OS = $(OS)
 # RUBY_INSTALL_NAME = ruby
 # RUBY_SO_NAME = $$(RT)-$$(RUBY_INSTALL_NAME)$$(MAJOR)$$(MINOR)
Index: ruby_1_8_7/win32/README.win32
===================================================================
--- ruby_1_8_7/win32/README.win32	(revision 31657)
+++ ruby_1_8_7/win32/README.win32	(revision 31658)
@@ -4,13 +4,15 @@
 
 == Requirement
 
-(1) Visual C++ 5.0 or later.
+(1) Windows 2000 or later (NT based kernel).
 
-(2) If you want to run `((%nmake clean%))' or `((%nmake distclean%))'
+(2) Visual C++ 6.0 or later.
+
+(3) If you want to run `((%nmake clean%))' or `((%nmake distclean%))'
     properly, you must install UNIX compatible `((%rm%))' command on
     your ((|PATH|)) if you want to clean after compile.
 
-(3) Please set environment variable (({INCLUDE})), (({LIB})), (({PATH}))
+(4) Please set environment variable (({INCLUDE})), (({LIB})), (({PATH}))
     to run required commands properly from the command line.
 
     Note: building ruby requires following commands.

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]