#!/usr/bin/perl -w # do-one-make foo # # changes to directory /projects/compbio/experiments/protein-predict/casp6/foo # and does make there, then compresses the log of the make into make.log.gz. # # optional arguments for make can be added after the ID. ($id,@options) = @ARGV; $base = "/projects/compbio/experiments/protein-predict/casp6"; $dir = "$base/$id"; chdir $dir || die "Can't connect to directory $dir\n"; system("make -k ". join(" ", @options) . " >& make.log"); system("gzip -9f make.log");