mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* Makefile.in, common.mk, {win,bcc}32/Makefile.sub (revision.h): auto
update. [ruby-core:17373] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@17543 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
5ca882ec08
commit
debd74a680
8 changed files with 66 additions and 10 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
Mon Jun 23 11:17:24 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||||
|
|
||||||
|
* Makefile.in, common.mk, {win,bcc}32/Makefile.sub (revision.h): auto
|
||||||
|
update. [ruby-core:17373]
|
||||||
|
|
||||||
Sun Jun 22 14:16:28 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
Sun Jun 22 14:16:28 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||||
|
|
||||||
* ext/readline/extconf.rb (have_readline_func): readline on Mac OS X
|
* ext/readline/extconf.rb (have_readline_func): readline on Mac OS X
|
||||||
|
|
|
@ -201,3 +201,10 @@ test-rubyspec:
|
||||||
@if [ ! -d $(srcdir)/rubyspec ]; then echo No rubyspec here. make update-rubyspec first.; exit 1; fi
|
@if [ ! -d $(srcdir)/rubyspec ]; then echo No rubyspec here. make update-rubyspec first.; exit 1; fi
|
||||||
$(RUNRUBY) $(srcdir)/rubyspec/mspec/bin/mspec -r$(srcdir)/ext/purelib.rb $(srcdir)/rubyspec/spec/rubyspec/$(MAJOR).$(MINOR)
|
$(RUNRUBY) $(srcdir)/rubyspec/mspec/bin/mspec -r$(srcdir)/ext/purelib.rb $(srcdir)/rubyspec/spec/rubyspec/$(MAJOR).$(MINOR)
|
||||||
|
|
||||||
|
|
||||||
|
$(srcdir)/revision.h: revision.h.tmp
|
||||||
|
@if [ -f "$@" ] && { [ ! -s $? ] || cmp "$@" $? >/dev/null; }; then \
|
||||||
|
$(RM) $?; \
|
||||||
|
else \
|
||||||
|
mv -f $? "$@"; \
|
||||||
|
fi
|
||||||
|
|
|
@ -61,6 +61,7 @@ AR = tlib
|
||||||
|
|
||||||
PURIFY =
|
PURIFY =
|
||||||
AUTOCONF = autoconf
|
AUTOCONF = autoconf
|
||||||
|
IFCHANGE = $(srcdir:/=\)\win32\ifchange.bat
|
||||||
RM = $(srcdir:/=\)\win32\rm.bat
|
RM = $(srcdir:/=\)\win32\rm.bat
|
||||||
|
|
||||||
!if !defined(PROCESSOR_ARCHITECTURE)
|
!if !defined(PROCESSOR_ARCHITECTURE)
|
||||||
|
@ -201,6 +202,9 @@ rubyw: $(WPROGRAM)
|
||||||
|
|
||||||
!include $(srcdir)/common.mk
|
!include $(srcdir)/common.mk
|
||||||
|
|
||||||
|
revision.h: revision.h.tmp
|
||||||
|
@$(IFCHANGE) "$(srcdir)/$@" "revision.h.tmp"
|
||||||
|
|
||||||
$(MKFILES): $(srcdir)/bcc32/Makefile.sub $(srcdir)/bcc32/configure.bat $(srcdir)/bcc32/setup.mak
|
$(MKFILES): $(srcdir)/bcc32/Makefile.sub $(srcdir)/bcc32/configure.bat $(srcdir)/bcc32/setup.mak
|
||||||
$(COMSPEC) /C $(srcdir:/=\)\bcc32\configure.bat $(configure_args)
|
$(COMSPEC) /C $(srcdir:/=\)\bcc32\configure.bat $(configure_args)
|
||||||
@echo $(MKFILES) should be updated, re-run $(MAKE).
|
@echo $(MKFILES) should be updated, re-run $(MAKE).
|
||||||
|
@ -216,7 +220,7 @@ config: config.status
|
||||||
config.status: $(CONFIG_H)
|
config.status: $(CONFIG_H)
|
||||||
|
|
||||||
$(CONFIG_H): $(MKFILES) $(srcdir)/bcc32/Makefile.sub
|
$(CONFIG_H): $(MKFILES) $(srcdir)/bcc32/Makefile.sub
|
||||||
@$(srcdir:/=\)\win32\ifchange.bat config.h &&|
|
@$(IFCHANGE) config.h &&|
|
||||||
\#define HAVE_SYS_TYPES_H 1
|
\#define HAVE_SYS_TYPES_H 1
|
||||||
\#define HAVE_SYS_STAT_H 1
|
\#define HAVE_SYS_STAT_H 1
|
||||||
\#define HAVE_STDLIB_H 1
|
\#define HAVE_STDLIB_H 1
|
||||||
|
|
|
@ -84,6 +84,7 @@ $(BANG)endif
|
||||||
|
|
||||||
-version-: nul
|
-version-: nul
|
||||||
@cpp32 -I$(srcdir) -P- -o$(MAKEFILE) > nul &&|
|
@cpp32 -I$(srcdir) -P- -o$(MAKEFILE) > nul &&|
|
||||||
|
\#define RUBY_REVISION 0
|
||||||
\#include "version.h"
|
\#include "version.h"
|
||||||
MAJOR = RUBY_VERSION_MAJOR
|
MAJOR = RUBY_VERSION_MAJOR
|
||||||
MINOR = RUBY_VERSION_MINOR
|
MINOR = RUBY_VERSION_MINOR
|
||||||
|
|
|
@ -78,6 +78,8 @@ PRE_LIBRUBY_UPDATE = $(MINIRUBY) -e 'ARGV[1] or File.unlink(ARGV[0]) rescue nil'
|
||||||
TESTSDIR = $(srcdir)/test
|
TESTSDIR = $(srcdir)/test
|
||||||
TESTWORKDIR = testwork
|
TESTWORKDIR = testwork
|
||||||
|
|
||||||
|
VCS = svn
|
||||||
|
|
||||||
all: $(MKFILES) $(PREP) $(RBCONFIG) $(LIBRUBY)
|
all: $(MKFILES) $(PREP) $(RBCONFIG) $(LIBRUBY)
|
||||||
@$(MINIRUBY) $(srcdir)/ext/extmk.rb --make="$(MAKE)" $(EXTMK_ARGS)
|
@$(MINIRUBY) $(srcdir)/ext/extmk.rb --make="$(MAKE)" $(EXTMK_ARGS)
|
||||||
prog: $(PROGRAM) $(WPROGRAM)
|
prog: $(PROGRAM) $(WPROGRAM)
|
||||||
|
@ -464,7 +466,12 @@ variable.$(OBJEXT): {$(VPATH)}variable.c {$(VPATH)}ruby.h config.h \
|
||||||
{$(VPATH)}env.h {$(VPATH)}node.h {$(VPATH)}st.h {$(VPATH)}util.h
|
{$(VPATH)}env.h {$(VPATH)}node.h {$(VPATH)}st.h {$(VPATH)}util.h
|
||||||
version.$(OBJEXT): {$(VPATH)}version.c {$(VPATH)}ruby.h config.h \
|
version.$(OBJEXT): {$(VPATH)}version.c {$(VPATH)}ruby.h config.h \
|
||||||
{$(VPATH)}defines.h {$(VPATH)}intern.h {$(VPATH)}missing.h \
|
{$(VPATH)}defines.h {$(VPATH)}intern.h {$(VPATH)}missing.h \
|
||||||
{$(VPATH)}version.h
|
{$(VPATH)}version.h {$(VPATH)}revision.h
|
||||||
|
|
||||||
dist: $(PROGRAM)
|
dist: $(PROGRAM)
|
||||||
$(RUNRUBY) $(srcdir)/distruby.rb
|
$(RUNRUBY) $(srcdir)/distruby.rb
|
||||||
|
|
||||||
|
revision.h.tmp: $(REVISION_FORCE)
|
||||||
|
@set LC_MESSAGES=C
|
||||||
|
-@$(SET_LC_MESSAGES) $(VCS) info "$(srcdir)" | \
|
||||||
|
sed -n "s/.*Rev:/#define RUBY_REVISION/p" > "$@"
|
||||||
|
|
|
@ -57,6 +57,7 @@ YACC = byacc
|
||||||
AR = lib -nologo
|
AR = lib -nologo
|
||||||
PURIFY =
|
PURIFY =
|
||||||
AUTOCONF = autoconf
|
AUTOCONF = autoconf
|
||||||
|
IFCHANGE = $(COMSPEC) /C $(srcdir:/=\)\win32\ifchange.bat
|
||||||
RM = $(COMSPEC) /C $(srcdir:/=\)\win32\rm.bat
|
RM = $(COMSPEC) /C $(srcdir:/=\)\win32\rm.bat
|
||||||
|
|
||||||
!if !defined(PROCESSOR_ARCHITECTURE)
|
!if !defined(PROCESSOR_ARCHITECTURE)
|
||||||
|
@ -261,6 +262,9 @@ rubyw: $(WPROGRAM)
|
||||||
|
|
||||||
!include $(srcdir)/common.mk
|
!include $(srcdir)/common.mk
|
||||||
|
|
||||||
|
revision.h: revision.h.tmp
|
||||||
|
@$(IFCHANGE) "$(srcdir)/$@" "revision.h.tmp"
|
||||||
|
|
||||||
$(MKFILES): $(srcdir)/win32/Makefile.sub $(win_srcdir)/Makefile.sub $(win_srcdir)/configure.bat $(win_srcdir)/setup.mak
|
$(MKFILES): $(srcdir)/win32/Makefile.sub $(win_srcdir)/Makefile.sub $(win_srcdir)/configure.bat $(win_srcdir)/setup.mak
|
||||||
$(COMSPEC) /C $(win_srcdir:/=\)\configure.bat $(configure_args)
|
$(COMSPEC) /C $(win_srcdir:/=\)\configure.bat $(configure_args)
|
||||||
@echo $(MKFILES) should be updated, re-run $(MAKE).
|
@echo $(MKFILES) should be updated, re-run $(MAKE).
|
||||||
|
@ -280,7 +284,7 @@ BANG = !
|
||||||
|
|
||||||
$(CONFIG_H): $(MKFILES) $(srcdir)/win32/Makefile.sub $(win_srcdir)/Makefile.sub
|
$(CONFIG_H): $(MKFILES) $(srcdir)/win32/Makefile.sub $(win_srcdir)/Makefile.sub
|
||||||
@echo Creating config.h
|
@echo Creating config.h
|
||||||
@$(COMSPEC) /C $(srcdir:/=\)\win32\ifchange.bat config.h <<
|
@$(IFCHANGE) config.h <<
|
||||||
#if _MSC_VER != $(MSC_VER)
|
#if _MSC_VER != $(MSC_VER)
|
||||||
#error MSC version unmatch: _MSC_VER: $(MSC_VER) is expected.
|
#error MSC version unmatch: _MSC_VER: $(MSC_VER) is expected.
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -1,13 +1,23 @@
|
||||||
@echo off
|
@echo off
|
||||||
:: usage: ifchange target temporary
|
:: usage: ifchange target temporary
|
||||||
|
|
||||||
|
if "%1" == "" goto :end
|
||||||
|
|
||||||
|
set dest=%1
|
||||||
|
set src=%2
|
||||||
|
set dest=%dest:/=\%
|
||||||
|
set src=%src:/=\%
|
||||||
|
if not "%dest%" == "" if not "%dest%" == "%%dest:/=\%%" goto :nt
|
||||||
|
|
||||||
|
if not exist %2 goto :end
|
||||||
|
|
||||||
:: check if fc.exe works.
|
:: check if fc.exe works.
|
||||||
echo foo > conftest1.tmp
|
echo foo > conftst1.tmp
|
||||||
echo bar > conftest2.tmp
|
echo bar > conftst2.tmp
|
||||||
fc.exe conftest1.tmp conftest2.tmp > nul
|
fc.exe conftst1.tmp conftst2.tmp > nul
|
||||||
if not errorlevel 1 goto :brokenfc
|
if not errorlevel 1 goto :brokenfc
|
||||||
del conftest1.tmp > nul
|
del conftst1.tmp > nul
|
||||||
del conftest2.tmp > nul
|
del conftst2.tmp > nul
|
||||||
|
|
||||||
:: target does not exist or new file differs from it.
|
:: target does not exist or new file differs from it.
|
||||||
if not exist %1 goto :update
|
if not exist %1 goto :update
|
||||||
|
@ -27,6 +37,23 @@ echo assuming %1 should be changed.
|
||||||
|
|
||||||
:update
|
:update
|
||||||
echo %1 updated.
|
echo %1 updated.
|
||||||
if exist %1 del %1
|
:: if exist %1 del %1
|
||||||
copy %2 %1 > nul
|
dir /b %2
|
||||||
|
copy %2 %1
|
||||||
|
del %2
|
||||||
|
goto :end
|
||||||
|
|
||||||
|
:nt
|
||||||
|
if not exist %src% goto :end
|
||||||
|
if exist %dest% (
|
||||||
|
fc.exe %dest% %src% > nul && (
|
||||||
|
echo %dest% unchanged.
|
||||||
|
del %src%
|
||||||
|
goto :end
|
||||||
|
)
|
||||||
|
)
|
||||||
|
echo %dest% updated.
|
||||||
|
copy %src% %dest% > nul
|
||||||
|
del %src%
|
||||||
|
|
||||||
:end
|
:end
|
||||||
|
|
|
@ -117,6 +117,7 @@ int main(int argc, char **argv)
|
||||||
-version-: nul
|
-version-: nul
|
||||||
@$(APPEND)
|
@$(APPEND)
|
||||||
@$(CPP) -I$(srcdir) <<"Creating $(MAKEFILE)" | find "=" >>$(MAKEFILE)
|
@$(CPP) -I$(srcdir) <<"Creating $(MAKEFILE)" | find "=" >>$(MAKEFILE)
|
||||||
|
#define RUBY_REVISION 0
|
||||||
#include "version.h"
|
#include "version.h"
|
||||||
MAJOR = RUBY_VERSION_MAJOR
|
MAJOR = RUBY_VERSION_MAJOR
|
||||||
MINOR = RUBY_VERSION_MINOR
|
MINOR = RUBY_VERSION_MINOR
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue