mirror of
https://codeberg.org/librewolf/source.git
synced 2025-01-18 02:12:30 -05:00
update fix-patch.sh
This commit is contained in:
parent
0bdb7a98dd
commit
60461a1c32
1 changed files with 15 additions and 4 deletions
|
@ -24,12 +24,23 @@ make "firefox-$version.source.tar.xz"
|
||||||
tar xf "firefox-$version.source.tar.xz"
|
tar xf "firefox-$version.source.tar.xz"
|
||||||
cd "firefox-$version"
|
cd "firefox-$version"
|
||||||
|
|
||||||
echo "-> Settings up git"
|
echo "-> Setting up git"
|
||||||
git init
|
git init
|
||||||
files="$(cat ../$1 | grep '+++ b/' | sed 's/\+\+\+ b\///')"
|
files="$(cat ../$1 | grep '+++ b/' | sed 's/\+\+\+ b\///')"
|
||||||
echo "$files" | xargs touch
|
echo "$files" | xargs touch
|
||||||
echo "$files" | xargs git add
|
echo "$files" | xargs git add
|
||||||
|
|
||||||
echo "-> Done"
|
echo "-> Trying to apply patch"
|
||||||
echo "You can now apply the patch with:"
|
patch -p1 -i "../$1"
|
||||||
echo " cd 'firefox-$version' && patch -p1 -i '$(readlink -f ../$1)'"
|
|
||||||
|
echo "-> Done. You can now fix the patch. If you are done,"
|
||||||
|
echo " press enter to update the patch with your changes"
|
||||||
|
echo " or Ctrl+C to abort."
|
||||||
|
read
|
||||||
|
|
||||||
|
echo "-> Updating patch"
|
||||||
|
git diff >"../$1"
|
||||||
|
|
||||||
|
echo "-> Cleaning up"
|
||||||
|
cd ..
|
||||||
|
rm -rf "firefox-$version"
|
Loading…
Add table
Reference in a new issue