source: rtems/contrib/crossrpms/rtems4.9/gcc-prep.add @ df16b8bf

4.104.114.9
Last change on this file since df16b8bf was ed73806b, checked in by Ralf Corsepius <ralf.corsepius@…>, on Sep 28, 2007 at 7:24:56 AM

copy from rtems-4.8 to rtems-4.9.

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