diff options
author | Emanuel Haupt <ehaupt@FreeBSD.org> | 2011-08-12 06:56:44 +0000 |
---|---|---|
committer | Emanuel Haupt <ehaupt@FreeBSD.org> | 2011-08-12 06:56:44 +0000 |
commit | e7cc2ccf33f9a6971088dc4f5da5c4489f811b25 (patch) | |
tree | 969d3a93539a25e91366db341f98154b08ae035c /Tools/make_readmes | |
parent | 4d42f061c525c05eecc86febd6cbe325224ebd6e (diff) | |
download | ports-e7cc2ccf33f9a6971088dc4f5da5c4489f811b25.tar.gz ports-e7cc2ccf33f9a6971088dc4f5da5c4489f811b25.zip |
Notes
Diffstat (limited to 'Tools/make_readmes')
-rw-r--r-- | Tools/make_readmes | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/Tools/make_readmes b/Tools/make_readmes index 089bc993442c..c6e78e6d89f6 100644 --- a/Tools/make_readmes +++ b/Tools/make_readmes @@ -6,16 +6,16 @@ $TEMPLATES=$ENV{TEMPLATES} || "${PORTSDIR}/Templates"; $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]; + (@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`||; |