Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: bf3c9b870b
Fetching contributors…

Cannot retrieve contributors at this time

34 lines (28 sloc) 0.605 kb
#!/bin/sh
set -e
. rpg-sh-setup
[ "$*" ] || set -- --help; ARGV="$@"
USAGE '${PROGNAME} [-a] <package>...
Show files installed for packages.
Options
-a Show absolute paths to files instead of abbreviating.'
abbreviate () {
sed "
s|^$RPGLIB/|lib/|
s|^$RPGBIN/|bin/|
s|^$RPGMAN/|man/|
"
}
if test "$1" = '-a'
then filter='cat'
shift
else filter='abbreviate'
fi
for package in "$@"
do
packagedir="$RPGDB/$package/active"
if test -d "$packagedir"
then $filter < "$packagedir/manifest"
else die "package not installed: $package"
fi
done
Jump to Line
Something went wrong with that request. Please try again.