~abentley/bzrtools/bzrtools.dev

« back to all changes in this revision

Viewing changes to fai/aba/commands/file-diff-rev

  • Committer: Robert Collins
  • Date: 2005-09-13 12:39:26 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-20050913123926-b72242bdacc1ae52
create the output directory

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
  diff -u $(tla file-find $1 $(aba_full_revision $2)) $(tla file-find projectlanguage.cpp $(aba_full_revision $3))
 
13
}
 
14
 
 
15
# one-liner description for aba help
 
16
cmd_desc()
 
17
{
 
18
    aba_desc $(basename $0) "Compare two revisions of a file"
 
19
}
 
20
 
 
21
# short help for aba command -h, --help
 
22
cmd_help()
 
23
{
 
24
    cat <<EOH
 
25
Description...
 
26
usage: $abaname $(basename $0) file [revision] [revision]
 
27
 
 
28
Omitted revisions will default to the tree revision.  Patchlevels are fine.
 
29
EOH
 
30
}
 
31
 
 
32
# extended help for aba command -H or aba help command
 
33
cmd_ext_help()
 
34
{
 
35
    cat <<EOH
 
36
EOH
 
37
}       
 
38
 
 
39
aba_run "$@"
 
40
#  arch-tag: file-diff-rev by Aaron Bentley  (11:40 May 12 2004)