Update 2024-12-25 14:31 OpenBSD/amd64-t14

This commit is contained in:
c0dev0id
2024-12-25 14:31:11 +01:00
parent 3e58a36599
commit 346463127c
10 changed files with 187 additions and 110 deletions

View File

@@ -1,20 +0,0 @@
#!/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