DESC="Generate puma.config and weave source file afterwards"
main(){
	if  ( ${AGCC} --gen_config );then true;else
		ERR_MSG="Failed executing '${AGCC} --gen_config'";
		return 0;
	fi;

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

	
	return 1;
}
