summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorRalf Corsepius <ralf.corsepius@rtems.org>2004-04-29 15:20:24 +0000
committerRalf Corsepius <ralf.corsepius@rtems.org>2004-04-29 15:20:24 +0000
commita99bf0a70dcabc92133162c2bb52c17f16e59ae6 (patch)
tree7e3129bc6c39de98f3be25ee3ce41362988bcbc1 /scripts
parent2004-04-26 Ralf Corsepius <ralf_corsepius@rtems.org> (diff)
downloadrtems-a99bf0a70dcabc92133162c2bb52c17f16e59ae6.tar.bz2
2004-04-29 Ralf Corsepius <ralf_corsepius@rtems.org>
* gcc3newlib/gccnewlib.add: Another attempt to make *info.gz handling more robust.
Diffstat (limited to 'scripts')
-rw-r--r--scripts/ChangeLog5
-rw-r--r--scripts/gcc3newlib/gccnewlib.add13
2 files changed, 12 insertions, 6 deletions
diff --git a/scripts/ChangeLog b/scripts/ChangeLog
index 1090bf4417..2e54df56b1 100644
--- a/scripts/ChangeLog
+++ b/scripts/ChangeLog
@@ -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.
diff --git a/scripts/gcc3newlib/gccnewlib.add b/scripts/gcc3newlib/gccnewlib.add
index fcd17f063f..96bbcd38fd 100644
--- a/scripts/gcc3newlib/gccnewlib.add
+++ b/scripts/gcc3newlib/gccnewlib.add
@@ -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