summaryrefslogtreecommitdiff
path: root/scripts/probe.sh
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/probe.sh')
-rw-r--r--scripts/probe.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/scripts/probe.sh b/scripts/probe.sh
new file mode 100644
index 00000000..70867cdb
--- /dev/null
+++ b/scripts/probe.sh
@@ -0,0 +1,7 @@
+set -e
+
+var=$1
+shift
+if "$@" 2>/dev/null ; then
+ echo "#define $var 1"
+fi