From 349fca594a40b1b45b95d60f7c7c95dfcae81b22 Mon Sep 17 00:00:00 2001 From: Olivier Thauvin Date: Mon, 25 Jun 2007 14:11:22 +0000 Subject: - rename genplatform to rpmgenplatform --- Makefile.am | 8 ++++---- genplatform.in | 27 --------------------------- rpmgenplatform.in | 27 +++++++++++++++++++++++++++ 3 files changed, 31 insertions(+), 31 deletions(-) delete mode 100644 genplatform.in create mode 100644 rpmgenplatform.in diff --git a/Makefile.am b/Makefile.am index 5535346..ff0413e 100644 --- a/Makefile.am +++ b/Makefile.am @@ -38,7 +38,7 @@ pkg_gscripts = \ pkg_scripts_in = $(pkg_gscripts:=.in) -BUILT_SOURCES = macros-perarch make_macrosfiles.sh genplatform +BUILT_SOURCES = macros-perarch make_macrosfiles.sh rpmgenplatform pkglibdir = @RPMVENDORDIR@ @@ -65,7 +65,7 @@ EXTRA_DIST = \ $(pkg_scripts) \ $(pkg_scripts_in) \ macros-perarch.in make_macrosfiles.sh.in \ - genplatform.in \ + rpmgenplatform.in \ rpm-spec-mode.el \ tests.sh tests/macros.sh @@ -86,8 +86,8 @@ edit = sed \ arch=`echo $@ | sed 's,\\.macros,,'`; \ sh ./make_macrosfiles.sh macros-perarch $$arch > $@ -platform: genplatform Makefile - perl genplatform $(CANONTARGETCPU) > $@ +platform: rpmgenplatform Makefile + perl rpmgenplatform $(CANONTARGETCPU) > $@ install-data-local: $(macrosfiles) $(pkg_gconfig) for i in $(RPMALLARCH); do \ diff --git a/genplatform.in b/genplatform.in deleted file mode 100644 index fc6bf82..0000000 --- a/genplatform.in +++ /dev/null @@ -1,27 +0,0 @@ -#!/usr/sbin/perl - -# $Id$ -use strict; -use warnings; - -my @ALLARCH=qw{ - noarch - @RPMALLARCH@ -}; - -my $anysuffix = '-.*-@RPMOS@-gnu'; -my $suffix = '-@RPMCANONVENDOR@-@RPMOS@-gnu'; -my $canonarch = $ARGV[0] || `uname -m`; -chomp($canonarch); - -foreach my $suf ($suffix, $anysuffix) { - my $found = 0; - my %done = (); - foreach my $arch (reverse @ALLARCH) { - $arch eq $canonarch and $found = 1; - $found or next; - $done{$arch} and next; - $done{$arch} = 1; - print "$arch$suf\n"; - } -} diff --git a/rpmgenplatform.in b/rpmgenplatform.in new file mode 100644 index 0000000..fc6bf82 --- /dev/null +++ b/rpmgenplatform.in @@ -0,0 +1,27 @@ +#!/usr/sbin/perl + +# $Id$ +use strict; +use warnings; + +my @ALLARCH=qw{ + noarch + @RPMALLARCH@ +}; + +my $anysuffix = '-.*-@RPMOS@-gnu'; +my $suffix = '-@RPMCANONVENDOR@-@RPMOS@-gnu'; +my $canonarch = $ARGV[0] || `uname -m`; +chomp($canonarch); + +foreach my $suf ($suffix, $anysuffix) { + my $found = 0; + my %done = (); + foreach my $arch (reverse @ALLARCH) { + $arch eq $canonarch and $found = 1; + $found or next; + $done{$arch} and next; + $done{$arch} = 1; + print "$arch$suf\n"; + } +} -- cgit v1.2.1