Make it possible to override the templates by using an environement

variable TEMPLATES.

RT:		105108 (reworked from)
Submitted by:	Curtis Jewell<swordsman@csjewell.fastmail.us>
This commit is contained in:
Erwin Lansing 2007-05-24 22:23:37 +00:00
parent fe04173b18
commit 05ba2446ab
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=191651

View file

@ -2,7 +2,8 @@
# $FreeBSD$
$PORTSDIR="/usr/ports";
$README=`cat ${PORTSDIR}/Templates/README.port`;
$TEMPLATES=$ENV{TEMPLATES} || "${PORTSDIR}/Templates";
$README=`cat ${TEMPLATES}/README.port`;
while(<>) {
split '\|';