Merge branch 'charm' of charmgit:charm into charm
[charm.git] / src / arch / multicore / charmrun
1
2 args=""
3
4 while [ $# -gt 0 ]
5 do
6         case $1 in
7         +p|+ppn)     args=$args" "$1" "$2
8                 shift;
9                 shift
10                 ;;
11         ++ppn)  echo please use +ppn instead of ++ppn
12                 exit 1
13                 ;;
14         +*)
15                 args=$args" "$1
16                 shift
17                 ;;
18         *)
19                 break;
20                 ;;
21         esac
22 done
23
24 echo Running command: $* $args
25 echo
26
27 exec $* $args