~jasper/type_stack_calc

a712f2ea2a161686ea091d605038f801e0fe9f11 — Jasper den Ouden 9 months ago 6adca4f
Script wc.sh because doing that in makefile is annoying, also include bin/tsc.py
2 files changed, 6 insertions(+), 3 deletions(-)

M Makefile
A script/wc.sh
M Makefile => Makefile +3 -3
@@ 45,14 45,14 @@ visualizations: doc/data/class_rel.dot.png doc/data/module_bunches.dot.png doc/d

# Calculates raw LOCs.
wc:
	wc -l `find type_stack_calc/ -type f |grep -v '__pycache__\|/mess/\|/unused/'` | tail -n+2 | grep -vF total |sort -h
	script/wc.sh | sort -h

wc_xdiskusage: # 1K is infact one line.
	wc -l `find type_stack_calc/ -type f |grep -v '__pycache__\|/mess/\|/unused/'` | tail -n+2 | grep -vF total | xdiskusage -
	script/wc.sh | head -n -1 | xdiskusage -

wc_xdiskusage_ps: doc/data/wc_xdiskusage.ps

# NOTE: imagemagick convert refuses to convert to anything else.
#  (ideally the program could make .svg files..
doc/data/wc_xdiskusage.ps:  
	wc -l `find type_stack_calc/ -type f |grep -v '__pycache__\|/mess/\|/unused/'` | tail -n+2 | grep -vF total | xdiskusage -o "$@" -
	script/wc.sh | head -n -1 | xdiskusage -o "$@" -

A script/wc.sh => script/wc.sh +3 -0
@@ 0,0 1,3 @@
#!/usr/bin/bash

wc -l bin/tsc.py `find type_stack_calc/ -type f |grep -v '__pycache__\|/mess/\|/unused/'`