summaryrefslogtreecommitdiff
path: root/pkgthing/src/pkgthing.sh
diff options
context:
space:
mode:
Diffstat (limited to 'pkgthing/src/pkgthing.sh')
-rw-r--r--pkgthing/src/pkgthing.sh15
1 files changed, 15 insertions, 0 deletions
diff --git a/pkgthing/src/pkgthing.sh b/pkgthing/src/pkgthing.sh
new file mode 100644
index 0000000..38c5ae5
--- /dev/null
+++ b/pkgthing/src/pkgthing.sh
@@ -0,0 +1,15 @@
+#!/bin/sh
+name='pkgthing'
+ver=@ver@
+export libexecdir=@libexecdir@
+
+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