summaryrefslogtreecommitdiffstats
path: root/bld/pkg-wrapper
diff options
context:
space:
mode:
Diffstat (limited to 'bld/pkg-wrapper')
-rwxr-xr-xbld/pkg-wrapper11
1 files changed, 11 insertions, 0 deletions
diff --git a/bld/pkg-wrapper b/bld/pkg-wrapper
new file mode 100755
index 0000000..4f3b76b
--- /dev/null
+++ b/bld/pkg-wrapper
@@ -0,0 +1,11 @@
+#!/bin/sh
+
+search=$1
+shift
+
+if grep "^\#.*define.*$search" config.h 2>&1 >/dev/null || \
+ grep $search 2>&1 >/dev/null ; then
+ exec $*
+fi
+
+