# HG changeset patch # User lbatlle@npdl268.bpo.hp.com # Date 1175160972 -7200 # Node ID 17fff740794ca977a46815d99ef61dcfaf66adf1 # Parent 0193c946ee18b7f910ece01dec19703f2d0701b5 Added 'version', for releasing 1.0. diff -r 0193c946ee18 -r 17fff740794c bug --- a/bug Mon Jan 15 20:21:54 2007 +0100 +++ b/bug Thu Mar 29 11:36:12 2007 +0200 @@ -1,7 +1,7 @@ #!/bin/bash # (encoding: UTF-8) # -# Simple Bug / ToDo tracker for the command line. +# bug 1.0 - Simple Bug / ToDo tracker for the command line. # (Instructions below the license) # LICENSE # Copyright (C) 2006 LluĂ­s Batlle i Rossell @@ -69,7 +69,7 @@ function usage { - echo "Usage: $PNAME [ add | list | view | edit | delete | create | project ]" + echo "Usage: $PNAME [add | list | view | edit | delete | create | project | version]" } function create @@ -207,6 +207,12 @@ tail -n $TOTAIL $BUG_PROJECT | grep -v "^#" } +function version +{ + echo "bug 1.0 - Simple Bug / ToDo tracker for the command line." + echo "Copyright (C) 2006 Lluis Batlle i Rossell" +} + function searchline { ID=$1 @@ -333,6 +339,9 @@ l*) list || exit 1 ;; + ver*) + version || exit 1 + ;; v*) view $2 || exit 1 ;;