Compare commits

...

4 commits

Author SHA1 Message Date
Heinz N. Gies
2bcf00402d Fix hiding truecolor 2017-06-14 21:57:32 +02:00
Heinz N. Gies
5d1a3c6783 Merge branch 'master' of github.com:project-fifo/cf 2017-06-14 21:44:51 +02:00
Heinz N. Gies
52f39d9be0 Merge pull request #2 from binarin/erlang-mk-workaround
Add `compile` target to Makefile
2017-03-22 18:48:27 +01:00
Alexey Lebedeff
2ea1755cf2 Add compile target to Makefile
To make it usable with stock version of `erlang.mk`.

I'm trying to use `cf` from withing erlang.mk-based project, but it
fails to properly autopatch it. erlang.mk magic works properly when
Makefile contains some references to `rebar`.

Proper fix will be available within
https://github.com/ninenines/erlang.mk/issues/586

But currently it's far more easier to add single target to this project,
than to delve into shell script/make spaghetti =)
2016-08-02 14:06:37 +03:00
2 changed files with 9 additions and 5 deletions

View file

@ -14,6 +14,9 @@ clean:
[ -f termtypes.master ] && rm termtypes.master || true [ -f termtypes.master ] && rm termtypes.master || true
[ -f termtypes.master.clean ] && rm termtypes.master.clean || true [ -f termtypes.master.clean ] && rm termtypes.master.clean || true
compile:
rebar3 compile
termtypes.master.clean: termtypes.master termtypes.master.clean: termtypes.master
cat termtypes.master | grep -v '^#' | grep -v '^\s*$$' > termtypes.master.clean cat termtypes.master | grep -v '^#' | grep -v '^\s*$$' > termtypes.master.clean

View file

@ -118,16 +118,17 @@ cfmt(S) ->
cfmt(S, Enabled) -> cfmt(S, Enabled) ->
lists:flatten(cfmt_(S, Enabled)). lists:flatten(cfmt_(S, Enabled)).
cfmt_([$~, $!, $#, _R1, _R2, _G1, _G2, _B1, _B2 | S], false) ->
cfmt_(S, false);
cfmt_([$~, $#, $#, _R1, _R2, _G1, _G2, _B1, _B2 | S], false) ->
cfmt_(S, false);
cfmt_([$~, $!, $_, _C | S], false) -> cfmt_([$~, $!, $_, _C | S], false) ->
cfmt_(S, false); cfmt_(S, false);
cfmt_([$~, $#, _C | S], false) -> cfmt_([$~, $#, _C | S], false) ->
cfmt_(S, false); cfmt_(S, false);
cfmt_([$~, $!, _C | S], false) -> cfmt_([$~, $!, _C | S], false) ->
cfmt_(S, false); cfmt_(S, false);
cfmt_([$~, $!, $#, _R1, _R2, _G1, _G2, _B1, _B2 | S], false) ->
cfmt_(S, false);
cfmt_([$~, $#, $#, _R1, _R2, _G1, _G2, _B1, _B2 | S], false) ->
cfmt_(S, false);
cfmt_([$~, $!, $#, R1, R2, G1, G2, B1, B2 | S], Enabled) -> cfmt_([$~, $!, $#, R1, R2, G1, G2, B1, B2 | S], Enabled) ->
R = list_to_integer([R1, R2], 16), R = list_to_integer([R1, R2], 16),