void-packages/srcpkgs/vapoursynth-editor/patches/project-file.patch
Đoàn Trần Công Danh 76acfa2dd2 srcpkgs/v*: convert patches to -Np1
```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

20 lines
723 B
Diff

diff --git pro/pro.pro pro/pro.pro
index d698c82..cbc4f61 100644
--- a/pro/pro.pro
+++ b/pro/pro.pro
@@ -1,9 +1,9 @@
TEMPLATE = subdirs
-SUBDIRS += vsedit
-SUBDIRS += vsedit-job-server
-SUBDIRS += vsedit-job-server-watcher
+SUBDIRS += pro/vsedit
+SUBDIRS += pro/vsedit-job-server
+SUBDIRS += pro/vsedit-job-server-watcher
-vsedit.file = ./vsedit/vsedit.pro
-vsedit-job-server.file = ./vsedit-job-server/vsedit-job-server.pro
-vsedit-job-server-watcher.file = ./vsedit-job-server-watcher/vsedit-job-server-watcher.pro
+vsedit.file = pro/vsedit/vsedit.pro
+vsedit-job-server.file = pro/vsedit-job-server/vsedit-job-server.pro
+vsedit-job-server-watcher.file = pro/vsedit-job-server-watcher/vsedit-job-server-watcher.pro