Reorganized some files in tools/ and test/
This commit is contained in:
parent
19cfd9e23b
commit
5afc4c3770
11 changed files with 47 additions and 36 deletions
2
acprep
2
acprep
|
|
@ -20,7 +20,7 @@ fi
|
|||
|
||||
|
||||
echo "m4_define([VERSION_NUMBER], [$COMMIT])" > version.m4
|
||||
sh autogen.sh
|
||||
sh tools/autogen.sh
|
||||
|
||||
|
||||
# configure the template files
|
||||
|
|
|
|||
44
test/input/sample.dat
Normal file
44
test/input/sample.dat
Normal file
|
|
@ -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:
|
||||
|
|
@ -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
|
||||
|
|
@ -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
|
||||
|
|
@ -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
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
import ledger
|
||||
|
||||
def get_amount(item):
|
||||
return item.amount() * 100
|
||||
|
|
@ -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
|
||||
Loading…
Add table
Reference in a new issue