From 9eff1e08b3e580d1e2a998af0243e27c8370c14e Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Tue, 19 Mar 2013 14:29:04 -0400 Subject: Add pbs and pbs-help, to have it work like git --- pbs.in | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100755 pbs.in (limited to 'pbs.in') 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 "$@" -- cgit v1.2.3