head 1.8; access; symbols RELEASE_8_3_0:1.7 RELEASE_9_0_0:1.7 RELEASE_7_4_0:1.6 RELEASE_8_2_0:1.6 RELEASE_6_EOL:1.6 RELEASE_8_1_0:1.6 RELEASE_7_3_0:1.6 RELEASE_8_0_0:1.6 RELEASE_7_2_0:1.6 RELEASE_7_1_0:1.6 RELEASE_6_4_0:1.6 RELEASE_5_EOL:1.6 RELEASE_7_0_0:1.6 RELEASE_6_3_0:1.6 PRE_XORG_7:1.5 RELEASE_4_EOL:1.5 RELEASE_6_2_0:1.5 RELEASE_6_1_0:1.5 RELEASE_5_5_0:1.5 RELEASE_6_0_0:1.5 RELEASE_5_4_0:1.5 RELEASE_4_11_0:1.1; locks; strict; comment @# @; 1.8 date 2012.11.17.05.54.18; author svnexp; state Exp; branches; next 1.7; 1.7 date 2011.08.12.06.56.44; author ehaupt; state Exp; branches; next 1.6; 1.6 date 2007.05.24.22.23.36; author erwin; state Exp; branches; next 1.5; 1.5 date 2005.03.13.08.49.38; author krion; state Exp; branches; next 1.4; 1.4 date 2005.03.11.21.25.16; author krion; state Exp; branches; next 1.3; 1.3 date 2005.03.09.23.57.29; author krion; state Exp; branches; next 1.2; 1.2 date 2005.02.28.21.09.05; author krion; state Exp; branches; next 1.1; 1.1 date 2004.11.19.13.45.07; author krion; state Exp; branches; next ; desc @@ 1.8 log @Switch exporter over @ text @#!/usr/bin/perl # $FreeBSD: head/Tools/make_readmes 300895 2012-07-14 12:56:14Z beat $ $PORTSDIR="/usr/ports"; $TEMPLATES=$ENV{TEMPLATES} || "${PORTSDIR}/Templates"; $README=`cat ${TEMPLATES}/README.port`; while(<>) { (@@F)=split(/\|/, $_); $PKG=$F[0]; $PORT=$F[1]; $COMMENT=$F[3]; $DESCR=$F[4]; $EMAIL=$F[5]; $BUILD_DEPENDS=$F[7]; $RUN_DEPENDS=$F[8]; $WEBSITE=$F[9]; $DESCR=~s|^\Q$PORT/\E||; $PORT=~s|`pwd`||; if($WEBSITE) { $WEBSITE=" and/or visit the web site for futher informations" }; if($BUILD_DEPENDS) { $BUILD_DEPENDS="This port requires package(s) \"$BUILD_DEPENDS\" to build." }; if($RUN_DEPENDS) { $RUN_DEPENDS="This port requires package(s) \"$RUN_DEPENDS\" to run." }; $TOP=$PORT; $TOP=~s|[^/]+|..|g; $tmp=$README; $tmp=~s|%%PKG%%|$PKG|g; $tmp=~s|%%PORT%%|$PORT|g; $tmp=~s|%%COMMENT%%|$COMMENT|g; $tmp=~s|%%DESCR%%|$DESCR|g; $tmp=~s|%%EMAIL%%|$EMAIL|g; $tmp=~s|%%WEBSITE%%|$WEBSITE|g; $tmp=~s|%%BUILD_DEPENDS%%|$BUILD_DEPENDS|g; $tmp=~s|%%RUN_DEPENDS%%|$RUN_DEPENDS|g; $tmp=~s|%%TOP%%|$TOP|g; open F,">$PORT/README.html"; print F $tmp; close F } @ 1.7 log @Fix readme building. @ text @d2 1 a2 1 # $FreeBSD: ports/Tools/make_readmes,v 1.6 2007/05/24 22:23:36 erwin Exp $ @ 1.6 log @Make it possible to override the templates by using an environement variable TEMPLATES. RT: 105108 (reworked from) Submitted by: Curtis Jewell @ text @d2 1 a2 1 # $FreeBSD: ports/Tools/make_readmes,v 1.5 2005/03/13 08:49:38 krion Exp $ d9 10 a18 10 split '\|'; $PKG=$_[0]; $PORT=$_[1]; $COMMENT=$_[3]; $DESCR=$_[4]; $EMAIL=$_[5]; $BUILD_DEPENDS=$_[7]; $RUN_DEPENDS=$_[8]; $WEBSITE=$_[9]; @ 1.5 log @Put $FreeBSD$ for ident(1)'ing. @ text @d2 1 a2 1 # $FreeBSD$ d5 2 a6 1 $README=`cat ${PORTSDIR}/Templates/README.port`; @ 1.4 log @Hopefully last try to fix readmes build. Submitted by: Christopher Kelley Pointyhat to: krion @ text @d2 1 @ 1.3 log @Fix problems with quoting if PORTSTOP is specified. @ text @d3 2 a4 1 $README="cat ${PORTSDIR}/README.port"; @ 1.2 log @* Add info files to TMPPLIST, only if INFO is specified. [1] * Fix PATH problems during README.html generation if "make -DPORTSTOP readmes" is defined. [2] * Add support for early rcNG startup scripts. [3] * Remove duplicate USE_XLIB handling. [4] * Add check for USE_PYTHON_(BUILD|RUN), and include bsd.python.mk if both are specified. [5] * Use PRE-INSTALL target for SUB_FILES and SUB_LIST. [6] * Introduce bsd.gstreamer.mk and utilize new macros: USE_GSTREAMER/WANT_GSTREAMER. [7] PR: ports/77634 [1], ports/77592 [2], ports/77385 [3], ports/77557 [4], ports/77344 [5], ports/77211 [6], ports/77838 [7] Submitted by: krion [1] [2], Florent Thoumie [3] [6], pav [4], lofi [5], ahze [7] @ text @d3 1 a3 1 $README=`cat ${PORTSDIR}/README.port`; @ 1.1 log @* Fix INDEX build if MAINTAINER is not defined. [1] * Remove USE_QT2 since it's obsolete now. [2] * Clarify comments about ARCH. [3] * Speedup 'make readmes'. Add a perl script "Tools/make_readmes" and modify bsd.port.subdir.mk to avoid recursing into individual port directories to create README.html. [4] * Fix 'make search' to allow case insensitive search on 5-x/6-x. [5] * Add the possibility to search the ports by category. [6] * Remove tk42 and tcl76 from virtual categories since they're obsolete. [7] * Introduce new variable - DISTVERSION, vendor version of the distribution, that can be set instead of PORTVERSION and is automatically converted in a conforming PORTVERSION. [8] * Use --suffix instead of -b option for patch(1) to make it compatible with BSD patch(1) [9] * Fix {WANT,WITH}_MYSQL_VER behavior, to deal with conflicting versions. [10] PR: ports/68895 [1], ports/69486 [2], ports/68539 [3], ports/70018 [4], ports/68896 [5], ports/73299 [6], ports/73570 [7], ports/67171 [8], ports/72182 [9] Submitted by: linimon [1][3], arved [2][7], cperciva [4], Matthew Seaman [5], Radek Kozlowski [6], eik [8], Andreas Hauser [9], clement [10] @ text @d3 1 a3 1 $README=`cat Templates/README.port`; @