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

ruby-changes:14561

From: nobu <ko1@a...>
Date: Mon, 25 Jan 2010 17:36:38 +0900 (JST)
Subject: [ruby-changes:14561] Ruby:r26401 (trunk): * version.c (RUBY_LIB, RUBY_*_LIB): moved from configures.

nobu	2010-01-25 17:36:14 +0900 (Mon, 25 Jan 2010)

  New Revision: 26401

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

  Log:
    * version.c (RUBY_LIB, RUBY_*_LIB): moved from configures.

  Modified files:
    trunk/ChangeLog
    trunk/bcc32/Makefile.sub
    trunk/configure.in
    trunk/include/ruby/ruby.h
    trunk/include/ruby/st.h
    trunk/symbian/setup
    trunk/version.c
    trunk/win32/Makefile.sub

Index: include/ruby/ruby.h
===================================================================
--- include/ruby/ruby.h	(revision 26400)
+++ include/ruby/ruby.h	(revision 26401)
@@ -21,7 +21,7 @@
 #endif
 #endif
 
-#ifndef RUBY_LIB
+#ifndef RUBY_LIB_PREFIX
 #include "ruby/config.h"
 #ifdef RUBY_EXTCONF_H
 #include RUBY_EXTCONF_H
Index: include/ruby/st.h
===================================================================
--- include/ruby/st.h	(revision 26400)
+++ include/ruby/st.h	(revision 26401)
@@ -12,7 +12,7 @@
 #endif
 #endif
 
-#ifndef RUBY_LIB
+#ifndef RUBY_LIB_PREFIX
 #include "ruby/config.h"
 #include "ruby/defines.h"
 #ifdef RUBY_EXTCONF_H
Index: configure.in
===================================================================
--- configure.in	(revision 26400)
+++ configure.in	(revision 26401)
@@ -2389,7 +2389,6 @@
 fi
 
 pat=`echo "$RUBY_LIB_PREFIX/" | tr -c '\012' .`'\(.*\)'
