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:
parent
fe04173b18
commit
05ba2446ab
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=191651
1 changed files with 2 additions and 1 deletions
|
@ -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 '\|';
|
||||
|
|
Loading…
Reference in a new issue