/todo

To get this branch, use:
bzr branch http://bzr.ed.am/todo

« back to all changes in this revision

Viewing changes to todo

  • Committer: edam
  • Date: 2011-12-10 20:46:56 UTC
  • Revision ID: edam@waxworlds.org-20111210204656-ivc37tya904ogje5
fixed version info and error about failing to start the editor

Show diffs side-by-side

added added

removed removed

47
47
 
48
48
# version mode
49
49
if( $mode_version ) {
50
 
    print "todo 1.0\n" .
51
 
        "Copyright (C) 2011 Tim Marston.\n";
 
50
    print "todo 1.0\n".
 
51
                "Copyright (C) 2011 Tim Marston.\n".
 
52
                "http://ed.am/software/todo\n";
52
53
    exit( 0 );
53
54
}
54
55
 
110
111
 
111
112
    # edit todo file
112
113
    system( @exec_array );
113
 
        $? == 0 or die "unable to exec editor";
 
114
        $? == 0 or
 
115
                die "can't start editor, check EDITOR envionment variable";
114
116
 
115
117
        # check for changes and commit it
116
118
        $output = `bzr status --no-aliases "$todo_dir/todo"`;