radare2/mk/hg-utils.mk
pancake 66e2b1e359 * Initial support for the z80 CPU
- assembler, disassembler and basic code analysis
  - code analysis is very primitive atm
2012-02-04 03:51:22 +01:00

28 lines
916 B
Makefile

# radare :: pancake // nopcode.org
# Makefile helpers for mercurial
hg-miss:
${MAKE} hg-miss2 | grep -v sys| grep -v git| grep -v maemo
hg-miss2:
@-hg st . | grep -e vala$$ -e mk$$ | grep ^? | grep -v config-user | cut -c 2- || true
@-hg st . | grep -e \\.c$$ -e \\.h$$ | grep -v vapi | grep ^? | grep -v r_userconf | cut -c 2- || true
@-hg st . | grep -e \\.vapi$$ -e \\.acr$$ -e README$$ -e TODO$$ | grep ^? | cut -c 2- || true
FILES?=
hg-locdiff:
@A=`hg diff ${FILES} | grep -v '+++' | grep ^+ |wc -l` ; \
B=`hg diff ${FILES} | grep -v -- '---' | grep ^- |wc -l` ; \
echo $$((A-B))
hg-help:
@echo "hg-utils.mk mercurial utilities"
@echo "-----------.-------------------"
@echo "hg-miss | list interesting missing files"
@echo "hg-locdiff | count the difference of LOCs for current commit or FILES"
@echo " $$ hg-locdiff \"FILES=Makefile foo.c\""
hg-ci:
@hg diff > /tmp/diff
@hg ci