3 # Print diffs for each _FILE / ~/.FILE pair
6 # Create the diff between a pair of files
8 # handleFile( $file, $dotfile )
11 # file - The file we're processing '_foo'
12 # dotfile - The file it should be linked to in ~/, e.g. '.foo'
13 function handleFile( )
18 # See if we can find any _files.
22 found=`expr $found + 1`
26 # If we found none then exit
27 if [ "$found" -lt 1 ]; then
28 echo "WARNING: No files matching _* were found"
32 # For each file in this directory.
34 # Create .dotfile version.
37 if [ ! -e ~/$dotfile ]; then
38 echo "~/$dotfile doesn't exist"
41 handleFile $i ~/$dotfile