open( $xml, "$xml_compiler -gotask gotask-imp-module=casaviewer output-gotask=$prefix/gotasks @xml_files 2>&1 |" ) or die "could not compile task xml files, into gotask wrappers";
@subst_files = ( "private/config.py" );
for $f ( @subst_files ) {
foreach $k ( keys %subst ) {
if ( -f $from || (-d $from && $from =~ m|/$|) ) {
$cmd = "rsync -aq $from $to";
$cmd = "rsync -aq $from/ $to";
open( RSYNC, "$cmd 2>&1 |" );
for ( <RSYNC> ) { print "\t>\t$_" }
my $name = basename($path);
my $dir = dirname($path);
if ( ! -f $path ) { die "protobuf spec, '$name', is not a file" }
m|^prefix=(.*)| && ( $prefix = $1, next );
m|^app=(.*)| && ( $app_path = $1, next );
m|^protoc=(.*)| && ( $protoc = $1, next );
m|^shutdown=(.*)| && ( $proto_shutdown = $1, next );
m|^ping=(.*)| && ( $proto_ping = $1, next );
m|^img=(.*)| && ( $proto_img = $1, next );