feat: improve patch updating #2

Merged
ptrcnull merged 1 commit from :overwrite-patch into master 2024-10-16 21:31:16 +00:00

7
apatch
View file

@ -1,5 +1,11 @@
#!/bin/sh #!/bin/sh
cleanup() {
rm -rf src-old
}
trap 'cleanup' EXIT INT HUP
startdir="$PWD" startdir="$PWD"
[ -f APKBUILD ] || ( echo "please run this in a package directory"; exit 1 ) [ -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 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