mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Extract RUBY_RELEASE_DATE
from also revision.h
This make variable is very useful for daily build.
This commit is contained in:
parent
85cc0ce5c8
commit
dc7d929e54
Notes:
git
2022-09-25 22:40:27 +09:00
Merged: https://github.com/ruby/ruby/pull/6433 Merged-By: nobu <nobu@ruby-lang.org>
2 changed files with 10 additions and 7 deletions
15
configure.ac
15
configure.ac
|
@ -4384,12 +4384,15 @@ AC_CONFIG_FILES(Makefile:template/Makefile.in, [
|
||||||
AS_CASE("$VCS",
|
AS_CASE("$VCS",
|
||||||
['$(GIT)'|git], [VCSUP='$(VCS) pull --rebase $(GITPULLOPTIONS)'],
|
['$(GIT)'|git], [VCSUP='$(VCS) pull --rebase $(GITPULLOPTIONS)'],
|
||||||
[VCSUP='$(VCS)'])
|
[VCSUP='$(VCS)'])
|
||||||
sed -n \
|
for f in "$srcdir/version.h" "$srcdir/revision.h"; do
|
||||||
-e '[/^@%:@define \(RUBY_RELEASE_[A-Z]*\) \([0-9][0-9]*\)/]{' \
|
test -f "$f" || continue
|
||||||
-e 's//\1 = \2/' \
|
sed -n \
|
||||||
-e '[s/ \([0-9]\)$/ 0\1/]' \
|
-e '[/^@%:@define \(RUBY_RELEASE_[A-Z]*\) \([0-9][0-9]*\)/]{' \
|
||||||
-e p \
|
-e 's//\1 = \2/' \
|
||||||
-e '}' "$srcdir/version.h"
|
-e '[s/ \([0-9]\)$/ 0\1/]' \
|
||||||
|
-e p \
|
||||||
|
-e '}' "$f"
|
||||||
|
done
|
||||||
sed '/^MISSING/s/\$U\././g;/^VCS *=/s#@VCS@#'"$VCS"'#;/^VCSUP *=/s#@VCSUP@#'"$VCSUP"'#' Makefile
|
sed '/^MISSING/s/\$U\././g;/^VCS *=/s#@VCS@#'"$VCS"'#;/^VCSUP *=/s#@VCSUP@#'"$VCSUP"'#' Makefile
|
||||||
echo; test x"$EXEEXT" = x || echo 'miniruby: miniruby$(EXEEXT)'
|
echo; test x"$EXEEXT" = x || echo 'miniruby: miniruby$(EXEEXT)'
|
||||||
AS_IF([test "$gnumake" != yes], [
|
AS_IF([test "$gnumake" != yes], [
|
||||||
|
|
|
@ -381,7 +381,7 @@ install-cross: $(arch)-fake.rb $(RBCONFIG) rbconfig.rb $(arch_hdrdir)/ruby/confi
|
||||||
|
|
||||||
Makefile: $(srcdir)/template/Makefile.in $(srcdir)/enc/Makefile.in
|
Makefile: $(srcdir)/template/Makefile.in $(srcdir)/enc/Makefile.in
|
||||||
|
|
||||||
$(MKFILES): config.status $(srcdir)/version.h $(ABI_VERSION_HDR)
|
$(MKFILES): config.status $(srcdir)/version.h $(srcdir)/revision.h $(ABI_VERSION_HDR)
|
||||||
@[ -f $@ ] && mv $@ $@.old
|
@[ -f $@ ] && mv $@ $@.old
|
||||||
MAKE=$(MAKE) $(SHELL) ./config.status $@
|
MAKE=$(MAKE) $(SHELL) ./config.status $@
|
||||||
@cmp $@ $@.old > /dev/null 2>&1 && echo $@ unchanged && exit 0; \
|
@cmp $@ $@.old > /dev/null 2>&1 && echo $@ unchanged && exit 0; \
|
||||||
|
|
Loading…
Reference in a new issue