From 9ca1d24d30a485300b9486b18c068660da630cc1 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Thu, 13 May 2004 18:37:12 -0400 Subject: initial import into Darcs --- scripts/reg | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100755 scripts/reg (limited to 'scripts/reg') diff --git a/scripts/reg b/scripts/reg new file mode 100755 index 00000000..75ac364e --- /dev/null +++ b/scripts/reg @@ -0,0 +1,14 @@ +#!/bin/sh + +switch="-U" +current="-c" + +if [ "$1" = "-C" -o "$1" = "-U" -o "$1" = "-P" -o "$1" = "-M" ]; then + switch="$1" + shift +elif [ "$1" = "-b" -o "$1" = "-e" ]; then + current="$1 $2" + shift 2 +fi + +ledger $current -s $switch register "$@" -- cgit v1.2.3