~abentley/bzrtools/bzrtools.dev

« back to all changes in this revision

Viewing changes to fai/aba/commands/library-config

  • Committer: Robert Collins
  • Date: 2005-09-13 10:46:27 UTC
  • mto: (147.2.6) (364.1.3 bzrtools)
  • mto: This revision was merged to the branch mainline in revision 324.
  • Revision ID: robertc@robertcollins.net-20050913104627-51f938950a907475
handle inaccessible sibling archives somewhat - note version-0 is still not handled

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#! /bin/sh
 
2
## Copyright (C) 2004 Aaron Bentley
 
3
##
 
4
## See the file "COPYING" for further information about
 
5
## the copyright and warranty status of this work.
 
6
 
 
7
. "$abadir/aba-lib"
 
8
 
 
9
# executes the command ($* are the arguments after the command name)
 
10
cmd_exec()
 
11
{
 
12
  if [ -n "$1" ]; then
 
13
    tla library-config $*
 
14
  else
 
15
    for lib in `tla my-revision-library`; do
 
16
      tla library-config $lib
 
17
    done;
 
18
  fi
 
19
}
 
20
 
 
21
# one-liner description for aba help
 
22
cmd_desc()
 
23
{
 
24
   echo -n
 
25
}
 
26
 
 
27
# short help for aba command -h, --help
 
28
cmd_help()
 
29
{
 
30
   echo -n
 
31
   tla library-config -h;
 
32
   echo aba version: lists settings for all libraries if no arguments 
 
33
   echo
 
34
}
 
35
 
 
36
# extended help for aba command -H or aba help command
 
37
cmd_ext_help()
 
38
{
 
39
   echo -n
 
40
   tla library-config -H;
 
41
   echo aba version: lists settings for all libraries if no arguments 
 
42
   echo
 
43
}       
 
44
 
 
45
aba_run_tlawrap "$@"
 
46
# arch-tag: library-config by Aaron Bentley  (10:43 Feb 08 2004)