void-packages/srcpkgs/rix/patches/fixes.patch
Đoàn Trần Công Danh 103ab731ab srcpkgs/r*: convert patches to -Np1
* runit is kept at -Np0

```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

21 lines
441 B
Diff

--- a/rixc.h
+++ b/rixc.h
@@ -15,6 +15,7 @@
void defineRSLSymbols(Object *);
+Object *directive(char *key, char *value);
Object *findByName(char *name);
Object *findFunctionByFullName(char *name);
--- a/rix.l
+++ b/rix.l
@@ -5,7 +5,7 @@
#include "ObjectTree.h"
#include "rix.tab.h" /* Generated by bison. */
#include "rixc.h"
-#include "error.h"
+#include "errors.h"
#define INSERT_BUFF_LEN 1024
#define INDENT_STACK_MAX 512