0
Fork 0
mirror of https://codeberg.org/librewolf/source.git synced 2025-01-03 03:10:07 -05:00

finished check-patchfail.sh

This commit is contained in:
Bert van der Weerd 2022-04-11 11:35:30 +02:00
parent b942c5d032
commit a43b4640b0
No known key found for this signature in database
GPG key ID: 4CFABB96ADE0F5B1

View file

@ -1,5 +1,3 @@
set -e
tmpdir="tmpdir92"
if [ ! -f version ]; then
@ -26,17 +24,33 @@ cd firefox-$(cat ../version)
echo ""
echo "Testing patches..."
echo ""
for i in $(cat ../../assets/patches.txt); do
echo $i:
patch -p1 -i ../../$i
patch -R -p1 -i ../../$i
echo ""
echo "==> $i:"
echo ""
patch $* -p1 -i ../../$i > ../patch.tmp
cat ../patch.tmp
s=""
for j in $(grep -n rej$ ../patch.tmp | awk '{ print $(NF); }'); do
s="$s $j"
done
s=$s
if [ ! -z "$s" ]; then
echo ""
for k in $s; do
echo "--> $s:"
cat $s
done
fi
rm -f ../patch.tmp
#patch -R -p1 -i ../../$i
done
cd ../..
echo ""
echo "Removing '$tmpdir'..."
rm -rf $tmpdir
echo ""
echo "All patches succeeded."
exit 0