citrun

watch C/C++ source code execute
Log | Files | Refs | LICENSE

commit a53f93d968a1a77928e6e3e1ca5dac476e364617
parent 5b32375a57be655863c914f554336bdfebbd85b6
Author: Kyle Milz <kyle@0x30.net>
Date:   Sat,  2 Jul 2016 17:16:39 -0600

bin: let citrun-wrap take -v

Diffstat:
Mbin/Jamfile | 2+-
Mbin/citrun-wrap.in | 5+++++
2 files changed, 6 insertions(+), 1 deletion(-)

diff --git a/bin/Jamfile b/bin/Jamfile @@ -8,7 +8,7 @@ rule Generate actions Generate { - sed -e s,%PREFIX%,$(PREFIX), < $(2) > $(1) ; + sed -e s,%PREFIX%,$(PREFIX), -e s,%GIT_HASH%,`git rev-parse --short HEAD`, < $(2) > $(1) ; chmod 755 $(1) ; } diff --git a/bin/citrun-wrap.in b/bin/citrun-wrap.in @@ -1,5 +1,10 @@ #!/bin/sh +if [ "${1}" = "-v" ]; then + echo %GIT_HASH% + exit 0 +fi + export CITRUN_PATH="%PREFIX%/share/citrun" export PATH="$CITRUN_PATH:$PATH"