#!/bin/csh # srcdiff # Script to diff source sets. Dumps to standard out # Inputs: Input file(s) spec, Path1, Path2 # if($#argv < 3) then set prog=$0 echo "\n" echo "Compare all files in filespec from path1 to path2" echo "Output is sent to standard out\n" echo "Usage: $0:t 'filespec' path1 path2" echo "\nExample: $0:t '*.c' /g/oasis/src /h/src/controller > diff.out" echo ' compares all c files in the two specified directories' echo ' and dumps the data to diff.out' echo "\n" exit(0) endif set infiles="$1" set path1=$2 set path2=$3 cd $path1 foreach file ( $infiles ) echo "Procecessing " $file diff -w $file $path2/$file echo "\n\n" end