Update 2024-01-02 08:22 OpenBSD/amd64-x13

This commit is contained in:
c0dev0id
2024-01-02 08:22:26 +01:00
parent 47af094f94
commit f64dd05c28
9 changed files with 170 additions and 1 deletions

View File

@@ -0,0 +1,20 @@
#!/bin/sh
strip=0
clear
printf '\n---------------------------------------------------------------------\n'
egrep '^Index|^RCS|^diff --git|^file +' "$1" | sed 's,/cvs,/usr,g'
printf '---------------------------------------------------------------------\n\n'
printf "Path for patch [/usr/ports]? "
read _path
[ -z "$_path" ] && _path=/usr/ports
egrep -q '^diff --git a/' "$1" && strip=1
#print "Trying to apply patch"
#qprint -d "$1" "$1.out"
doas patch -Ep"$strip" -d $_path < "$1"
cd $_path && ksh