summaryrefslogtreecommitdiff
path: root/pkgthing/pkgthing
diff options
context:
space:
mode:
Diffstat (limited to 'pkgthing/pkgthing')
-rwxr-xr-xpkgthing/pkgthing14
1 files changed, 14 insertions, 0 deletions
diff --git a/pkgthing/pkgthing b/pkgthing/pkgthing
new file mode 100755
index 0000000..9439461
--- /dev/null
+++ b/pkgthing/pkgthing
@@ -0,0 +1,14 @@
+#!/bin/sh
+name='pkgthing'
+export datadir=/usr/src/local/pkgthing
+
+srcdir=/usr/src
+
+case "$1" in
+ find) shift; bash $datadir/find $@;;
+ search) shift; bash $datadir/search $@;;
+
+ -v|-V|--version) make -C "$srcdir" version;;
+ -h|-H|--help) make -C "$srcdir" help;;
+ *) make -C "$srcdir" $1;;
+esac