diff options
author | jbj <devnull@localhost> | 2000-02-25 16:29:44 +0000 |
---|---|---|
committer | jbj <devnull@localhost> | 2000-02-25 16:29:44 +0000 |
commit | 601d666d4825619b9ecd12b839efbe6b0ebe4516 (patch) | |
tree | 949fbafa403998c2bf5065a9081828dc8adaab4f /installplatform | |
parent | 18edb9da1a3b658208492fb9934c1a82a639014b (diff) | |
download | rpm-601d666d4825619b9ecd12b839efbe6b0ebe4516.tar.gz rpm-601d666d4825619b9ecd12b839efbe6b0ebe4516.tar.bz2 rpm-601d666d4825619b9ecd12b839efbe6b0ebe4516.zip |
- fix: filter excluded paths before adding install prefixes (#8709).
- add i18n lookaside to PO catalogue(s) for i18n strings.
- try for /etc/rpm/macros.specspo so that specspo autoconfigures rpm.
- per-platform configuration factored into /usr/lib/rpm subdir.
CVS patchset: 3588
CVS date: 2000/02/25 16:29:44
Diffstat (limited to 'installplatform')
-rwxr-xr-x | installplatform | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/installplatform b/installplatform new file mode 100755 index 000000000..6de6bc508 --- /dev/null +++ b/installplatform @@ -0,0 +1,33 @@ +#!/bin/sh + +DESTDIR="${DESTDIR:-/}" +pkglibdir="${pkglibdir:-/usr/lib/rpm}" + +RPMRC="${1:-rpmrc}" +MACROS="${2:-macros}" +PLATFORM="${3:-platform}" + +TEMPRC="/tmp/rpmrc.$$" +cat << E_O_F > $TEMPRC +include: $RPMRC +macrofiles: $MACROS +E_O_F + +RPM="rpm --rcfile $TEMPRC" + +ARCH="$($RPM --eval '%{_arch}')" +VENDOR="$($RPM --eval '%{_vendor}')" +OS="$($RPM --eval '%{_os}')" + +PPD="${DESTDIR}/${pkglibdir}/${ARCH}-${VENDOR}-${OS}" + +[ -d $PPD ] || mkdir $PPD + +RPMRC_OPTFLAGS="$($RPM --eval '%{optflags}')" +RPMRC_OPTFLAGS="$(echo $RPMRC_OPTFLAGS | sed -e 's, ,\ ,g')" + +cat $PLATFORM | + sed -e s,\\\$\{,\%\{_, \ + -e "s,@RPMRC_OPTFLAGS@,$RPMRC_OPTFLAGS," > ${PPD}/macros + +rm $TEMPRC |