head	1.2;
access;
symbols
	charm6_1:1.2
	charm_6_0_1:1.2
	charm6_0_1:1.2
	charm6_0:1.2
	ChaNGa_1-0:1.2
	charm5_9:1.2
	charm_5-4-2:1.2
	charm_5-4-1:1.2;
locks; strict;
comment	@# @;


1.2
date	2001.02.25.04.30.54;	author gzheng;	state Exp;
branches;
next	1.1;

1.1
date	2000.12.11.09.31.58;	author milind;	state Exp;
branches;
next	;


desc
@@


1.2
log
@charmrun move ++ options at end of command line.
machine.c add ++p like in net-version.
@
text
@#!/bin/sh
#
# Just executes all its arguments.
# but move ++ options after the program.
PATH=.:$PATH
export PATH

args=""
cmd=""

while [ $# -gt 0 ]
do 
	case $1 in
	+p)
		args=$args" "$1" "$2
		shift
		;;
	+p*)
		args=$args" "$1
		;;
	++*)
		args=$args" "$1
		;;
	*)
		cmd=$cmd" "$1
		;;
	esac
	shift
done

echo "$cmd $args"
$cmd $args
@


1.1
log
@Added trivial charmruns.
@
text
@d4 1
d7 26
a32 1
$*
@

