blob: 428bd8ac0d442d6c431636cb112b26ccb8f77ab0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
#!/bin/bash
# This script is used to create patch files.
# Current working directory should contain two subdirectories:
# * "org" — with oryginal GTK3 code,
# * "mod" — with modified GTK3 code.
# Patch file is saved under name specified by first argument.
if [[ -d ./org/gtk ]] && [[ -d ./mod/gtk ]] && [[ $1 ]]; then
# Save.
diff -U 25 -r -Z -B ./org/gtk ./mod/gtk > "$1.patch"
# Preview.
reset; diff --color=always -U 25 -r -Z -B ./org/gtk ./mod/gtk
fi
|