DESC="Generate puma configureation with alternate filename and use it afterwards"
main(){
	if  ( ${AGCC} --gen_config -o my.config);then true;else
		ERR_MSG="Failed executing '${AGCC} --gen_config -o my.config'";
		return 0;
	fi;

	if [ ! -f my.config ];then
		ERR_MSG="Puma configuration file was not created";
		return 0;
	fi;
	
	if  ( ${AGCC} -p src -v2 --weave_only --config my.config  src/main.cc );then true;else
		ERR_MSG="Failed executing '${AGCC}  -v2 --weave_only --config my.config  src/main.cc'";
		return 0;
	fi;
	
	rm -f my.config src/main.acc
	
	return 1;
}
