mkdiff.sh revision 048f6023
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"}' 9048f6023SShuo Chen} 10048f6023SShuo Chen 11048f6023SShuo Chendiff_a_file s00 s01 12048f6023SShuo Chendiff_a_file s01 s02 13048f6023SShuo Chendiff_a_file s02 s03 14048f6023SShuo Chendiff_a_file s03 s04 15048f6023SShuo Chendiff_a_file s04 s05 16048f6023SShuo Chendiff_a_file s05 s06 17