#!/bin/sh make_patch() { name=$1 patch=patch-z-${name}.patch cd ${name} echo -n > ../${patch} for d in *.orig .*.orig ; do diff -urN $d `echo $d | perl -p -e 's/\.orig$//'` >> ../${patch} done cd .. } mv max_filesize/htaccess.txt max_filesize/.htaccess mv max_filesize/htaccess.txt.orig max_filesize/.htaccess.orig make_patch max_filesize mv max_filesize/.htaccess max_filesize/htaccess.txt mv max_filesize/.htaccess.orig max_filesize/htaccess.txt.orig make_patch addr-realname-quotes