radare2/mk/hg-utils.mk
pancake 6c28274aa0 * Implement static plugins for r_io
- Prefix all plugins with 'io_' (like in the rest of libs)
  - Statify io_dbg and io_ptrace IO plugins
* Added _free methods for r_io and r_debug. Oops
* Initial dummy version of r_debug.vapi
* More stuff in the debug/t/main.c (not yet working)
* Better hg-miss missing file detection checks

--HG--
rename : libr/io/p/dbg.c => libr/io/p/io_dbg.c
rename : libr/io/p/ewf.c => libr/io/p/io_ewf.c
rename : libr/io/p/malloc.c => libr/io/p/io_malloc.c
rename : libr/io/p/ptrace.c => libr/io/p/io_ptrace.c
rename : libr/io/p/shm.c => libr/io/p/io_shm.c
2009-08-22 03:11:33 +00:00

22 lines
833 B
Makefile

# radare :: pancake // nopcode.org
# Makefile helpers for mercurial
hg-miss:
@-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$$ | grep ^? | cut -c 2- || true
@-hg st . | grep -e \\.acr$$ | 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\""