#!/home/nahaj/bin/rebuild # We have files we get from many sources, such as: treedir.cgi <= /home/nahaj/bin/htmldir.cgi.selfcontained newevaluate.cgi <= ../logic/newevaluator.perl # They are all programs we may need to update. define PROGRAMS as treedir.cgi newevaluate.cgi # but in all cases we handle them the same, make a backup # copy the new one over, and fix permissions. all <= {PROGRAMS} {PROGRAMS} <= => mv {target} {target}.old => cp {parents} {target} => chmod u=rwx,og= {target}