diff options
author | Luke Shumaker <LukeShu@sbcglobal.net> | 2013-03-19 14:29:04 -0400 |
---|---|---|
committer | Luke Shumaker <LukeShu@sbcglobal.net> | 2013-03-19 14:29:04 -0400 |
commit | 9eff1e08b3e580d1e2a998af0243e27c8370c14e (patch) | |
tree | b8d5df160dbc49d166553b81094fd8310e676e3d /pbs.in | |
parent | 21b3a17b9b3e0ab21354b22b8b4017380d0a39ea (diff) |
Add pbs and pbs-help, to have it work like git
Diffstat (limited to 'pbs.in')
-rwxr-xr-x | pbs.in | 21 |
1 files changed, 21 insertions, 0 deletions
@@ -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 "$@" |