~abentley/bzrtools/bzrtools.dev

« back to all changes in this revision

Viewing changes to fai/aba/commands/latest-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 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
 
     version=$1
14
 
   else
15
 
     version=`tla tree-version`
16
 
   fi
17
 
   echo $version--`tla revisions $version| tail -n 1`
18
 
}
19
 
 
20
 
# one-liner description for aba help
21
 
cmd_desc()
22
 
{
23
 
echo '             latest-revision : Outputs the latest revision of a package'
24
 
}
25
 
 
26
 
# short help for aba command -h, --help
27
 
cmd_help()
28
 
{
29
 
   echo "Usage: aba latest-revision [package--version]"
30
 
}
31
 
 
32
 
# extended help for aba command -H or aba help command
33
 
cmd_ext_help()
34
 
{
35
 
   echo -n
36
 
}       
37
 
 
38
 
aba_run "$@"
39
 
# arch-tag: latest-revision by Aaron Bentley (13:59 Feb 4, 2004)