2023-03-13 17:34:56 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
2023-09-26 07:08:29 +00:00
|
|
|
# WARNING: DANGEROUS! Don't use this script lightly
|
2023-08-31 12:32:36 +00:00
|
|
|
|
2023-12-12 13:39:34 +00:00
|
|
|
git submodule deinit -f --all
|
2023-12-12 12:49:00 +00:00
|
|
|
|
2023-12-12 12:52:19 +00:00
|
|
|
rm -rf rd-submodules/retroarch
|
2023-03-13 17:34:56 +00:00
|
|
|
git rm -rf --cached rd-submodules/retroarch
|
|
|
|
rm -rf .git/modules/rd-submodules/retroarch
|
2023-12-12 12:49:00 +00:00
|
|
|
|
2023-12-12 12:52:19 +00:00
|
|
|
rm -rf rd-submodules/ryujinx
|
2023-12-12 11:25:19 +00:00
|
|
|
git rm -rf --cached rd-submodules/ryujinx
|
|
|
|
rm -rf .git/modules/rd-submodules/ryujinx
|
2023-12-12 12:49:00 +00:00
|
|
|
|
2023-12-12 11:35:57 +00:00
|
|
|
rm -rf rd-submodules/shared-modules
|
|
|
|
git rm -rf --cached rd-submodules/shared-modules
|
|
|
|
rm -rf .git/modules/rd-submodules/shared-modules
|
2023-03-13 17:34:56 +00:00
|
|
|
|
2023-12-12 13:39:34 +00:00
|
|
|
rm .gitmodules
|
|
|
|
|
2023-12-12 13:40:38 +00:00
|
|
|
# Do a commit here before giving the next commands
|
|
|
|
|
2023-12-12 11:35:57 +00:00
|
|
|
git submodule add https://github.com/flathub/shared-modules.git rd-submodules/shared-modules
|
2023-12-12 12:49:00 +00:00
|
|
|
git submodule add https://github.com/flathub/org.libretro.RetroArch.git rd-submodules/retroarch
|
2023-12-12 11:25:19 +00:00
|
|
|
git submodule add https://github.com/flathub/org.ryujinx.Ryujinx rd-submodules/ryujinx
|
2023-03-13 17:34:56 +00:00
|
|
|
|
2023-12-12 12:49:00 +00:00
|
|
|
git submodule init
|
2023-12-12 13:08:06 +00:00
|
|
|
git submodule update --remote --merge --recursive
|