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
mirrors=$(aba mirrors --local $1)
13
for archive in $mirrors; do
14
versions=$(aba package-versions --library --revisions $archive)
15
for version in $versions; do
16
echo Mirroring $archive/$version
17
tla archive-mirror $archive-SOURCE $archive $version
22
# one-liner description for aba help
25
aba_desc $(basename $0) "Updates mirrors for revisions in library"
28
# short help for aba command -h, --help
32
Updates mirrors for revisions in library
33
usage: $abaname $(basename $0) [archive]
35
This script allows local mirrors to act a little more like caches. We assume
36
that the user is interested in those revisions that are present in the revision
37
library. So any versions for local mirrors that have revisions in the library
38
are updated from their sources.
43
# extended help for aba command -H or aba help command
51
# arch-tag: partial-mirror by Aaron Bentley (10:40 Apr 26 2004)