4f75cf25fd
```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 ```
13 lines
298 B
Diff
13 lines
298 B
Diff
Needed for __BEGIN_DECLS/__END_DECLS.
|
|
|
|
--- a/extern.h
|
|
+++ b/extern.h
|
|
@@ -17,6 +17,8 @@
|
|
#ifndef EXTERN_H
|
|
#define EXTERN_H
|
|
|
|
+#include <sys/cdefs.h>
|
|
+
|
|
/*
|
|
* This defines each one of the Texinfo commands that we understand.
|
|
* Obviously this only refers to native commands; overriden names are a
|