hledger/hledger-web
Simon Michael f03b020e2f set version with CPP instead of cabal-file-th; make building more robust
hledger and hledger-web were reading their version number (and program
name) from their cabal files at compile time using cabal-file-th,
which allowed the version number be maintained in one place (per
package).

This meant you had to be in same directory as the cabal file when
building, which made life more complicated, eg emacs compilation mode
could not jump to errors. Also, it slowed down building slightly, and
is a factor in hledger Debian packages being unavailable on a number
of platforms (we also use TH for report templates).

Now, the build version is set with a CPP VERSION flag, which seems
simpler overall. For cabal builds, this needs to be configured
manually in a few more places in each cabal file. For makefile builds,
it is set it to the name of the most recent darcs tag (which should be
more useful than the old behaviour). If not set, it defaults to the
blank string, useful eg for haddock. And, all makefile builds now run
from the top directory.
2012-10-13 19:21:17 +00:00
..
Hledger set version with CPP instead of cabal-file-th; make building more robust 2012-10-13 19:21:17 +00:00
static web: production build now has all web content embedded, dev build uses ./static (#63) 2011-09-12 23:30:29 +00:00
devel.hs web: make "yesod devel" work 2012-03-30 19:31:53 +00:00
hledger-web.cabal set version with CPP instead of cabal-file-th; make building more robust 2012-10-13 19:21:17 +00:00
hledger-web.hs web: don't auto-create a missing journal file at startup 2012-06-29 22:48:41 +00:00
LICENSE packagegeddon.. split off web/chart/vty, move hledger to a subdir 2010-09-09 22:54:34 +00:00
models web: more yesod 0.8 migration; adopt the scaffolding app's layout, slightly simplified 2011-05-24 04:27:37 +00:00
routes web: bump version, upgrade to yesod 0.10 2012-03-05 07:52:36 +00:00
Setup.hs Setup.hs is needed after all, by hackage 2011-09-02 00:29:50 +00:00