diff --git a/doc/Makefile.am b/doc/Makefile.am index 226b9d9f29..08b8bd795e 100644 --- a/doc/Makefile.am +++ b/doc/Makefile.am @@ -39,7 +39,7 @@ EXTRA_DIST = \ ## the sed substitutions. gnc-prices.1: gnc-prices.1.in rm -f $@.tmp - sed < $< > $@.tmp \ + ${SED} < $< > $@.tmp \ -e 's:@-VERSION-@:${VERSION}:g' \ -e 's:@-DATE-@:$(shell date +'%B %Y'):g' chmod +x $@.tmp @@ -47,7 +47,7 @@ gnc-prices.1: gnc-prices.1.in gnucash.1: gnucash.1.in rm -f $@.tmp - sed < $< > $@.tmp \ + ${SED} < $< > $@.tmp \ -e 's:@-VERSION-@:${VERSION}:g' \ -e 's:@-DATE-@:$(shell date +'%B %Y'):g' chmod +x $@.tmp @@ -55,7 +55,7 @@ gnucash.1: gnucash.1.in tip_of_the_day.list: tip_of_the_day.list.in gcc -E -P -x c -D'N_(x)=x' -o $@.tmp $< - cat -s $@.tmp | sed -e 's/^ *\"\(.*\)\" *$$/\1/m' > $@ + cat -s $@.tmp | ${SED} -e 's/^ *\"\(.*\)\" *$$/\1/m' > $@ rm -f $@.tmp DISTCLEANFILES = gnc-prices.1 gnucash.1 tip_of_the_day.list diff --git a/doc/RAW-NOTES b/doc/RAW-NOTES deleted file mode 100644 index 3a00fc29db..0000000000 --- a/doc/RAW-NOTES +++ /dev/null @@ -1,82 +0,0 @@ -/** \page rawnotes Miscellaneous Notes. - -\section stock splits & cost basis - -OK, here's a question for accountants of various different countries: -What's the cost basis for a stock split? Does the rest of the world do -it the way the US does it? - -For example: -In Jan 1995 buy 100s stock for $10 per share -In July 1997 split 2-for-1 -In August 1997, sell 120s stock for $30 per share - -I believe the following is correct for the united states: -My cost basis is $5 per share, and my gains of $25x120 are taxable -as long-term cap gains. - ---- would there ever be a case where the cost basis should be $10 for - the first 100 shares, and $0 for the remainder? ---- would there ever be a case where the gains would be considered - 'short-term' for some portion of the total? - -\subsection Spin off stocks. - -OK, that was easy. Here's the harder one: a spin-off: - -For example: -In Jan 1995 buy 100s of stock A for $10 per share -In July 1997 receive 1s of stock B for every 20s of stock A. -Stock B is new, and will trade under its own new ticker symbol -as of the date of this split. - --- What's my cost basis for B? is it $0.000 ? --- What's my cost basis for A? is it $10, or something else? --- Are these questions supposed to be answered by company A, - or do I just 'guess'? - -Note there is still an invarient: -(old price of A) * 20s == (new price of A) *20s + (price of B) * 1s - -\section Depreciation, Sinking Funds ... - -On 21 Apr 2000 20:39:43 CDT, the world broke into rejoicing as -John Hasler said: -\verbatim -> Lauren writes: -> > I'm not familliar with sinking funds, but what makes them a bit different -> > from a book entry like depreciation (also somewhat virtual) is that they -> > are happening with real accounts that need to be reconciled against an -> > outside statement. -> -> I don't see that. While the purpose of a sinking fund may be to pay off -> some bonds in ten years and there may even exist a legal obligation to have -> it, the funds being transferred to it now have nothing to do with any -> outside statement. -> -> A sinking fund to pay off some bonds is pretty much the same thing as -> saving up to pay off the balloon payment on the morgage. -> -> When you transfer funds to your "Savings Goal" or your "Sinking Fund" you -> are transferring funds from one asset account to another. Just credit -> 'Cash' and debit 'Savings Goals:Honeymoon'. -\endvarbatim - -The problem with proceeding to credit Cash and debit "Savings Goal" is -that this invalidates any reconciliation of Cash. I'd be game to do -this if I credited not Cash, but rather "Cash:Goals", a subaccount of -Cash that can be ignored when it needs to be, - -For different purposes, I will want both to consider and ignore these -"funds reservations." - -- When making up a budget, I care about what funds are reserved for - particular purposes. - -- When trying to figure out if my bank account is going to be -overdrawn, "reserved" funds are irrelevant. - -I would thus suggest that the "gentle user" use the budget system to -manage this rather than having these be "true" transactions in the -ledger. -*/ diff --git a/doc/README.build-system b/doc/README.build-system index 136c850bfb..6321e059b7 100644 --- a/doc/README.build-system +++ b/doc/README.build-system @@ -14,7 +14,8 @@ possible, if you make a mistake when working on the Makefile.am's to leave yourself in a situation where automake won't work because a Makefile is broken. To fix this, just run: - ./autogen.sh + ./autogen.sh + ./configure That should sledgehammer the problem bit back into place. @@ -57,6 +58,10 @@ according to the following rule: This approach guarantees that the variables referred to will be properly expanded at the right times. +Note that on OSX, you MUST have the GNU version of sed installed +via fink - the BSD version installed by default will not work with +some of the substitution operators used in the gnucash build. + The only non-Makefiles files that must be handled directly by AC_OUTPUT are files that refer to variables that, when expanded, may have makefile-hostile characters like '#' in them like