diff options
author | erwin <erwin@FreeBSD.org> | 2007-05-24 22:23:37 +0000 |
---|---|---|
committer | erwin <erwin@FreeBSD.org> | 2007-05-24 22:23:37 +0000 |
commit | d828e1f191eacdc7992c742d997275f9c81703c9 (patch) | |
tree | 4deb4a1f0110895b8a759c35d5f1c026b797c9ad /Tools/make_readmes | |
parent | 3fcd86251b800cd4b9539febdf666ea6b7256b7a (diff) | |
download | FreeBSD-ports-d828e1f191eacdc7992c742d997275f9c81703c9.zip FreeBSD-ports-d828e1f191eacdc7992c742d997275f9c81703c9.tar.gz |
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>
Diffstat (limited to 'Tools/make_readmes')
-rw-r--r-- | Tools/make_readmes | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Tools/make_readmes b/Tools/make_readmes index ee81671..089bc99 100644 --- a/Tools/make_readmes +++ b/Tools/make_readmes @@ -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 '\|'; |