aboutsummaryrefslogtreecommitdiffstats
path: root/diff-all.sh
diff options
context:
space:
mode:
Diffstat (limited to 'diff-all.sh')
-rwxr-xr-xdiff-all.sh27
1 files changed, 27 insertions, 0 deletions
diff --git a/diff-all.sh b/diff-all.sh
new file mode 100755
index 000000000000..a986dcd6dbb7
--- /dev/null
+++ b/diff-all.sh
@@ -0,0 +1,27 @@
+#!/bin/bash
+WG="/home/zx2c4/Projects/WireGuard"
+SELF="$(readlink -f "${BASH_SOURCE[0]}")"
+IT="${SELF%/*}"
+
+diff_it() {
+ local base="$1"
+ local foreign="$2"
+ local file="$3"
+
+ file="${file#"$base"}"
+ [[ -f $base/$file && -f $foreign/$file ]] && git --no-pager diff --color=always --no-index "$base/$file" "$foreign/$file"
+}
+
+for i in "$WG/src"/*.c "$WG/src"/*.h; do
+ diff_it "$WG/src" "$IT/drivers/net/wireguard" "$i"
+done
+for i in $(find "$WG/src/selftest" -type f); do
+ diff_it "$WG/src/selftest" "$IT/drivers/net/wireguard/selftest" "$i"
+done
+for i in $(find "$WG/src/crypto/zinc" -type f); do
+ diff_it "$WG/src/crypto/zinc" "$IT/lib/zinc" "$i"
+done
+for i in $(find "$WG/src/crypto/include/zinc" -type f); do
+ diff_it "$WG/src/crypto/include/zinc" "$IT/include/zinc" "$i"
+done
+diff_it "$WG/src/tests" "$IT/tools/testing/selftests/wireguard" "netns.sh"