1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-04 22:33:27 +00:00
freebsd-ports/lang/modula-3/scripts/configure

15 lines
327 B
Bash

#! /bin/sh
#
# $Id$
files_to_patch="\
${WRKSRC}/boot-FreeBSD2/m3build/templates/FreeBSD2 \
${WRKSRC}/m3/m3build/templates/FreeBSD2"
temp_prefix=${WRKDIR}/installed
for i in ${files_to_patch}; do
test -f ${i}.bak || cp -p ${i} ${i}.bak
rm -f ${i}
sed -e "s+!!PREFIX!!+${temp_prefix}+g" ${i}.bak >${i}
done