diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2008-01-29 15:58:29 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2008-01-29 15:58:29 +0000 |
commit | 6a3b2c36a77bbdc0f521e745ba227d8ba9855d08 (patch) | |
tree | d2cc25ee2a0c26e4649bc1f5f4d500853fa7f1eb /make_macrosfiles.sh.in | |
parent | 15aa319480cbdc269c6293cc5a9ccb85c7238238 (diff) | |
download | rpm-setup-6a3b2c36a77bbdc0f521e745ba227d8ba9855d08.tar rpm-setup-6a3b2c36a77bbdc0f521e745ba227d8ba9855d08.tar.gz rpm-setup-6a3b2c36a77bbdc0f521e745ba227d8ba9855d08.tar.bz2 rpm-setup-6a3b2c36a77bbdc0f521e745ba227d8ba9855d08.tar.xz rpm-setup-6a3b2c36a77bbdc0f521e745ba227d8ba9855d08.zip |
rename macrosfiles to arch_macrosfiles to make it more clear
Diffstat (limited to 'make_macrosfiles.sh.in')
-rw-r--r-- | make_macrosfiles.sh.in | 74 |
1 files changed, 0 insertions, 74 deletions
diff --git a/make_macrosfiles.sh.in b/make_macrosfiles.sh.in deleted file mode 100644 index 05be025..0000000 --- a/make_macrosfiles.sh.in +++ /dev/null @@ -1,74 +0,0 @@ -#!/bin/sh - -# $Id$ - -MINPUT="$1" -ARCH="$2" - -LIB=lib -OS=@RPMOS@ -OPTFLAGS=`perl -ane "m/^optflags:\s*${ARCH}\b\s*(.*)/ and print \\$1" < rpmrc` -MULTILIBNO= - -case $ARCH in - i*86|k6|athlon|pentium*) - MULTILIBNO=1 - CANONARCH=i386 - ;; - amd64|x86_64) - MULTILIBNO=2 - CANONARCH=x86_64 - LIB=lib64 - ;; - sparc|sparcv9) - MULTILIBNO=1 - CANONARCH=sparc - ;; - sparc64) - MULTILIBNO=2 - CANONARCH=sparc64 - LIB=lib64 - ;; - ppc|powerpc|ppc32) - MULTILIBNO=1 - CANONARCH=ppc - ;; - ppc64|powerpc64) - MULTILIBNO=2 - CANONARCH=ppc64 - LIB=lib64 - ;; - alpha) - CANONARCH=alpha - ;; - s390) - CANONARCH=s390-linux - MULTILIBNO=1 - ;; - s390x) - CANONARCH=s390x - LIB=lib64; - MULTILIBNO=2 ;; - *) - CANONARCH=$ARCH - LIB=lib - ;; -esac - -if [ -n "$MULTILIBNO" ]; then - MULTILIBSED='-e /^@MULTILIB/d -e s,@MULTILIBNO@,'$MULTILIBNO, -else - MULTILIBSED='-e /^@MULTILIBSTART@/,/^@MULTILIBEND@/d' -fi - -if [ -n "$OPTFLAGS" ]; then - OPTFLAGSSED="s/@RPMOPTFLAGS@/${OPTFLAGS}/g" -else - OPTFLAGSSED='s,^%optflags.*,,' -fi - -cat "$MINPUT" | sed \ - -e "s,@RPMARCH@,$CANONARCH,g" \ - -e "s,@LIB@,$LIB,g" \ - -e "$OPTFLAGSSED" \ - $MULTILIBSED |