4b97cd2fb4
```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 ```
11 lines
309 B
Diff
11 lines
309 B
Diff
--- a/src/IniConfig.cpp 2019-06-23 16:35:20.000000000 +0800
|
|
+++ b/src/IniConfig.cpp 2020-04-03 22:46:45.585216398 +0800
|
|
@@ -36,6 +36,7 @@
|
|
# include <sys/types.h>
|
|
# include <sys/stat.h> /* mkdir */
|
|
# include <dirent.h> /* opendir */
|
|
+# include <limits.h>
|
|
#else
|
|
# include <windows.h>
|
|
#endif
|
|
|