void-packages/srcpkgs/ibus-avro/patches/autocorrect.patch
Đoàn Trần Công Danh 986c0a7d5e srcpkgs/i*: convert patches to -Np1
```sh
git grep -l '^patch_args=-Np0' "srcpkgs/$1*/template" |
while read template; do
	for p in ${template%/template}/patches/*; do
		sed -i '
			\,^[+-][+-][+-] /dev/null,b
			/^[*-]\+ [0-9]\+\(,[0-9]\+\)\? [*-]\+$/b
			s,^[*][*][*] ,&a/,
			/^--- /{
				s,\(^--- \)\(./\)*,\1a/,
				s,[.][Oo][Rr][Ii][Gg]\([	/]\),\1,
				s/[.][Oo][Rr][Ii][Gg]$//
				s/[.]patched[.]\([^.]\)/.\1/
				h
			}
			/^+++ -/{
				g
				s/^--- a/+++ b/
				b
			}
			s,\(^+++ \)\(./\)*,\1b/,
		' "$p"
	done
	sed -i '/^patch_args=/d' $template
done
```
2021-06-20 13:17:29 +07:00

13 lines
336 B
Diff

diff --git autocorrect.js autocorrect.js
index 61dbeda..0579d20 100644
--- a/autocorrect.js
+++ b/autocorrect.js
@@ -866,6 +866,8 @@ var db =
"home": "hOm",
"hostel": "hOsTel",
"hotel": "hOTel",
+ "hothat": "hoThat``",
+ "hoThat": "hoThat``",
"hotkey": "hoT-ki",
"howra": "haORa",
"howrah": "haORa",