diff options
author | jbj <devnull@localhost> | 2000-06-01 05:36:14 +0000 |
---|---|---|
committer | jbj <devnull@localhost> | 2000-06-01 05:36:14 +0000 |
commit | ef6736bd90a6d314aa789d4542175537e7ff2366 (patch) | |
tree | eb0e1dac19ad07b7b347b4c777d855885a5576b9 /installplatform | |
parent | dcbbd4721720c4cd0514326d572c359b2976a497 (diff) | |
download | rpm-ef6736bd90a6d314aa789d4542175537e7ff2366.tar.gz |
Move noLang to rpmlib.
Add defaultdocdir to per-platform macros.
CVS patchset: 3788
CVS date: 2000/06/01 05:36:14
Diffstat (limited to 'installplatform')
-rwxr-xr-x | installplatform | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/installplatform b/installplatform index c5edf241f..1f95633fb 100755 --- a/installplatform +++ b/installplatform @@ -7,6 +7,12 @@ RPMRC="${1:-rpmrc}" MACROS="${2:-macros}" PLATFORM="${3:-platform}" +if grep /share/ $PLATFORM > /dev/null 2>&1 ; then + DEFAULTDOCDIR='%{_prefix}/share/doc' +else + DEFAULTDOCDIR='%{_prefix}/doc' +fi + TEMPRC="/tmp/rpmrc.$$" cat << E_O_F > $TEMPRC include: $RPMRC @@ -53,6 +59,7 @@ for SUBST in $SUBSTS ; do -e "s,@RPMRC_ARCH@,$ARCH," \ -e "s,@LIB@,$LIB," \ -e "s,@ARCH_INSTALL_POST@,$ARCH_INSTALL_POST," \ + -e "s,@DEFAULTDOCDIR@,$DEFAULTDOCDIR," \ -e 's,\${,%{_,' \ > ${PPD}/macros |