0
Fork 0
mirror of https://codeberg.org/librewolf/source.git synced 2024-12-22 21:53:31 -05:00
LibreWolf/check-patchfail.sh
Bert van der Weerd a43e824804
bugfixes
2022-04-11 07:01:53 +02:00

42 lines
656 B
Bash
Executable file

set -e
tmpdir="tmpdir92"
if [ ! -f version ]; then
echo "error: 'version' does not exist. Are you in the right folder?"
exit 1
fi
firefox=firefox-$(cat version).source.tar.xz
if [ ! -f "$firefox" ]; then
echo "error: '$firefox' does not exist."
exit 1
fi
echo "[debug] firefox file = '$firefox'"
echo "[debug] tmpdir = '$tmpdir'"
echo ""
rm -rf $tmpdir
mkdir $tmpdir
cd $tmpdir
tar xf ../$firefox
cd firefox-$(cat ../version)
for i in $(cat assets/patches.txt); do
echo $i:
patch -p1 -i ../../$i
patch -R -p1 -i ../../$i
done
cd ../..
rm -rf $tmpdir
echo ""
echo "check-patchfail.sh: All patches succeeded."
exit 0