mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-05 22:43:24 +00:00
15 lines
327 B
Plaintext
15 lines
327 B
Plaintext
|
#! /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
|