aboutsummaryrefslogtreecommitdiffstats
path: root/make_macrosfiles.sh.in
diff options
context:
space:
mode:
authorOlivier Thauvin <nanardon@mandriva.org>2005-05-01 00:41:33 +0000
committerOlivier Thauvin <nanardon@mandriva.org>2005-05-01 00:41:33 +0000
commita56aeeec184a7570eeeaa6a85b3760eddeb04397 (patch)
treed636e51d2801e19b75f8b45cb175026e41ca27ab /make_macrosfiles.sh.in
parentc1e98e63ced7c7cf0a96eb7344dce8c70a2374a3 (diff)
downloadrpm-setup-a56aeeec184a7570eeeaa6a85b3760eddeb04397.tar
rpm-setup-a56aeeec184a7570eeeaa6a85b3760eddeb04397.tar.gz
rpm-setup-a56aeeec184a7570eeeaa6a85b3760eddeb04397.tar.bz2
rpm-setup-a56aeeec184a7570eeeaa6a85b3760eddeb04397.tar.xz
rpm-setup-a56aeeec184a7570eeeaa6a85b3760eddeb04397.zip
- add rpmpopt
- fix optflags in macros
Diffstat (limited to 'make_macrosfiles.sh.in')
-rw-r--r--make_macrosfiles.sh.in6
1 files changed, 3 insertions, 3 deletions
diff --git a/make_macrosfiles.sh.in b/make_macrosfiles.sh.in
index cb8978e..12bf942 100644
--- a/make_macrosfiles.sh.in
+++ b/make_macrosfiles.sh.in
@@ -54,11 +54,11 @@ esac
if [ -n "$MULTILIBNO" ]; then
MULTILIBSED='-e /^@MULTILIB/d -e s,@MULTILIBNO@,'$MULTILIBNO,
else
- MULTILIBSED='-e /^@MULTILIBSTART@/,/^@MULTILIBEND@/d'
+ MULTILIBSED='/^@MULTILIBSTART@/,/^@MULTILIBEND@/d'
fi
if [ -n "$OPTFLAGS" ]; then
- OPTFLAGSSED='-e s,@RPMOPTFLAGS@,$OPTFLAGS,g'
+ OPTFLAGSSED="s/@RPMOPTFLAGS@/${OPTFLAGS}/g"
else
OPTFLAGSSED='-e s,^%optflags.*,,'
fi
@@ -66,5 +66,5 @@ fi
cat "$MINPUT" | sed \
-e "s,@RPMARCH@,$CANONARCH,g" \
-e "s,@LIB@,$LIB,g" \
- $OPTFLAGSSED \
+ -e "$OPTFLAGSSED" \
$MULTILIBSED