~abentley/bzrtools/bzrtools.dev

« back to all changes in this revision

Viewing changes to fai/aba/commands/elog

  • 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
 
unset ABAFILTER
7
 
export ABAFILTER
8
 
 
9
 
. "$abadir/aba-lib"
10
 
cmd_exec()
11
 
{
12
 
  if [ -z "$EDITOR" ]; then
13
 
    echo '$EDITOR not set'
14
 
    exit 1
15
 
  fi
16
 
  if file=`tla make-log $1`; then
17
 
    $EDITOR $file
18
 
  fi
19
 
}
20
 
cmd_desc()
21
 
{
22
 
  echo '                        elog : shortcut for $EDITOR `tla make-log`'
23
 
}
24
 
cmd_help()
25
 
{
26
 
    cat <<EOH
27
 
shortcut for \$EDITOR \`tla make-log\`.  
28
 
usage: $abaname elog [VERSION]
29
 
 
30
 
This works just like \$EDITOR \`tla make-log\`, except that it handles errors
31
 
better.
32
 
EOH
33
 
}
34
 
cmd_ext_help()
35
 
{
36
 
    cat <<EOH
37
 
EOH
38
 
}       
39
 
aba_run "$@"
40
 
 
41
 
# arch-tag: elog by Aaron Bentley (12:17 Jan 15, 2004)