From 62f33ae7e0e2df49cdbc96d383aaff4497018a13 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Fri, 10 Feb 2012 09:35:02 -1000 Subject: Moved some files into their right locations --- doc/cleanup.sh | 5 ----- doc/gendocs.sh | 5 ----- doc/spellcheck.sh | 3 --- test/divzero.dat | 11 ---------- test/input/divzero.dat | 11 ++++++++++ test/input/spaces.dat | 55 ++++++++++++++++++++++++++++++++++++++++++++++++++ test/spaces.dat | 55 -------------------------------------------------- tools/cleanup.sh | 5 +++++ tools/gendocs.sh | 5 +++++ tools/spellcheck.sh | 3 +++ 10 files changed, 79 insertions(+), 79 deletions(-) delete mode 100755 doc/cleanup.sh delete mode 100755 doc/gendocs.sh delete mode 100755 doc/spellcheck.sh delete mode 100644 test/divzero.dat create mode 100644 test/input/divzero.dat create mode 100644 test/input/spaces.dat delete mode 100644 test/spaces.dat create mode 100755 tools/cleanup.sh create mode 100755 tools/gendocs.sh create mode 100755 tools/spellcheck.sh diff --git a/doc/cleanup.sh b/doc/cleanup.sh deleted file mode 100755 index 29c243ad..00000000 --- a/doc/cleanup.sh +++ /dev/null @@ -1,5 +0,0 @@ -#/bin/bash - -mv ledger3.texi keep-ledger3.texi -rm ledger3.* -mv keep-ledger3.texi ledger3.texi \ No newline at end of file diff --git a/doc/gendocs.sh b/doc/gendocs.sh deleted file mode 100755 index 55933b13..00000000 --- a/doc/gendocs.sh +++ /dev/null @@ -1,5 +0,0 @@ -#!/bin/bash -echo "===================================== Making Info..." -makeinfo ledger3.texi -echo "===================================== Making PDF..." -texi2pdf ledger3.texi diff --git a/doc/spellcheck.sh b/doc/spellcheck.sh deleted file mode 100755 index ae86a3d6..00000000 --- a/doc/spellcheck.sh +++ /dev/null @@ -1,3 +0,0 @@ -#!/bin/sh - -aspell check --mode=texinfo ledger3.texi \ No newline at end of file diff --git a/test/divzero.dat b/test/divzero.dat deleted file mode 100644 index 009c9d64..00000000 --- a/test/divzero.dat +++ /dev/null @@ -1,11 +0,0 @@ -; -*- ledger -*- -; Time-stamp: <2011-11-22 13:59 (cpearls)> - -; this journal file will cause a divide by zero error. The divide by -; zero goes away if you add a significant figure to any of the last -; divisors in either transaction ( "10.74" -> "10.740" ) - -2011/04/05 * VSGBX Dividend - Assets:Investments:401K:Matching ( (1.0/3.0)*0.11/10.74 VSGBX) ; 0.003414 - Assets:Investments:401K:Deferred ( (2.0/3.0)*0.11/10.74 VSGBX) ; 0.006828 - Income:Exempt:Dividends $-0.11 diff --git a/test/input/divzero.dat b/test/input/divzero.dat new file mode 100644 index 00000000..009c9d64 --- /dev/null +++ b/test/input/divzero.dat @@ -0,0 +1,11 @@ +; -*- ledger -*- +; Time-stamp: <2011-11-22 13:59 (cpearls)> + +; this journal file will cause a divide by zero error. The divide by +; zero goes away if you add a significant figure to any of the last +; divisors in either transaction ( "10.74" -> "10.740" ) + +2011/04/05 * VSGBX Dividend + Assets:Investments:401K:Matching ( (1.0/3.0)*0.11/10.74 VSGBX) ; 0.003414 + Assets:Investments:401K:Deferred ( (2.0/3.0)*0.11/10.74 VSGBX) ; 0.006828 + Income:Exempt:Dividends $-0.11 diff --git a/test/input/spaces.dat b/test/input/spaces.dat new file mode 100644 index 00000000..1ada1b61 --- /dev/null +++ b/test/input/spaces.dat @@ -0,0 +1,55 @@ +; this file contains spaces after the payee and tag values. Ledger +; should ignore the trailing spaces for the purposes of determining +; unique values +; +; bug 584 and 550 reported trailing spaces being considered +; significant in payee and tag values. +; +; running +; ledger -f test/spaces.dat payees +; yielded two distinct payees, because utils.h/next_element() didn't +; handle a single space followed by a null correctly. +; +; running +; ledger -f test/spaces.dat reg --group-by "tag('test')" +; yielded four groups. + +2011/11/28 * test + ; no space after payee or tag value + Expenses:misc $1 ; test: spaces + Assets:checking + +2011/11/28 * test + ; single space after payee and tag value + Expenses:misc $2 ; test: spaces + Assets:checking + +2011/11/28 test + ; two spaces after payee and tag value + Expenses:misc $4 ; test: spaces + Assets:checking + +2011/11/28 test + ; three spaces after payee and tag value + Expenses:misc $8 ; test: spaces + Assets:checking + +2011/11/28 testcommodity + ; COM commodity has no space after + Expenses:misc 1 COM + Assets:checking + +2011/11/28 testcommodity + ; COM commodity has one space after + Expenses:misc 1 COM + Assets:checking + +2011/11/28 testcommodity + ; COM commodity has two spaces after + Expenses:misc 1 COM + Assets:checking + +2011/11/28 testcommodity + ; COM commodity has three spaces after + Expenses:misc 1 COM + Assets:checking diff --git a/test/spaces.dat b/test/spaces.dat deleted file mode 100644 index 1ada1b61..00000000 --- a/test/spaces.dat +++ /dev/null @@ -1,55 +0,0 @@ -; this file contains spaces after the payee and tag values. Ledger -; should ignore the trailing spaces for the purposes of determining -; unique values -; -; bug 584 and 550 reported trailing spaces being considered -; significant in payee and tag values. -; -; running -; ledger -f test/spaces.dat payees -; yielded two distinct payees, because utils.h/next_element() didn't -; handle a single space followed by a null correctly. -; -; running -; ledger -f test/spaces.dat reg --group-by "tag('test')" -; yielded four groups. - -2011/11/28 * test - ; no space after payee or tag value - Expenses:misc $1 ; test: spaces - Assets:checking - -2011/11/28 * test - ; single space after payee and tag value - Expenses:misc $2 ; test: spaces - Assets:checking - -2011/11/28 test - ; two spaces after payee and tag value - Expenses:misc $4 ; test: spaces - Assets:checking - -2011/11/28 test - ; three spaces after payee and tag value - Expenses:misc $8 ; test: spaces - Assets:checking - -2011/11/28 testcommodity - ; COM commodity has no space after - Expenses:misc 1 COM - Assets:checking - -2011/11/28 testcommodity - ; COM commodity has one space after - Expenses:misc 1 COM - Assets:checking - -2011/11/28 testcommodity - ; COM commodity has two spaces after - Expenses:misc 1 COM - Assets:checking - -2011/11/28 testcommodity - ; COM commodity has three spaces after - Expenses:misc 1 COM - Assets:checking diff --git a/tools/cleanup.sh b/tools/cleanup.sh new file mode 100755 index 00000000..29c243ad --- /dev/null +++ b/tools/cleanup.sh @@ -0,0 +1,5 @@ +#/bin/bash + +mv ledger3.texi keep-ledger3.texi +rm ledger3.* +mv keep-ledger3.texi ledger3.texi \ No newline at end of file diff --git a/tools/gendocs.sh b/tools/gendocs.sh new file mode 100755 index 00000000..55933b13 --- /dev/null +++ b/tools/gendocs.sh @@ -0,0 +1,5 @@ +#!/bin/bash +echo "===================================== Making Info..." +makeinfo ledger3.texi +echo "===================================== Making PDF..." +texi2pdf ledger3.texi diff --git a/tools/spellcheck.sh b/tools/spellcheck.sh new file mode 100755 index 00000000..ae86a3d6 --- /dev/null +++ b/tools/spellcheck.sh @@ -0,0 +1,3 @@ +#!/bin/sh + +aspell check --mode=texinfo ledger3.texi \ No newline at end of file -- cgit v1.2.3