A small and even almost smart shell script do automatically generate patch and compare codes.