summaryrefslogtreecommitdiff
path: root/pbs.in
diff options
context:
space:
mode:
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 "$@"