~abentley/bzrtools/bzrtools.dev

« back to all changes in this revision

Viewing changes to fai/aba/commands/tree-revision

  • Committer: Robert Collins
  • Date: 2005-09-14 11:27:20 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-20050914112720-c66a21de86eafa6e
trim fai cribbage

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#! /bin/sh
2
 
## Copyright (C) 2004 Jan Hudec
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
 
    test $# -gt 1 && { echo "* Too many arguments"; exit 1; }
12
 
    aba_tree_revision "$1"
13
 
}
14
 
 
15
 
# one-liner description for aba help
16
 
cmd_desc()
17
 
{
18
 
    aba_desc $(basename $0) 'reports the current tree revision name'
19
 
}
20
 
 
21
 
# short help for aba command -h, --help
22
 
cmd_help()
23
 
{
24
 
    cat <<EOH
25
 
This command reports the full revision name of the current tree.
26
 
usage: $abaname $(basename $0) [DIR]
27
 
 
28
 
EOH
29
 
}
30
 
 
31
 
# extended help for aba command -H or aba help command
32
 
cmd_ext_help()
33
 
{
34
 
    cat <<EOH
35
 
The full name of latest patch from default tree-version in DIR (or current
36
 
directory) is printed.
37
 
 
38
 
EOH
39
 
}       
40
 
 
41
 
aba_run "$@"
42
 
# arch-tag: c359fe53-673c-423c-9429-30e356d02482