17 lines
358 B
Bash
Executable File
17 lines
358 B
Bash
Executable File
#!/bin/sh
|
|
|
|
[ -z "$1" ] && exit 0
|
|
|
|
cd /usr/ports/$1
|
|
|
|
make show="COMMENT FULLPKGNAME MAINTAINER HOMEPAGE" \
|
|
| tr -s " " \
|
|
| awk 'NR == 1 { print "COMMENT: "$0 } \
|
|
NR == 2 { print "DISTNAME: "$0 } \
|
|
NR == 3 { print "MAINTAINER: "$0 } \
|
|
NR == 4 { print "HOMEPAGE: "$0 }'
|
|
echo
|
|
echo DESCRIPTION:
|
|
cat pkg/DESCR*
|
|
echo
|