mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
configure.in: extract date at build time
* Makefile.in, configure.in (Makefile): extract RUBY_RELEASE_DATE from version.h at each build time. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46454 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
21c400c44b
commit
08580181ac
2 changed files with 2 additions and 4 deletions
|
@ -90,7 +90,6 @@ RUBY_BASE_NAME=@RUBY_BASE_NAME@
|
|||
RUBY_PROGRAM_VERSION=@RUBY_PROGRAM_VERSION@
|
||||
RUBY_INSTALL_NAME=@RUBY_INSTALL_NAME@
|
||||
RUBY_SO_NAME=@RUBY_SO_NAME@
|
||||
RUBY_RELEASE_DATE=@RUBY_RELEASE_DATE@
|
||||
EXEEXT = @EXEEXT@
|
||||
LIBEXT = @LIBEXT@
|
||||
PROGRAM=$(RUBY_INSTALL_NAME)$(EXEEXT)
|
||||
|
@ -255,7 +254,7 @@ install-cross: $(arch)-fake.rb $(RBCONFIG) rbconfig.rb $(arch_hdrdir)/ruby/confi
|
|||
|
||||
Makefile: $(srcdir)/Makefile.in $(srcdir)/enc/Makefile.in
|
||||
|
||||
$(MKFILES): config.status
|
||||
$(MKFILES): config.status $(srcdir)/version.h
|
||||
@[ -f $@ ] && mv $@ $@.old
|
||||
MAKE=$(MAKE) $(SHELL) ./config.status $@
|
||||
@cmp $@ $@.old > /dev/null 2>&1 && echo $@ unchanged && exit 0; \
|
||||
|
|
|
@ -197,8 +197,6 @@ AC_SUBST(MINOR)
|
|||
AC_SUBST(TEENY)
|
||||
RUBY_PROGRAM_VERSION=`sed -n 's/^#define RUBY_VERSION "\(.*\)"/\1/p' $srcdir/version.h`
|
||||
AC_SUBST(RUBY_PROGRAM_VERSION)
|
||||
RUBY_RELEASE_DATE=`sed -n 's/^#define RUBY_RELEASE_DATE "\(.*\)"/\1/p' $srcdir/version.h`
|
||||
AC_SUBST(RUBY_RELEASE_DATE)
|
||||
RUBY_PATCHLEVEL=`sed -n 's/^#define RUBY_PATCHLEVEL //p' $srcdir/version.h`
|
||||
AC_DEFINE(CANONICALIZATION_FOR_MATHN)
|
||||
dnl checks for alternative programs
|
||||
|
@ -4154,6 +4152,7 @@ AC_CONFIG_FILES(Makefile, [
|
|||
["git svn"], [VCSUP='$(VCS) rebase $(GITSVNREBASEOPTIONS)'],
|
||||
[git], [VCSUP='$(VCS) pull $(GITPULLOPTIONS)'],
|
||||
[VCSUP='$(VCS)'])
|
||||
sed -n 's/^@%:@define \(RUBY_RELEASE_DATE\) "\(.*\)"/\1 = \2/p' "$srcdir/version.h"
|
||||
sed '/^MISSING/s/\$U\././g;/^VCS *=/s#@VCS@#'"$VCS"'#;/^VCSUP *=/s#@VCSUP@#'"$VCSUP"'#' Makefile
|
||||
echo; test x"$EXEEXT" = x || echo 'miniruby: miniruby$(EXEEXT)'
|
||||
if test "$gnumake" != yes; then
|
||||
|
|
Loading…
Reference in a new issue