1998-09-18 01:02:04 +00:00
|
|
|
#! /bin/sh
|
|
|
|
#
|
1999-08-30 12:01:11 +00:00
|
|
|
# $FreeBSD$
|
1998-09-18 01:02:04 +00:00
|
|
|
|
|
|
|
umask 022
|
|
|
|
|
|
|
|
plist_src=${PKGDIR}/${PLIST##*/}
|
|
|
|
|
|
|
|
# Generate a PLIST, duplicating certain lines with the major version
|
|
|
|
# number tacked on the end.
|
|
|
|
sed -e "/\.so\$/p" \
|
|
|
|
-e "s/\.so\$/&.${MAJOR}/" \
|
|
|
|
-e "/m3build\$/p" \
|
|
|
|
-e "s/m3build\$/&-${MAJOR}/" \
|
|
|
|
${plist_src} > ${PLIST}
|
|
|
|
|
|
|
|
# Also generate a "PLIST.real" file which includes the minor version
|
|
|
|
# numbers on shared library names if the object format is a.out.
|
|
|
|
if [ "${PORTOBJFORMAT}" = aout ]; then
|
|
|
|
sed -e "s/\.so\.${MAJOR}\$/&.0/" ${PLIST} > ${PLIST}.real
|
|
|
|
else
|
|
|
|
cp ${PLIST} ${PLIST}.real
|
|
|
|
fi
|