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="remote local"
15
if [ -z "$remote" ] && [ -z "$local" ]; then
19
if [ -n "$local" ]; then archm '-SOURCE' $1; fi
20
if [ -n "$remote" ]; then archm '-MIRROR' $1; fi
25
tla archives --names $2|grep -- $1|sed -e "s/$1//"
28
# one-liner description for aba help
31
aba_desc $(basename $0) "lists all archives which have mirrors"
34
# short help for aba command -h, --help
38
lists all archives which have mirrors
39
usage: $abaname $(basename $0) [options] [search regular expression]
41
-h, --help Display a help message and exit.
42
-H Display a verbose help message and exit.
43
--remote Display archives that have remote mirrors (have -SOURCE)
44
--local Display archives that have local mirrors (have -MIRROR)
46
Print a list of registered archives which have known mirrors.
48
if [search regex] is given then only archives with names that match.
49
[search regex] will be shown
54
# extended help for aba command -H or aba help command
62
# arch-tag: mirrors by Aaron Bentley (20:32 Feb 25 2004)