mirror of
https://github.com/radareorg/radare2.git
synced 2024-12-11 06:55:01 +00:00
17 lines
419 B
Makefile
17 lines
419 B
Makefile
sloc:
|
|
@if [ -n "$${SLOCDIR}" ]; then cd $$SLOCDIR ; fi ; \
|
|
total=0 ; \
|
|
for a in `find * -iname '*.c'`; do \
|
|
lines=$$(sloccount $$a |grep ansic= | cut -d ' ' -f 1) ; \
|
|
printf "$$lines\t$$a\n" ; \
|
|
total=$$(($$total+$$lines)) ; \
|
|
done ; \
|
|
printf "$$total\tTOTAL\n"
|
|
|
|
locdiff:
|
|
@A=`git diff | grep -v +++ | grep ^+ |wc -l` ; \
|
|
B=`git diff | grep -v -- ---| grep ^- |wc -l` ; \
|
|
echo $$((A-B))
|
|
|
|
.PHONY: sloc locdiff
|