From 81e3f00288d6fdc93de2dc31c065ebe3bdb1adf5 Mon Sep 17 00:00:00 2001 From: merakor Date: Fri, 12 Mar 2021 12:22:30 +0000 Subject: docs: update FossilOrigin-Name: fb505a8b22eb533c8857eaa002228f2c950ac1cdb4c7b314daf7b61cb25bed53 --- contrib/cpt-cat | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) (limited to 'contrib/cpt-cat') diff --git a/contrib/cpt-cat b/contrib/cpt-cat index b8dc34b..bfc9d66 100755 --- a/contrib/cpt-cat +++ b/contrib/cpt-cat @@ -1,6 +1,33 @@ #!/bin/sh -e # Concatanate package files in the installed package database # File names are printed to stderr. + +## SYNOPSIS: +## .Nm +## .Op Ar pkg +## .Op Ar file... + +## DESCRIPTION: +## .Nm +## outputs the contents of the given package's database files to the standard +## output. The names of the files being printed will also be printed, but to +## stderr. Thus, you can pipe the contents of a file without worrying about +## mixing filenames into that file. +## +## If no package is specified, +## .Nm +## will assume that the package in the current directory is going to be printed. +## +## If no file is specified, +## .Nm +## will print the contents +## .Em build , +## .Em depends , +## .Em sources +## and +## .Em version +## files. + case "$1" in --help|-h) printf 'usage: %s [pkg] [file...]\n' "${0##*/}" -- cgit v1.2.3