summaryrefslogtreecommitdiffstats
path: root/bridge/bin
diff options
context:
space:
mode:
authortv <tv@iiso>2011-09-27 15:04:13 +0200
committertv <tv@iiso>2011-09-27 15:11:31 +0200
commitf305a70357d95f7e069fe852df30859e0557ac56 (patch)
tree277e690511a1a5df781c95abc3d9d8f484d841b9 /bridge/bin
parent4c5a56ef5a49f6e045b1718b4e05c4f92f1247c4 (diff)
//bridge bin/*: add synopses and shi-
Diffstat (limited to 'bridge/bin')
-rwxr-xr-xbridge/bin/bridge11
1 files changed, 9 insertions, 2 deletions
diff --git a/bridge/bin/bridge b/bridge/bin/bridge
index 6ae4ab11..33cf4577 100755
--- a/bridge/bin/bridge
+++ b/bridge/bin/bridge
@@ -1,5 +1,12 @@
#! /bin/sh
+#
+# Interface to the bridge commands.
+#
+# See commands below $bindir
+#
set -euf
-command="$1"; shift
+
bindir="$(dirname $(readlink -f "$0"))/../lib/bridge/bin"
-exec "$bindir/$command" "$@"
+cmd="$bindir/$1"; shift
+
+exec "$cmd" "$@"