diff options
author | erwin <erwin@FreeBSD.org> | 2007-05-25 06:23:37 +0800 |
---|---|---|
committer | erwin <erwin@FreeBSD.org> | 2007-05-25 06:23:37 +0800 |
commit | d828e1f191eacdc7992c742d997275f9c81703c9 (patch) | |
tree | 4deb4a1f0110895b8a759c35d5f1c026b797c9ad /Tools/make_readmes | |
parent | 3fcd86251b800cd4b9539febdf666ea6b7256b7a (diff) | |
download | freebsd-ports-gnome-d828e1f191eacdc7992c742d997275f9c81703c9.tar.gz freebsd-ports-gnome-d828e1f191eacdc7992c742d997275f9c81703c9.tar.zst freebsd-ports-gnome-d828e1f191eacdc7992c742d997275f9c81703c9.zip |
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 ee8167144fb4..089bc993442c 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 '\|'; |