summaryrefslogtreecommitdiff
path: root/lang/modula-3-lib/scripts/configure
blob: 22a4738fdfee5ee2cb7d9e91549dc0c7c75b5a63 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#! /bin/sh
#
# $Id: configure,v 1.2 1996/09/10 05:25:09 jdp Exp $

umask 022

files_to_patch="\
    ${WRKSRC}/m3/m3build/templates/FreeBSD2"
temp_prefix=${WRKSRC}/installed

for i in ${files_to_patch}; do
    test -f ${i}.bak || cp -p ${i} ${i}.bak
    rm -f ${i}
    sed -e "s|/usr/local/|${temp_prefix}/|g" ${i}.bak >${i}
done