65749575ab
```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 ```
30 lines
695 B
Diff
30 lines
695 B
Diff
--- a/lmon16m.c 2019-04-19 14:59:07.091281022 -0500
|
|
+++ b/lmon16m.c 2019-04-19 15:01:58.550285273 -0500
|
|
@@ -61,7 +61,7 @@
|
|
#include <fcntl.h>
|
|
#include <math.h>
|
|
#include <time.h>
|
|
-#include <sys/errno.h>
|
|
+#include <errno.h>
|
|
#include <sys/types.h>
|
|
#include <sys/stat.h>
|
|
#include <sys/ioctl.h>
|
|
@@ -70,6 +70,10 @@
|
|
#include <sys/socket.h>
|
|
#include <sys/wait.h>
|
|
|
|
+#ifndef __STRING
|
|
+#define __STRING(x) #x
|
|
+#endif
|
|
+
|
|
/* Windows moved here so they can be cleared when the screen mode changes */
|
|
WINDOW *padwelcome = NULL;
|
|
WINDOW *padtop = NULL;
|
|
@@ -583,7 +587,6 @@
|
|
int isroot = 0;
|
|
|
|
#include <mntent.h>
|
|
-#include <fstab.h>
|
|
#include <sys/stat.h>
|
|
#include <sys/statfs.h>
|
|
#include <net/if.h>
|