RetroDECK/rd-submodules/es-de/patch_helper.sh

31 lines
1.5 KiB
Bash
Raw Permalink Normal View History

2023-10-21 18:02:21 +00:00
#!/bin/bash
mkdir /tmp
2023-11-03 15:31:56 +00:00
branch="00a226062fff37209d98e0ab048ac89af50ecacc"
2023-10-21 18:02:21 +00:00
git clone "https://gitlab.com/es-de/emulationstation-de.git" /tmp/emulationstation-de
pushd .
cd /tmp/emulationstation-de
git checkout $branch
popd
mkdir patches-tmp
2023-11-03 15:31:56 +00:00
cp /tmp/emulationstation-de/es-app/src/guis/GuiMenu.cpp ./patches-tmp
cp /tmp/emulationstation-de/es-app/src/guis/GuiMenu.h ./patches-tmp
cp /tmp/emulationstation-de/es-app/src/views/ViewController.cpp ./patches-tmp
cp /tmp/emulationstation-de/es-core/src/Window.cpp ./patches-tmp
cp /tmp/emulationstation-de/es-app/src/guis/GuiThemeDownloader.cpp ./patches-tmp
2023-10-21 18:02:21 +00:00
read -p "Please edit the files in \"patches-tmp\" and press enter to continue."
2023-11-03 15:31:56 +00:00
diff -au1r /tmp/emulationstation-de/es-app/src/guis/GuiMenu.cpp ./patches-tmp/GuiMenu.cpp > GuiMenu.cpp.patch
diff -au1r /tmp/emulationstation-de/es-app/src/guis/GuiMenu.h ./patches-tmp/GuiMenu.h > GuiMenu.h.patch
diff -au1r /tmp/emulationstation-de/es-app/src/views/ViewController.cpp ./patches-tmp/ViewController.cpp > ViewController.cpp.patch
diff -au1r /tmp/emulationstation-de/es-core/src/Window.cpp ./patches-tmp/Window.cpp > Window.cpp.patch
diff -au1r /tmp/emulationstation-de/es-app/src/guis/GuiThemeDownloader.cpp ./patches-tmp/GuiThemeDownloader.cpp > GuiThemeDownloader.cpp.patch
2023-10-21 18:02:21 +00:00
2023-11-03 15:31:56 +00:00
rm -rf patches-tmp
echo "Done, now please remeber to edit the headers of the patch files with the correct paths."