summaryrefslogtreecommitdiff
path: root/pbs.in
blob: bf7cc27f29ded9739142b26a9e4836f2992b9635 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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 "$@"