diff options
author | Jakub Jelinek <jakub@redhat.com> | 2015-05-04 12:39:16 +0200 |
---|---|---|
committer | Jakub Jelinek <jakub@gcc.gnu.org> | 2015-05-04 12:39:16 +0200 |
commit | a6c014db508f18416e5863907db1b628acfe021b (patch) | |
tree | 595e1dfe44c62a9de775dd5ec1c9d93f64bedac1 /gcc | |
parent | 237c7252c1ee56ae66f3fe4faa1ff62a704ef977 (diff) | |
download | gcc-a6c014db508f18416e5863907db1b628acfe021b.zip gcc-a6c014db508f18416e5863907db1b628acfe021b.tar.gz gcc-a6c014db508f18416e5863907db1b628acfe021b.tar.bz2 |
Makefile.in (PATCHLEVEL_c): New variable.
* Makefile.in (PATCHLEVEL_c): New variable.
(DATESTAMP_s, REVISION_s): If PATCHLEVEL_c is not 0,
expand the same way as if DEVPHASE_c was non-empty.
From-SVN: r222762
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 6 | ||||
-rw-r--r-- | gcc/Makefile.in | 15 |
2 files changed, 17 insertions, 4 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index aceb1c3..c751ea7 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2015-05-04 Jakub Jelinek <jakub@redhat.com> + + * Makefile.in (PATCHLEVEL_c): New variable. + (DATESTAMP_s, REVISION_s): If PATCHLEVEL_c is not 0, + expand the same way as if DEVPHASE_c was non-empty. + 2015-05-04 Kai Tietz <ktietz@redhat.com> PR target/65559 diff --git a/gcc/Makefile.in b/gcc/Makefile.in index 20a34a1..652b3e71d 100644 --- a/gcc/Makefile.in +++ b/gcc/Makefile.in @@ -828,14 +828,20 @@ endif version := $(BASEVER_c) +PATCHLEVEL_c := \ + $(shell echo $(BASEVER_c) | sed -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\)$$/\1/') + + # For use in version.c - double quoted strings, with appropriate # surrounding punctuation and spaces, and with the datestamp and # development phase collapsed to the empty string in release mode -# (i.e. if DEVPHASE_c is empty). The space immediately after the -# comma in the $(if ...) constructs is significant - do not remove it. +# (i.e. if DEVPHASE_c is empty and PATCHLEVEL_c is 0). The space +# immediately after the comma in the $(if ...) constructs is +# significant - do not remove it. BASEVER_s := "\"$(BASEVER_c)\"" DEVPHASE_s := "\"$(if $(DEVPHASE_c), ($(DEVPHASE_c)))\"" -DATESTAMP_s := "\"$(if $(DEVPHASE_c), $(DATESTAMP_c))\"" +DATESTAMP_s := \ + "\"$(if $(DEVPHASE_c)$(filter-out 0,$(PATCHLEVEL_c)), $(DATESTAMP_c))\"" PKGVERSION_s:= "\"@PKGVERSION@\"" BUGURL_s := "\"@REPORT_BUGS_TO@\"" @@ -843,7 +849,8 @@ PKGVERSION := @PKGVERSION@ BUGURL_TEXI := @REPORT_BUGS_TEXI@ ifdef REVISION_c -REVISION_s := "\"$(if $(DEVPHASE_c), $(REVISION_c))\"" +REVISION_s := \ + "\"$(if $(DEVPHASE_c)$(filter-out 0,$(PATCHLEVEL_c)), $(REVISION_c))\"" else REVISION_s := "\"\"" endif |