117c057c3SShuo Chen#!/bin/sh 217c057c3SShuo Chen 3048f6023SShuo Chendiff_a_file() 4048f6023SShuo Chen{ 5048f6023SShuo Chen diff $1 $2 -q |grep differ |grep -v Makefile|awk '{\ 6048f6023SShuo Chen split($2, old, "/"); \ 7048f6023SShuo Chen split($4, new, "/"); \ 8048f6023SShuo Chen print "diff -U200", $2, $4, "| awk \" NR>3 {print}\" >", new[1]"-"old[1]"-"new[2]".diff"}' 9a1bde736SShuo Chen echo 10048f6023SShuo Chen} 11048f6023SShuo Chen 12048f6023SShuo Chendiff_a_file s00 s01 13048f6023SShuo Chendiff_a_file s01 s02 14048f6023SShuo Chendiff_a_file s02 s03 15048f6023SShuo Chendiff_a_file s03 s04 16048f6023SShuo Chendiff_a_file s04 s05 17048f6023SShuo Chendiff_a_file s05 s06 18714cd85fSShuo Chendiff_a_file s06 s07 191bc8a9dfSShuo Chendiff_a_file s07 s08 2013e937ffSShuo Chendiff_a_file s08 s09 21e254a845SShuo Chendiff_a_file s09 s10 2204e5c324SShuo Chendiff_a_file s10 s11 23f4e8e3d3SShuo Chendiff_a_file s11 s12 2470523619SShuo Chendiff_a_file s12 s13 25