feat: improve patch updating #2
1 changed files with 6 additions and 1 deletions
7
apatch
7
apatch
|
@ -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
|
|
||||||
|
|
Loading…
Reference in a new issue