200bed5c06
```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 ```
26 lines
585 B
Diff
26 lines
585 B
Diff
--- a/tty.c.bck 2016-09-14 08:12:52.517706416 -0400
|
|
+++ b/tty.c 2016-09-14 08:13:29.218260165 -0400
|
|
@@ -50,10 +50,8 @@
|
|
#ifdef SOLARIS
|
|
#include <strings.h>
|
|
#endif
|
|
-#ifdef __GLIBC__
|
|
/* msf - added for glibc/rh 5.0 */
|
|
#include <pty.h>
|
|
-#endif
|
|
|
|
#include "x10.h"
|
|
#include "process.h"
|
|
--- a/tty_aux.c.bck 2016-09-14 08:19:51.568551550 -0400
|
|
+++ b/tty_aux.c 2016-09-14 08:20:11.046306417 -0400
|
|
@@ -50,10 +50,8 @@
|
|
#ifdef SOLARIS
|
|
#include <strings.h>
|
|
#endif
|
|
-#ifdef __GLIBC__
|
|
/* msf - added for glibc/rh 5.0 */
|
|
#include <pty.h>
|
|
-#endif
|
|
|
|
#include <sys/socket.h>
|
|
#include <netdb.h>
|