We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7a9566b commit b10b5f3Copy full SHA for b10b5f3
1 file changed
pzdiff
@@ -0,0 +1,17 @@
1
+#!/bin/bash
2
+
3
+OLD="${1}"
4
+NEW="${2}"
5
+PATCH="${3}"
6
7
+if [ -z "${OLD}" ] || [ -z "${NEW}" ] || [ -z "${PATCH}" ] || ! [ -d "${OLD}" ] || ! [ -d "${NEW}" ]; then
8
+ echo
9
+ echo "Usage: ${0} <old> <new> <output>"
10
11
+ echo "Example:"
12
+ echo " ${0} ./sources/40.43 ./sources/41.56 patch-40.43_41.56.diff"
13
14
+ exit
15
+fi
16
17
+diff -bBNpruw "${OLD}" "${NEW}" > "${PATCH}"
0 commit comments