Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100755 19 lines (17 sloc) 0.465 kb
bfd2d1a @JNRowe Added patch reject to unified format patch script.
authored
1 #! /bin/sh
2 #Simply wrapper for generating unified format patches from patch rejects, for
3 # systems with a crappy userland or versions of GNU patch that don't support
4 # --reject-format
5
6 if [ -z "${1}" ]
7 then
8 echo "${0} <patchname>"
9 exit 255
10 else
11 patch=$1
12 fi
13 [ -f ${patch} ] && echo "Remove existing patch" && exit 1
14 for i in $(find -name \*.rej)
15 do
16 echo -e "*** ${i/.rej/}\n--- ${i/.rej/}"
17 cat $i
18 done | filterdiff -v --format=unified > ${patch}
Something went wrong with that request. Please try again.