summaryrefslogtreecommitdiff
path: root/pbs.in
diff options
context:
space:
mode:
authorLuke Shumaker <LukeShu@sbcglobal.net>2013-03-19 14:29:04 -0400
committerLuke Shumaker <LukeShu@sbcglobal.net>2013-03-19 14:29:04 -0400
commit9eff1e08b3e580d1e2a998af0243e27c8370c14e (patch)
treeb8d5df160dbc49d166553b81094fd8310e676e3d /pbs.in
parent21b3a17b9b3e0ab21354b22b8b4017380d0a39ea (diff)
Add pbs and pbs-help, to have it work like git
Diffstat (limited to 'pbs.in')
-rwxr-xr-xpbs.in21
1 files changed, 21 insertions, 0 deletions
diff --git a/pbs.in b/pbs.in
new file mode 100755
index 0000000..bf7cc27
--- /dev/null
+++ b/pbs.in
@@ -0,0 +1,21 @@
+#!/bin/bash
+
+if [[ -z PBS_PATH ]]; then
+ export PBS_PATH=@pbs-bindir@
+fi
+
+if [[ -z "$pbs_cmd" ]]; then
+ export pbs_cmd=$0
+ export pbs_short=${pbs_cmd##*/}
+ export PATH="$PBS_PATH:$PATH"
+fi
+
+main() {
+ if [[ $# < 1 ]]; then
+ pbs-help
+ return 1
+ fi
+ pbs-"$@"
+}
+
+main "$@"