2004-04-29 Ralf Corsepius <ralf_corsepius@rtems.org>

* gcc3newlib/gccnewlib.add: Another attempt to make *info.gz
	handling more robust.
This commit is contained in:
Ralf Corsepius
2004-04-29 15:20:24 +00:00
parent 43158ce31e
commit a99bf0a70d
2 changed files with 12 additions and 6 deletions

View File

@@ -1,3 +1,8 @@
2004-04-29 Ralf Corsepius <ralf_corsepius@rtems.org>
* gcc3newlib/gccnewlib.add: Another attempt to make *info.gz
handling more robust.
2004-04-26 Ralf Corsepius <ralf_corsepius@rtems.org>
* autotools/automake-rtems.spec.in: Upgrade to 1.8.4.

View File

@@ -15,6 +15,7 @@ Autoreqprov: on
Packager: corsepiu@faw.uni-ulm.de and joel@OARcorp.com
Version: gcc%{gcc_version}newlib%{newlib_version}
%if "%{gcc_version}" >= "3.2.2"
Source0: ftp://ftp.gnu.org/pub/gnu/gcc/gcc-%{gcc_version}/gcc-%{gcc_version}.tar.bz2
%else
@@ -320,12 +321,12 @@ This is gcc's and newlib C Library's sources with patches for RTEMS.
%endif
# gzip info files
gzip -9qf $RPM_BUILD_ROOT%{_infodir}/*.info 2>/dev/null
%if "%{gcc_version}" < "3.3" || "%{gcc_version}" >= "3.4"
# gcc-3.3 ships monolytic *.infos
gzip -9qf $RPM_BUILD_ROOT%{_infodir}/*.info-? 2>/dev/null
gzip -9qf $RPM_BUILD_ROOT%{_infodir}/*.info-?? 2>/dev/null
%endif
ls $RPM_BUILD_ROOT%{_infodir}/*.info \
$RPM_BUILD_ROOT%{_infodir}/*.info-? \
$RPM_BUILD_ROOT%{_infodir}/*.info-?? \
| while read a; do \
gzip -9qf $a 2>/dev/null; \
done
# gzip man pages
gzip -9qf $RPM_BUILD_ROOT%{_mandir}/man?/*.? 2>/dev/null