diff options
author | cvs2git <rtems-devel@rtems.org> | 2007-03-05 20:53:28 +0000 |
---|---|---|
committer | cvs2git <rtems-devel@rtems.org> | 2007-03-05 20:53:28 +0000 |
commit | 5728225e7709ff3195b00215ecff50359c71070b (patch) | |
tree | c112a1ceeaf2cd3b28946e6e4ff20494da8d2fcf /contrib/crossrpms/specstrip | |
parent | 2007-03-05 Joel Sherrill <joel@OARcorp.com> (diff) | |
download | rtems-4.7.0.tar.bz2 |
This commit was manufactured by cvs2svn to create tag 'rtems-4-7-0'.4.7.0
Sprout from rtems-4-7-branch 2007-03-05 20:53:27 UTC Joel Sherrill <joel.sherrill@OARcorp.com> '2007-03-05 Joel Sherrill <joel@OARcorp.com>'
Delete:
Makefile.maint
contrib/apt-conf/.cvsignore
contrib/apt-conf/COPYING
contrib/apt-conf/ChangeLog
contrib/apt-conf/INSTALL
contrib/apt-conf/Makefile.am
contrib/apt-conf/README
contrib/apt-conf/configure.ac
contrib/apt-conf/gpg/gpg-pubkey-eac29b6f-3fe1f458
contrib/apt-conf/rtems-apt-conf.spec.in
contrib/apt-conf/sources.list.d/rtems-4.6.list
contrib/apt-conf/sources.list.d/rtems-4.7.list
contrib/apt-conf/vendors.list.d/rtems.list
contrib/crossrpms/.cvsignore
contrib/crossrpms/AUTHORS
contrib/crossrpms/COPYING
contrib/crossrpms/ChangeLog
contrib/crossrpms/Makefile.am
contrib/crossrpms/NEWS
contrib/crossrpms/README
contrib/crossrpms/TODO
contrib/crossrpms/acinclude.m4
contrib/crossrpms/autotools/.cvsignore
contrib/crossrpms/autotools/Makefile.am
contrib/crossrpms/autotools/autoconf.add
contrib/crossrpms/autotools/autoconf.am
contrib/crossrpms/autotools/automake.add
contrib/crossrpms/autotools/automake.am
contrib/crossrpms/autotools/target-autoconf.add
contrib/crossrpms/autotools/target-automake.add
contrib/crossrpms/binutils/.cvsignore
contrib/crossrpms/binutils/base-binutils.add
contrib/crossrpms/binutils/binutils.add
contrib/crossrpms/binutils/build.add
contrib/crossrpms/binutils/install.add
contrib/crossrpms/binutils/prep.add
contrib/crossrpms/binutils/rpm-install.add
contrib/crossrpms/binutils/target-binutils.add
contrib/crossrpms/bootstrap
contrib/crossrpms/common/clean.add
contrib/crossrpms/common/common.add
contrib/crossrpms/configure.ac
contrib/crossrpms/gcc/base-g77.add
contrib/crossrpms/gcc/base-gcc.add
contrib/crossrpms/gcc/base-gcj.add
contrib/crossrpms/gcc/base-gfortran.add
contrib/crossrpms/gcc/base-gnat.add
contrib/crossrpms/gcc/base-newlib.add
contrib/crossrpms/gcc/build.add
contrib/crossrpms/gcc/gccnewlib.add
contrib/crossrpms/gcc/install.add
contrib/crossrpms/gcc/prep.add
contrib/crossrpms/gcc/rpm-install.add
contrib/crossrpms/gcc/target-c++.add
contrib/crossrpms/gcc/target-g77.add
contrib/crossrpms/gcc/target-gcc.add
contrib/crossrpms/gcc/target-gcj.add
contrib/crossrpms/gcc/target-gfortran.add
contrib/crossrpms/gcc/target-gnat.add
contrib/crossrpms/gcc/target-newlib.add
contrib/crossrpms/gcc/target-objc.add
contrib/crossrpms/gdb/base-gdb.add
contrib/crossrpms/gdb/build.add
contrib/crossrpms/gdb/gdb.add
contrib/crossrpms/gdb/install.add
contrib/crossrpms/gdb/prep.add
contrib/crossrpms/gdb/rpm-install.add
contrib/crossrpms/gdb/target-gdb.add
contrib/crossrpms/mkspec.am
contrib/crossrpms/patches/binutils-2.16.1-rtems-20050708.diff
contrib/crossrpms/patches/binutils-2.17-rtems4.7-20061021.diff
contrib/crossrpms/patches/gcc-core-4.0.3-rtems-20060822.diff
contrib/crossrpms/patches/gcc-core-4.1.1-rtems-20060720.diff
contrib/crossrpms/patches/gcc-core-4.1.1-rtems-20060908.diff
contrib/crossrpms/patches/gcc-core-4.1.1-rtems-20060909.diff
contrib/crossrpms/patches/gcc-core-4.1.1-rtems4.7-20070102.diff
contrib/crossrpms/patches/gcc-core-4.1.2-rtems4.7-20070216.diff
contrib/crossrpms/patches/gdb-6.4-rtems-20060311.diff
contrib/crossrpms/patches/gdb-6.4-rtems-20060712.diff
contrib/crossrpms/patches/gdb-6.5-rtems-20060713.diff
contrib/crossrpms/patches/gdb-6.6-rtems4.7-20070218.diff
contrib/crossrpms/patches/gdb-6.6-rtems4.7-20070222.diff
contrib/crossrpms/patches/newlib-1.14.0-rtems4.7-20061019.diff
contrib/crossrpms/patches/newlib-1.15.0-rtems4.7-20070208.diff
contrib/crossrpms/rtems4.7/.cvsignore
contrib/crossrpms/rtems4.7/Makefile.am
contrib/crossrpms/rtems4.7/arm/.cvsignore
contrib/crossrpms/rtems4.7/arm/Makefile.am
contrib/crossrpms/rtems4.7/arm/binutils-sources.add
contrib/crossrpms/rtems4.7/arm/gcc-sources.add
contrib/crossrpms/rtems4.7/arm/gdb-sources.add
contrib/crossrpms/rtems4.7/avr/.cvsignore
contrib/crossrpms/rtems4.7/avr/Makefile.am
contrib/crossrpms/rtems4.7/avr/binutils-sources.add
contrib/crossrpms/rtems4.7/avr/gcc-sources.add
contrib/crossrpms/rtems4.7/avr/gdb-sources.add
contrib/crossrpms/rtems4.7/binutils.am
contrib/crossrpms/rtems4.7/gcc-prep.add
contrib/crossrpms/rtems4.7/gcc.am
contrib/crossrpms/rtems4.7/gdb.am
contrib/crossrpms/rtems4.7/h8300/.cvsignore
contrib/crossrpms/rtems4.7/h8300/Makefile.am
contrib/crossrpms/rtems4.7/h8300/binutils-sources.add
contrib/crossrpms/rtems4.7/h8300/gcc-sources.add
contrib/crossrpms/rtems4.7/h8300/gdb-sources.add
contrib/crossrpms/rtems4.7/i386/.cvsignore
contrib/crossrpms/rtems4.7/i386/Makefile.am
contrib/crossrpms/rtems4.7/i386/binutils-sources.add
contrib/crossrpms/rtems4.7/i386/gcc-sources.add
contrib/crossrpms/rtems4.7/i386/gdb-sources.add
contrib/crossrpms/rtems4.7/m68k/.cvsignore
contrib/crossrpms/rtems4.7/m68k/Makefile.am
contrib/crossrpms/rtems4.7/m68k/binutils-sources.add
contrib/crossrpms/rtems4.7/m68k/gcc-sources.add
contrib/crossrpms/rtems4.7/m68k/gdb-sources.add
contrib/crossrpms/rtems4.7/mips/.cvsignore
contrib/crossrpms/rtems4.7/mips/Makefile.am
contrib/crossrpms/rtems4.7/mips/binutils-sources.add
contrib/crossrpms/rtems4.7/mips/gcc-sources.add
contrib/crossrpms/rtems4.7/mips/gdb-sources.add
contrib/crossrpms/rtems4.7/mipstx39/.cvsignore
contrib/crossrpms/rtems4.7/mipstx39/Makefile.am
contrib/crossrpms/rtems4.7/mipstx39/gdb-sources.add
contrib/crossrpms/rtems4.7/powerpc/.cvsignore
contrib/crossrpms/rtems4.7/powerpc/Makefile.am
contrib/crossrpms/rtems4.7/powerpc/binutils-sources.add
contrib/crossrpms/rtems4.7/powerpc/gcc-sources.add
contrib/crossrpms/rtems4.7/powerpc/gdb-sources.add
contrib/crossrpms/rtems4.7/sh/.cvsignore
contrib/crossrpms/rtems4.7/sh/Makefile.am
contrib/crossrpms/rtems4.7/sh/binutils-sources.add
contrib/crossrpms/rtems4.7/sh/gcc-sources.add
contrib/crossrpms/rtems4.7/sh/gdb-sources.add
contrib/crossrpms/rtems4.7/sparc/.cvsignore
contrib/crossrpms/rtems4.7/sparc/Makefile.am
contrib/crossrpms/rtems4.7/sparc/binutils-sources.add
contrib/crossrpms/rtems4.7/sparc/gcc-sources.add
contrib/crossrpms/rtems4.7/sparc/gdb-sources.add
contrib/crossrpms/specstrip
contrib/mingw/.cvsignore
contrib/mingw/AUTHORS
contrib/mingw/COPYING
contrib/mingw/ChangeLog
contrib/mingw/README
contrib/mingw/build-exes.sh
contrib/mingw/build-rpms.sh
contrib/mingw/build.sh
contrib/mingw/rtems-license.rtf
contrib/mingw/rtems-tools.nsi
contrib/mingw/rtems.ini
contrib/mingw/rtems_logo.bmp
contrib/mingw/targets
contrib/repo-conf/.cvsignore
contrib/repo-conf/AUTHORS
contrib/repo-conf/COPYING
contrib/repo-conf/ChangeLog
contrib/repo-conf/INSTALL
contrib/repo-conf/Makefile.am
contrib/repo-conf/NEWS
contrib/repo-conf/README
contrib/repo-conf/aclocal/version.m4
contrib/repo-conf/apt/sources.list.d/.cvsignore
contrib/repo-conf/apt/sources.list.d/rtems.list.in
contrib/repo-conf/apt/vendors.list.d/rtems.list
contrib/repo-conf/configure.ac
contrib/repo-conf/gpg/gpg-pubkey-69ce4a83-44cc2b30
contrib/repo-conf/gpg/gpg-pubkey-eac29b6f-3fe1f458
contrib/repo-conf/rtems-repo-conf.spec.in
contrib/repo-conf/yum.repos.d/.cvsignore
contrib/repo-conf/yum.repos.d/rtems.repo.in
contrib/rtemsrpms/.cvsignore
contrib/rtemsrpms/AUTHORS
contrib/rtemsrpms/COPYING
contrib/rtemsrpms/ChangeLog
contrib/rtemsrpms/INSTALL
contrib/rtemsrpms/Makefile.am
contrib/rtemsrpms/NEWS
contrib/rtemsrpms/README
contrib/rtemsrpms/bootstrap
contrib/rtemsrpms/configure.ac
contrib/rtemsrpms/rtems.spec.in
testsuites/samples/base_sp/.cvsignore
Diffstat (limited to 'contrib/crossrpms/specstrip')
-rwxr-xr-x | contrib/crossrpms/specstrip | 184 |
1 files changed, 0 insertions, 184 deletions
diff --git a/contrib/crossrpms/specstrip b/contrib/crossrpms/specstrip deleted file mode 100755 index 8777d2acd7..0000000000 --- a/contrib/crossrpms/specstrip +++ /dev/null @@ -1,184 +0,0 @@ -#!/usr/bin/perl -w - - -# Helper script to strip unused parts out of crossrpms's rpm.specs -# -# Usage: specstrip < infile > outfile - - -# Copyright (C) 2005,2006 Ralf Corsépius, Ulm, Germany, -# -# This program is free software; you can redistribute it and/or -# modify it under the terms of the GNU General Public License -# as published by the Free Software Foundation; either version 2 -# of the License, or (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# For a copy of the GNU General Public License, visit -# http://www.gnu.org or write to the Free Software Foundation, Inc., -# 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. - -# $Id$ - -use Getopt::Long; - -use strict; - -my $newlib = 0; -my $infos = 0; -my $prefix = '/usr'; - -my $verbose = 0; -my @languages = (); -my %options = (); - -GetOptions( - \%options, - 'prefix=s' => \$prefix, - 'enable-infos' => sub { $options{infos} = 1 }, - 'disable-infos' => sub { $options{infos} = 0 }, - 'newlib!', - 'languages=s' => \@languages, - 'verbose+' => \$verbose -) or die( "failed to GetOptions" ); - -if ( !defined($options{infos}) ) -{ # User did not override, use defaults - if ( $prefix =~ m/^\/usr$/ ) { - $infos = 0; - } elsif ( $prefix =~ m/^\/usr\/local$/ ) { - $infos = 0; - } else { - $infos = 1; - } -} else { - $infos = int($options{infos}); -} - -if ( defined($options{newlib}) ) -{ - $newlib = $options{newlib}; -} else { - $newlib = 0; -} - -if ( $verbose ) { - print STDERR "INFOS : $infos\n"; - print STDERR "PREFIX : $prefix\n"; -} - -my %langs; - -foreach ( split(/,/,join(',',@languages)) ){ - $langs{$_} = 1; -} - -my @condstack ; -my @actionstack ; - -push @condstack,'<>'; - -my @npatterns = ( - "(\"%\{_prefix\}\" (!=|==) \"/usr\")", - - "(%build_cxx)", - "(%build_gnat)", - "(%build_objc)", - "(%build_gcj)", - "(%build_libgcj)", - "(%build_f95)", - "(%build_g77)", - "(%build_newlib)", - "(%build_infos)" -); - -my @ppatterns = ( -); - -push @ppatterns, "(\"%\{_prefix\}\" " . (("$prefix" eq '/usr') ? '!=' : '==' ) . " \"/usr\")"; - -push @ppatterns, "(%build_gnat " . ( ($langs{gnat}) ? "==" : "!=" ) . " 0)"; -push @ppatterns, "(%build_cxx " . ( ($langs{cxx}) ? "==" : "!=" ) . " 0)"; -push @ppatterns, "(%build_objc " . ( ($langs{objc}) ? "==" : "!=" ) . " 0)"; -push @ppatterns, "(%build_gcj " . ( ($langs{gcj}) ? "==" : "!=" ) . " 0)"; -push @ppatterns, "(%build_libgcj " . ( ($langs{libgcj}) ? "==" : "!=" ) . " 0)"; -push @ppatterns, "(%build_f95 " . ( ($langs{f95}) ? "==" : "!=" ) . " 0)"; -push @ppatterns, "(%build_g77 " . ( ($langs{g77}) ? "==" : "!=" ) . " 0)"; - -push @ppatterns, "(%build_newlib " . ( ($newlib) ? "==" : "!=" ) . " 0)"; -push @ppatterns, "(%build_infos " . ( ($infos) ? "==" : "!=" ) . " 0)"; - -my $npat = join('|',@npatterns); -my $ppat = join('|',@ppatterns); - -if ( $verbose > 1 ) { - print STDERR "PPAT: ", $ppat, "\n"; - print STDERR "NPAT: ", $npat, "\n"; -} - -my @buffer0 = <> ; - -my $buffer1 = join( '', @buffer0 ); - -foreach (split /\n/, $buffer1) -{ -# print STDERR ">$_<\n"; -} - -my @buffer2 ; -foreach (split /\n/, $buffer1) -{ - if ( /^%if(os|)\s+(.*)$/ ) - { - push @condstack,"<$2>"; - if ( $condstack[$#condstack] =~ m/$npat/ ) { - # transform unary conditionals into binary conditionals - if ( $condstack[$#condstack] =~/.*<(%[a-zA-Z_0-9]+)>.*/ ) { - $condstack[$#condstack] = "<$1 != 0>"; - } - } else { - push @buffer2, { state => join('',@condstack), line => "$_" }; - } - } elsif ( /^%else.*$/ ) - { - my %ops = ( - "!=" => "==", - "==" => "!=" - ); - - if ( $condstack[$#condstack] =~/.*<(.*) (!=|==) (.*)>.*/ ) { - $condstack[$#condstack] = "<$1 " . $ops{$2} . " $3>"; - if ( $condstack[$#condstack] =~ m/$npat/ ) { - } else { - push @buffer2, { state => join('',@condstack), line => "$_" }; - } - } else { - push @buffer2, { state => join('',@condstack), line => "$_" }; - } - } elsif ( /^%endif.*$/ ) - { - if ( $condstack[$#condstack] =~ m/$npat/ ) { - } else { - push @buffer2, { state => join('',@condstack), line => "$_" }; - } - pop @condstack; - } else { - push @buffer2, { state => join('',@condstack), line => "$_" }; - } -} - -my @buffer3; -foreach my $i ( @buffer2 ) -{ -# print STDERR $i->{state}, $i->{line}, "\n"; - if ( $i->{state} =~ m/($ppat)/ ) { - } else { - push @buffer3, $i->{line}, "\n" - } -} - -print STDOUT @buffer3; |