diff options
author | krion <krion@FreeBSD.org> | 2004-11-19 21:45:07 +0800 |
---|---|---|
committer | krion <krion@FreeBSD.org> | 2004-11-19 21:45:07 +0800 |
commit | f5491a4ff9033cd11b3395f776401f56b5ab93a7 (patch) | |
tree | 9e8b4749b0bc68429e958dce4b618bd617c0366d /Tools/make_readmes | |
parent | a29610b2becc324d37650fc70af010751d83c612 (diff) | |
download | freebsd-ports-gnome-f5491a4ff9033cd11b3395f776401f56b5ab93a7.tar.gz freebsd-ports-gnome-f5491a4ff9033cd11b3395f776401f56b5ab93a7.tar.zst freebsd-ports-gnome-f5491a4ff9033cd11b3395f776401f56b5ab93a7.zip |
* 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 <m.seaman@infracaninophile.co.uk> [5],
Radek Kozlowski <radek@raadradd.com> [6],
eik [8], Andreas Hauser <andy-freebsd@splashground.de> [9],
clement [10]
Diffstat (limited to 'Tools/make_readmes')
-rw-r--r-- | Tools/make_readmes | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/Tools/make_readmes b/Tools/make_readmes new file mode 100644 index 000000000000..186c7382c955 --- /dev/null +++ b/Tools/make_readmes @@ -0,0 +1,47 @@ +#!/usr/bin/perl + +$README=`cat Templates/README.port`; + +while(<>) { + split '\|'; + + $PKG=$_[0]; + $PORT=$_[1]; + $COMMENT=$_[3]; + $DESCR=$_[4]; + $EMAIL=$_[5]; + $BUILD_DEPENDS=$_[7]; + $RUN_DEPENDS=$_[8]; + $WEBSITE=$_[9]; + + $DESCR=~s|^\Q$PORT/\E||; + $PORT=~s|`pwd`||; + + if($WEBSITE) { + $WEBSITE=" and/or visit the <a href=\"$WEBSITE\">web site</a> 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 +} |