2
## Copyright (C) 2004 Aaron Bentley
4
## See the file "COPYING" for further information about
5
## the copyright and warranty status of this work.
9
# executes the command ($* are the arguments after the command name)
12
options="library full revisions"
14
if [ -n "$library" ]; then
16
vercmd="library-versions"
25
if [ -n "$full" ]; then
29
for cat in `aba packages $library $1`; do
30
for packageversion in $(tla $vercmd $archive$cat); do
31
if [ -z "$revisions" ]; then
32
echo $prefix$packageversion
34
if [ -n "$(tla library-revisions $archive$packageversion)" ]; then
35
echo $prefix$packageversion
42
# one-liner description for aba help
45
aba_desc package-versions Lists all package versions in an archive
48
# short help for aba command -h, --help
52
usage: aba package-versions [archive]
54
--library search revision libraries instead of archives
55
--full show the full version name
56
--revisions show only versions that have revisions in the library
58
List all the package versions in the given archive. Defaults to
64
# extended help for aba command -H or aba help command
71
# arch-tag: package-versions by Aaron Bentley (12:03 Feb 10 2004)