summaryrefslogtreecommitdiff
path: root/lang/modula-3/scripts/configure
blob: 17f2dfdd8d5666c7b14ed3fee64c642d95e06344 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#! /bin/sh
#
# $Id: configure,v 1.3 1998/06/02 23:22:23 jdp Exp $

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