feat: improve patch updating #2

Merged
ptrcnull merged 1 commit from :overwrite-patch into master 2024-10-16 21:31:16 +00:00
Showing only changes of commit 9a6ac8303b - Show all commits

7
apatch
View file

@ -1,5 +1,11 @@
#!/bin/sh
cleanup() {
rm -rf src-old
}
trap 'cleanup' EXIT INT HUP
startdir="$PWD"
[ -f APKBUILD ] || ( echo "please run this in a package directory"; exit 1 )
@ -32,4 +38,3 @@ done
)
busybox diff -U3 -r "src-old$builddir" "src$builddir" | sed "s|src-old$builddir|a|g;s|src$builddir|b|g" > $1
rm -rf src-old