1#!/bin/sh
2
3diff_a_file()
4{
5  diff $1 $2 -q |grep differ |grep -v Makefile|awk '{\
6    split($2, old, "/"); \
7    split($4, new, "/"); \
8    print "diff -U200", $2, $4, "| awk \" NR>3 {print}\" >", new[1]"-"old[1]"-"new[2]".diff"}'
9  echo
10}
11
12diff_a_file s00 s01
13diff_a_file s01 s02
14diff_a_file s02 s03
15diff_a_file s03 s04
16diff_a_file s04 s05
17diff_a_file s05 s06
18diff_a_file s06 s07
19diff_a_file s07 s08
20diff_a_file s08 s09
21diff_a_file s09 s10
22diff_a_file s10 s11
23diff_a_file s11 s12
24diff_a_file s12 s13
25