Merge branch 'charm' of charmgit:charm into harshitha/adaptive_lb
[charm.git] / src / arch / uth / charmrun
1 #!/bin/sh
2 #
3 # Just executes all its arguments.
4 PATH=.:$PATH
5 export PATH
6
7 args=""
8 pes=1
9 while [ $# -gt 0 ]
10 do
11         case $1 in
12         +p)
13                 pes=$2
14                 shift
15                 ;;
16         +p*)
17                 pes=`echo $1 | awk '{print substr($1,3)}'`
18                 ;;
19         *)
20                 args=$args" "$1
21                 ;;
22         esac
23         shift
24 done
25
26 $args +p$pes
27