yate/tools/mkpatch.sh
paulc 6a8ff126f0 Added some usefull tools.
git-svn-id: http://yate.null.ro/svn/yate/trunk@328 acf43c95-373e-0410-b603-e72c3f656dc1
2005-05-05 14:50:34 +00:00

10 lines
251 B
Bash
Executable file

#!/bin/sh
#
# Use:
# cd base-source-directory
# mkpatch >file.patch
# Before editing files create copies with .orig extension
# cp -p somefile.c somefile.c.orig
find . -name '*.orig' -exec echo diff -u {} {} \; | sed 's+\.orig$++' | /bin/sh