build: Fixup patch script for tarball releases (#10) (#11)

modified:   patches/apply.sh

Co-authored-by: Agent_00Ming <agent00ming9366@gmail.com>
This commit is contained in:
Agent00Ming 2024-05-10 16:23:16 -04:00 committed by GitHub
parent 5c1d51c5a2
commit 411292daf3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -4,15 +4,15 @@
PATCHES=$(find patches/ -type f -name '*.patch')
apply () {
git apply $PATCH
patch -p1 -r /dev/null -N -s < $PATCH >/dev/null 2>&1 && echo NEW: \'$PATCH\'
}
check_applied () {
git apply --check --reverse -q $PATCH
patch -p1 -r /dev/null --dry-run -R -s < $PATCH >/dev/null 2>&1 && echo OK: \'$PATCH\'
}
fail () {
echo =======\> \'$PATCH\' was not applied && exit 1
echo FAILED: \'$PATCH\' NOT APPLICABLE && exit 1
}
if [ -n "$PATCHES" ];