-RUBY_LIB_PATH='RUBY_LIB_PREFIX"/"RUBY_LIB_VERSION'
 AS_CASE(["$RUBY_SITE_LIB_PATH"],
   ["$RUBY_LIB_PREFIX/"*], [
     RUBY_SITE_LIB_PATH='RUBY_LIB_PREFIX"/'"`expr \"$RUBY_SITE_LIB_PATH\" : \"$pat\"`"'"'
@@ -2397,7 +2396,6 @@
   [
     RUBY_SITE_LIB_PATH="\"${RUBY_SITE_LIB_PATH}\""
     ])
-RUBY_SITE_LIB_PATH2='RUBY_SITE_LIB"/"RUBY_LIB_VERSION'
 AS_CASE(["$RUBY_VENDOR_LIB_PATH"],
   ["$RUBY_LIB_PREFIX/"*], [
     RUBY_VENDOR_LIB_PATH='RUBY_LIB_PREFIX"/'"`expr \"$RUBY_VENDOR_LIB_PATH\" : \"$pat\"`"'"'
@@ -2405,7 +2403,6 @@
   [
     RUBY_VENDOR_LIB_PATH="\"${RUBY_VENDOR_LIB_PATH}\""
     ])
-RUBY_VENDOR_LIB_PATH2='RUBY_VENDOR_LIB"/"RUBY_LIB_VERSION'
 
 if test ${RUBY_LIB_VERSION_STYLE+set}; then
     AC_DEFINE_UNQUOTED(RUBY_LIB_VERSION_STYLE, $RUBY_LIB_VERSION_STYLE)
@@ -2413,11 +2410,8 @@
     AC_DEFINE_UNQUOTED(RUBY_LIB_VERSION, [$RUBY_LIB_VERSION])
 fi
 AC_DEFINE_UNQUOTED(RUBY_LIB_PREFIX, "${RUBY_LIB_PREFIX}")
-AC_DEFINE_UNQUOTED(RUBY_LIB, ${RUBY_LIB_PATH})
 AC_DEFINE_UNQUOTED(RUBY_SITE_LIB, ${RUBY_SITE_LIB_PATH})
-AC_DEFINE_UNQUOTED(RUBY_SITE_LIB2, ${RUBY_SITE_LIB_PATH2})
 AC_DEFINE_UNQUOTED(RUBY_VENDOR_LIB, ${RUBY_VENDOR_LIB_PATH})
-AC_DEFINE_UNQUOTED(RUBY_VENDOR_LIB2, ${RUBY_VENDOR_LIB_PATH2})
 
 AC_SUBST(arch)dnl
 AC_SUBST(sitearch)dnl
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 26400)
+++ ChangeLog	(revision 26401)
@@ -1,3 +1,7 @@
+Mon Jan 25 17:36:11 2010  Nobuyoshi Nakada  <nobu@r...>
+
+	* version.c (RUBY_LIB, RUBY_*_LIB): moved from configures.
+
 Mon Jan 25 12:11:45 2010  Nobuyoshi Nakada  <nobu@r...>
 
 	* signal.c (USE_SIGALTSTACK): only when SA_SIGINFO also is
Index: win32/Makefile.sub
===================================================================
--- win32/Makefile.sub	(revision 26400)
+++ win32/Makefile.sub	(revision 26401)
@@ -567,17 +567,9 @@
 #define EXECUTABLE_EXTS $(EXECUTABLE_EXTS)
 #define RUBY_LIB_VERSION_STYLE 3	/* full */
 #define RUBY_LIB_PREFIX "/lib/$(RUBY_BASE_NAME)"
-#define RUBY_LIB RUBY_LIB_PREFIX"/"RUBY_LIB_VERSION
-#define RUBY_SITE_LIB RUBY_LIB_PREFIX"/site_ruby"
-#define RUBY_SITE_LIB2 RUBY_SITE_LIB"/"RUBY_LIB_VERSION
-#define RUBY_VENDOR_LIB RUBY_LIB_PREFIX"/vendor_ruby"
-#define RUBY_VENDOR_LIB2 RUBY_VENDOR_LIB"/"RUBY_LIB_VERSION
 #define RUBY_PLATFORM "$(arch)"
 #define RUBY_SITEARCH "$(sitearch)"
 #define RUBY_COREDLL "$(RT)"
-#define RUBY_ARCHLIB RUBY_LIB"/"RUBY_ARCH
-#define RUBY_SITE_ARCHLIB RUBY_SITE_LIB2"/"RUBY_SITEARCH
-#define RUBY_VENDOR_ARCHLIB RUBY_VENDOR_LIB2"/"RUBY_SITEARCH
 #define LIBRUBY_SO "$(LIBRUBY_SO)"
 #if 0
 $(BANG)if "$(RUBY_SO_NAME)"!="$$(RUBY_SO_NAME)" || "$(ARCH)-$(PLATFORM)"!="$$(ARCH)-$$(PLATFORM)"
Index: symbian/setup
===================================================================
--- symbian/setup	(revision 26400)
+++ symbian/setup	(revision 26401)
@@ -170,15 +170,10 @@
 @echo>>$(1) #define DLEXT ".dll"
 @echo>>$(1) #define EXECUTABLE_EXTS ".exe",".com",".cmd",".bat"
 @echo>>$(1) #define DLN_NEEDS_ALT_SEPARATOR 1
-@echo>>$(1) #define RUBY_LIB "C:/Data/Ruby/lib/$(MAJOR).$(MINOR).$(TEENY)"
+@echo>>$(1) #define RUBY_LIB_PREFIX "C:/Data/Ruby/lib"
 @echo>>$(1) #define RUBY_SITE_LIB "E:/Data/Ruby/lib"
-@echo>>$(1) #define RUBY_SITE_LIB2 "E:/Data/Ruby/lib/$(MAJOR).$(MINOR).$(TEENY)"
 @echo>>$(1) #define RUBY_VENDOR_LIB "C:/Data/Ruby/lib"
-@echo>>$(1) #define RUBY_VENDOR_LIB2 "C:/Data/Ruby/lib/$(MAJOR).$(MINOR).$(TEENY)"
 @echo>>$(1) #define RUBY_PLATFORM "$(arch)"
-@echo>>$(1) #define RUBY_ARCHLIB "C:/Data/Ruby/$(MAJOR).$(MINOR).$(TEENY)/$(arch)"
-@echo>>$(1) #define RUBY_SITE_ARCHLIB "E:/Data/Ruby/lib/$(MAJOR).$(MINOR).$(TEENY)/$(arch)"
-@echo>>$(1) #define RUBY_VENDOR_ARCHLIB "C:/Data/Ruby/lib/$(MAJOR).$(MINOR).$(TEENY)/$(arch)"
 endef
 
 define pre_build_mk
Index: version.c
===================================================================
--- version.c	(revision 26400)
+++ version.c	(revision 26401)
@@ -22,7 +22,31 @@
 #ifndef RUBY_SITEARCH
 #define RUBY_SITEARCH RUBY_ARCH
 #endif
+#ifdef RUBY_PLATFORM_CPU
+#define RUBY_THINARCH RUBY_PLATFORM_CPU"-"RUBY_PLATFORM_OS
+#endif
+#ifndef RUBY_LIB_PREFIX
+#error RUBY_LIB_PREFIX must be defined
+#endif
+#ifndef RUBY_SITE_LIB
+#define RUBY_SITE_LIB RUBY_LIB_PREFIX"/site_ruby"
+#endif
+#ifndef RUBY_VENDOR_LIB
+#define RUBY_VENDOR_LIB RUBY_LIB_PREFIX"/vendor_ruby"
+#endif
 
+#define RUBY_LIB                    RUBY_LIB_PREFIX  "/"RUBY_LIB_VERSION
+#define RUBY_SITE_LIB2              RUBY_SITE_LIB    "/"RUBY_LIB_VERSION
+#define RUBY_VENDOR_LIB2            RUBY_VENDOR_LIB  "/"RUBY_LIB_VERSION
+#define RUBY_ARCHLIB                RUBY_LIB         "/"RUBY_ARCH
+#define RUBY_SITE_ARCHLIB           RUBY_SITE_LIB2   "/"RUBY_SITEARCH
+#define RUBY_VENDOR_ARCHLIB         RUBY_VENDOR_LIB2 "/"RUBY_SITEARCH
+#ifdef  RUBY_THINARCH
+#define RUBY_THIN_ARCHLIB           RUBY_LIB         "/"RUBY_THINARCH
+#define RUBY_SITE_THIN_ARCHLIB      RUBY_SITE_LIB2   "/"RUBY_THINARCH
+#define RUBY_VENDOR_THIN_ARCHLIB    RUBY_VENDOR_LIB2 "/"RUBY_THINARCH
+#endif
+
 const char ruby_version[] = RUBY_VERSION;
 const char ruby_release_date[] = RUBY_RELEASE_DATE;
 const char ruby_platform[] = RUBY_PLATFORM;
Index: bcc32/Makefile.sub
===================================================================
--- bcc32/Makefile.sub	(revision 26400)
+++ bcc32/Makefile.sub	(revision 26401)
@@ -196,6 +196,10 @@
 
 INSTALLED_LIST= .installed.list
 
+MKMAIN_CMD    = mkmain.bat
+
+SRC_FILE      = $(<:\=/)
+
 WINMAINOBJ    = winmain.$(OBJEXT)
 ARCHMINIOBJS  = dmydln.$(OBJEXT)
 
@@ -353,15 +357,8 @@
 \#define DEFAULT_KCODE KCODE_NONE
 \#define LOAD_RELATIVE 1
 \#define DLEXT ".so"
-\#define RUBY_LIB "/lib/ruby/$(MAJOR).$(MINOR).$(TEENY)"
-\#define RUBY_SITE_LIB "/lib/ruby/site_ruby"
-\#define RUBY_SITE_LIB2 "/lib/ruby/site_ruby/$(MAJOR).$(MINOR).$(TEENY)"
-\#define RUBY_VENDOR_LIB "/lib/ruby/vendor_ruby"
-\#define RUBY_VENDOR_LIB2 "/lib/ruby/vendor_ruby/$(MAJOR).$(MINOR).$(TEENY)"
+\#define RUBY_LIB_PREFIX "/lib/ruby"
 \#define RUBY_PLATFORM "$(ARCH)-$(OS)"
-\#define RUBY_ARCHLIB "/lib/ruby/$(MAJOR).$(MINOR).$(TEENY)/$(ARCH)-$(OS)"
-\#define RUBY_SITE_ARCHLIB "/lib/ruby/site_ruby/$(MAJOR).$(MINOR).$(TEENY)/$(ARCH)-$(OS)"
-\#define RUBY_VENDOR_ARCHLIB "/lib/ruby/vendor_ruby/$(MAJOR).$(MINOR).$(TEENY)/$(ARCH)-$(OS)"
 |
 	@exit > $(@:/=\)
 

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

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