15 lines
464 B
Bash
Executable File
15 lines
464 B
Bash
Executable File
#!/bin/sh
|
|
|
|
[ -z "$1" ] && exit 0
|
|
|
|
cd /usr/ports/$1
|
|
|
|
make show="COMMENT FULLPKGNAME HOMEPAGE MASTER_SITES MAINTAINER DESCR" \
|
|
| tr -s " " \
|
|
| awk 'NR == 1 { print " COMMENT: "$0 } \
|
|
NR == 2 { print " DISTNAME: "$0 } \
|
|
NR == 3 { print " HOMEPAGE: "$0 } \
|
|
NR == 4 { print "MASTER_SITES: "$0 } \
|
|
NR == 5 { print " MAINTAINER: "$0 } \
|
|
NR == 6 { print "DESCRIPTION: "; system("/bin/cat " $0); }'
|