source: rtems/contrib/crossrpms/rtems4.8/gcc-prep.add @ 4acc7e2

4.104.114.84.95
Last change on this file since 4acc7e2 was 615b6c9, checked in by Ralf Corsepius <ralf.corsepius@…>, on Nov 9, 2006 at 2:28:50 PM

Introduce GCC_PKGVERS

  • Property mode set to 100644
File size: 499 bytes
RevLine 
[3096ba23]1%if "%{gcc_version}" < "4.1.0"
2  sed -e 's/\(version_string.* = \"[^\"]*\)/\1 (RTEMS gcc-%{gcc_version}\/newlib-%{newlib_version}-%release)/' \
[615b6c9]3  gcc-%{gcc_pkgvers}/gcc/version.c > gcc-%{gcc_pkgvers}/gcc/version.c~
[3096ba23]4%else
5  sed -e 's/^#define VERSUFFIX.*$/#define VERSUFFIX \" (RTEMS gcc-%{gcc_version}\/newlib-%{newlib_version}-%{release})\"/' \
[615b6c9]6    gcc-%{gcc_pkgvers}/gcc/version.c > gcc-%{gcc_pkgvers}/gcc/version.c~
[3096ba23]7%endif
[615b6c9]8  mv gcc-%{gcc_pkgvers}/gcc/version.c~ gcc-%{gcc_pkgvers}/gcc/version.c
[3096ba23]9
Note: See TracBrowser for help on using the repository browser.