Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 75e487d4c6
Fetching contributors…

Cannot retrieve contributors at this time

executable file 19 lines (17 sloc) 0.465 kb
#! /bin/sh
#Simply wrapper for generating unified format patches from patch rejects, for
# systems with a crappy userland or versions of GNU patch that don't support
# --reject-format
if [ -z "${1}" ]
then
echo "${0} <patchname>"
exit 255
else
patch=$1
fi
[ -f ${patch} ] && echo "Remove existing patch" && exit 1
for i in $(find -name \*.rej)
do
echo -e "*** ${i/.rej/}\n--- ${i/.rej/}"
cat $i
done | filterdiff -v --format=unified > ${patch}
Jump to Line
Something went wrong with that request. Please try again.