#!/bin/csh # By Michael VanLoon # # This script simply touches all the files that have just been received # via "sup -v" so they're assured to be newer than their .o files on the # next make. This makes a "make clean ; make depend" unnecessary in # *most* cases (there are other factors that at times might make a # "make clean ; make depend" a necessity in certain circumstances). # # Use at your own risk. No warranty implied. Mileage may vary. # Usage: suptouch suplogname if ( $#argv == 0 ) then echo "USAGE: suptouch filename [filename ...]" exit(1) endif set BASE="/usr" foreach infile ( $argv ) echo "Input File: $infile" foreach newfile ( `awk '/Receiving file/ {print $4}' $infile` ) echo " touching $BASE/$newfile" touch $BASE/$newfile end end