separated out rule and date logic. WIP: flattening the data, absolute from fuzzy dates, comparing dates

This commit is contained in:
aj
2010-11-03 23:33:06 -07:00
parent 188f31d543
commit e9d247784e
13 changed files with 401 additions and 61 deletions

View File

@@ -1,22 +1,24 @@
ERLC_WARNINGS = -W1
MNESIA_DIR = db
RUN_INIT =
DEBUG = +debug_info -Ddebug
TEST =
ERLC_WARNINGS := -W1
MNESIA_DIR := db
RUN_INIT :=
DEBUG := +debug_info -Ddebug
TEST :=
TZSET := northamerica
SHELL := /bin/bash
all : clean compile
nowarn : ERLC_WARNINGS = -W0
nowarn : clean compile
test : ERLC_WARNINGS = -W0
test : ERLC_WARNINGS := -W0
test : TEST := -DTEST
test : all
erlc $(ERLC_WARNINGS) $(TEST) -o ./ebin ./tests/*.erl
erl -noshell -pa ebin -s test_master start -s erlang halt
erlc $(ERLC_WARNINGS) $(TEST) -o ./ebin ./test/*.erl
erl -noshell -pa ebin -run test all -s erlang halt
compile :
erlc $(DEBUG) $(ERLC_WARNINGS) $(OPTIONS) -o ./ebin ./src/*.erl
erlc $(DEBUG) $(TEST) $(ERLC_WARNINGS) $(OPTIONS) -o ./ebin ./src/*.erl
-erl -noshell -pa ebin -s erldev make_app . -s erlang halt
clean :
@@ -27,4 +29,17 @@ run :
erl -pa ebin -mnesia dir $(MNESIA_DIR) $(RUN_INIT)
build : DEBUG =
build : all
build : all
devstart : RUN_INIT = -s ezic dev_start
devstart : all run
tzdata :
-cat priv/tzdata/$(TZSET) | sed '/\s*\#/d' | sed '/^\s*$$/d' | less -S
diff :
-git diff > /tmp/ezic.tmp.diff
emacs /tmp/ezic.tmp.diff