Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tag: 0.2.0
Fetching contributors…

Octocat-spinner-32-eaf2f5

Cannot retrieve contributors at this time

file 34 lines (28 sloc) 0.605 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33
#!/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
Something went wrong with that request. Please try again.