2
## Copyright (C) 2004 Gergely Nagy and Aaron Bentley
4
## See the file "COPYING" for further information about
5
## the copyright and warranty status of this work.
12
if [ -z "$(which tla-archive-locate 2>/dev/null)" ] ; then
13
echo "tla-archive-locate not installed, exiting." >&2
17
if [ $1 = "--source" ]; then
22
local archive="$(tla parse-package-name -a $1)"
23
if [ -n "$archive" ]; then
24
if [ -z "$(tla archives $archive)" ]; then
25
local loc=$(tla-archive-locate $source $archive)
26
if [ -z "${loc}" ]; then
27
echo Archive not found
30
echo Found archive at ${loc}
31
tla register-archive "${loc}"
36
if [ -n "${loc}" ]; then
37
tla register-archive -d $archive
42
echo ' auto-get : get a revision from an auto-located archive'
47
echo "If the archive is unspecified, auto-register it. Then use it to"
48
echo "construct a project tree for the given revision"
49
echo "usage: aba auto-get [options] archive dest"
51
echo " -h, --help Display a help message and exit."
52
echo " -H Display a verbose help message and exit."
53
echo " --source Select from a particular listing source"
59
echo "Queries one of the available archive registries, and temporarily registers"
60
echo "the archive, if found."
64
-----------------------------------------------------------------------------
65
sourcecontrol http://sourcecontrol.net/stats/archivestats.html
68
gnuarch_wiki http://gnuarch.org/bin/view/Main/ArchiveRegistry
69
(also aliased to gnuarch)
71
sourcecontrol_wiki http://wiki.sourcecontrol.net/moin.cgi/Archive_20Registry
72
(also aliased to scwiki and sc_wiki)
77
# arch-tag: auto-get by Aaron Bentley (0:44 Feb 3, 2004)