diff options
author | John Wiegley <johnw@newartisans.com> | 2009-02-28 06:18:21 -0400 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2009-02-28 06:18:21 -0400 |
commit | 5afc4c3770380bd653168772c79008959dfc125f (patch) | |
tree | a91ece323bf2e3e68ca08f2136af45e75e951a8e | |
parent | 19cfd9e23b7cd4a7976591290b17e7ba20dd5a50 (diff) | |
download | fork-ledger-5afc4c3770380bd653168772c79008959dfc125f.tar.gz fork-ledger-5afc4c3770380bd653168772c79008959dfc125f.tar.bz2 fork-ledger-5afc4c3770380bd653168772c79008959dfc125f.zip |
Reorganized some files in tools/ and test/
-rwxr-xr-x | acprep | 2 | ||||
-rw-r--r-- | test/input/drewr.dat (renamed from tools/drewr.dat) | 0 | ||||
-rw-r--r-- | test/input/sample.dat | 44 | ||||
-rw-r--r-- | test/input/transfer.dat (renamed from tools/transfer.dat) | 0 | ||||
-rwxr-xr-x | test/mkmondo.sh (renamed from tools/mkmondo) | 0 | ||||
-rwxr-xr-x | test/prove.sh (renamed from tools/prove.sh) | 4 | ||||
-rwxr-xr-x | tools/autogen.sh (renamed from autogen.sh) | 0 | ||||
-rwxr-xr-x | tools/buildall | 10 | ||||
-rwxr-xr-x | tools/prepall | 12 | ||||
-rw-r--r-- | tools/sample.py | 4 | ||||
-rwxr-xr-x | tools/sample.sh | 7 |
11 files changed, 47 insertions, 36 deletions
@@ -20,7 +20,7 @@ fi echo "m4_define([VERSION_NUMBER], [$COMMIT])" > version.m4 -sh autogen.sh +sh tools/autogen.sh # configure the template files diff --git a/tools/drewr.dat b/test/input/drewr.dat index 937daa5c..937daa5c 100644 --- a/tools/drewr.dat +++ b/test/input/drewr.dat diff --git a/test/input/sample.dat b/test/input/sample.dat new file mode 100644 index 00000000..002d20ee --- /dev/null +++ b/test/input/sample.dat @@ -0,0 +1,44 @@ +N $ + += account =~ /^Expenses:Books/ + (Liabilities:Taxes) -0.10 + +~ Monthly + Assets:Bank:Checking $500.00 + Income:Salary + +2004/05/01 * Checking balance + Assets:Bank:Checking $1,000.00 + Equity:Opening Balances + +2004/05/03=2004/05/01 * Investment balance + Assets:Brokerage 50 AAPL @ $30.00 + Equity:Opening Balances + +2004/05/14 * Páy dày + Assets:Bank:Checking 500.00€ + Income:Salary + +2004/05/14 * Another dày in which there is Páying + Asséts:Bánk:Chécking:Asséts:Bánk:Chécking $500.00 + Income:Salary + +2004/05/14 * Another dày in which there is Páying + Русский язык:Русский язык:Русский язык:Русский язык $1000.00 + Income:Salary + +2004/05/27 Book Store + Expenses:Books $20.00 + Expenses:Cards $40.00 + Expenses:Docs $30.00 + Liabilities:MasterCard + +2004/05/27 (100) Credit card company + ; This is an xact note! + ; Sample: Value + Liabilities:MasterCard $20.00 + ; This is a posting note! + ; Sample: Another Value + ; :MyTag: + Assets:Bank:Checking + ; :AnotherTag: diff --git a/tools/transfer.dat b/test/input/transfer.dat index 1e2991dc..1e2991dc 100644 --- a/tools/transfer.dat +++ b/test/input/transfer.dat diff --git a/tools/mkmondo b/test/mkmondo.sh index bf0e965c..bf0e965c 100755 --- a/tools/mkmondo +++ b/test/mkmondo.sh diff --git a/tools/prove.sh b/test/prove.sh index c62c4988..5dadca71 100755 --- a/tools/prove.sh +++ b/test/prove.sh @@ -1,9 +1,9 @@ #!/bin/sh if [ -n "$1" ]; then - ./ledger --seed=$1 --actual --args-only generate > /tmp/cout + ledger --seed=$1 --actual --args-only generate > /tmp/cout else - ./ledger --actual --args-only generate > /tmp/cout + ledger --actual --args-only generate > /tmp/cout fi ledger -f /tmp/cout --actual --args-only print > /tmp/print diff --git a/autogen.sh b/tools/autogen.sh index a8b63eff..a8b63eff 100755 --- a/autogen.sh +++ b/tools/autogen.sh diff --git a/tools/buildall b/tools/buildall deleted file mode 100755 index 5faf66e5..00000000 --- a/tools/buildall +++ /dev/null @@ -1,10 +0,0 @@ -#!/bin/sh - -set -e - -(cd ~/Products/ledger && make "$@") & -(cd ~/Products/ledger-gcov && make "$@") & -(cd ~/Products/ledger-gprof && make "$@") & -(cd ~/Products/ledger-opt && make "$@") & - -wait diff --git a/tools/prepall b/tools/prepall deleted file mode 100755 index be9459d8..00000000 --- a/tools/prepall +++ /dev/null @@ -1,12 +0,0 @@ -#!/bin/sh - -set -e - -tools/myacprep --opt -tools/myacprep --gprof -tools/myacprep --gcov -tools/myacprep - -touch ~/Products/ledger-gcov/config.status -touch ~/Products/ledger-gprof/config.status -touch ~/Products/ledger-opt/config.status diff --git a/tools/sample.py b/tools/sample.py deleted file mode 100644 index d3bc9b18..00000000 --- a/tools/sample.py +++ /dev/null @@ -1,4 +0,0 @@ -import ledger - -def get_amount(item): - return item.amount() * 100 diff --git a/tools/sample.sh b/tools/sample.sh deleted file mode 100755 index 284b3108..00000000 --- a/tools/sample.sh +++ /dev/null @@ -1,7 +0,0 @@ -#!/bin/sh - -~/Products/ledger/ledger \ - --import ~/src/ledger/tools/sample.py \ - -f ~/src/ledger/doc/sample.dat \ - --amount 'get_amount(xact)' \ - register |