mirror of https://github.com/AxioDL/metaforce.git
Add normalize_submodules script and normalize all submodule names
This commit is contained in:
parent
ad0affb11d
commit
4ef501bddc
|
@ -1,36 +1,36 @@
|
||||||
[submodule "nod"]
|
[submodule "extern/nod"]
|
||||||
path = extern/nod
|
path = extern/nod
|
||||||
url = ../nod.git
|
url = ../nod.git
|
||||||
branch = master
|
branch = master
|
||||||
[submodule "amuse"]
|
[submodule "extern/amuse"]
|
||||||
path = extern/amuse
|
path = extern/amuse
|
||||||
url = ../amuse.git
|
url = ../amuse.git
|
||||||
branch = master
|
branch = master
|
||||||
[submodule "kabufuda"]
|
[submodule "extern/kabufuda"]
|
||||||
path = extern/kabufuda
|
path = extern/kabufuda
|
||||||
url = ../kabufuda.git
|
url = ../kabufuda.git
|
||||||
branch = master
|
branch = master
|
||||||
[submodule "jbus"]
|
[submodule "extern/jbus"]
|
||||||
path = extern/jbus
|
path = extern/jbus
|
||||||
url = ../jbus.git
|
url = ../jbus.git
|
||||||
branch = master
|
branch = master
|
||||||
[submodule "assetnameparser/tinyxml2"]
|
[submodule "extern/tinyxml2"]
|
||||||
path = extern/tinyxml2
|
path = extern/tinyxml2
|
||||||
url = ../tinyxml2.git
|
url = ../tinyxml2.git
|
||||||
branch = master
|
branch = master
|
||||||
[submodule "sanitizers-cmake"]
|
[submodule "extern/sanitizers-cmake"]
|
||||||
path = extern/sanitizers-cmake
|
path = extern/sanitizers-cmake
|
||||||
url = https://github.com/arsenm/sanitizers-cmake.git
|
url = https://github.com/arsenm/sanitizers-cmake.git
|
||||||
branch = master
|
branch = master
|
||||||
[submodule "discord-rpc"]
|
[submodule "extern/discord-rpc"]
|
||||||
path = extern/discord-rpc
|
path = extern/discord-rpc
|
||||||
url = https://github.com/discordapp/discord-rpc.git
|
url = https://github.com/discordapp/discord-rpc.git
|
||||||
branch = master
|
branch = master
|
||||||
[submodule "rapidjson"]
|
[submodule "extern/rapidjson"]
|
||||||
path = extern/rapidjson
|
path = extern/rapidjson
|
||||||
url = https://github.com/Tencent/rapidjson.git
|
url = https://github.com/Tencent/rapidjson.git
|
||||||
branch = master
|
branch = master
|
||||||
[submodule "NESEmulator/fixNES"]
|
[submodule "extern/fixNES"]
|
||||||
path = extern/fixNES
|
path = extern/fixNES
|
||||||
url = https://github.com/FIX94/fixNES.git
|
url = https://github.com/FIX94/fixNES.git
|
||||||
branch = master
|
branch = master
|
||||||
|
@ -50,7 +50,7 @@
|
||||||
path = extern/libjpeg-turbo
|
path = extern/libjpeg-turbo
|
||||||
url = ../libjpeg-turbo.git
|
url = ../libjpeg-turbo.git
|
||||||
branch = thp
|
branch = thp
|
||||||
[submodule "zeus"]
|
[submodule "extern/zeus"]
|
||||||
path = extern/zeus
|
path = extern/zeus
|
||||||
url = ../zeus.git
|
url = ../zeus.git
|
||||||
branch = master
|
branch = master
|
||||||
|
|
|
@ -0,0 +1,29 @@
|
||||||
|
#! /bin/bash
|
||||||
|
|
||||||
|
origin=$(git remote get-url origin)
|
||||||
|
origin_base=${origin%/*}
|
||||||
|
|
||||||
|
for sub in "extern/amuse" \
|
||||||
|
"extern/boo" \
|
||||||
|
"extern/jbus" \
|
||||||
|
"extern/kabufuda" \
|
||||||
|
"extern/libjpeg-turbo" \
|
||||||
|
"extern/libpng" \
|
||||||
|
"extern/libSquish" \
|
||||||
|
"extern/nod" \
|
||||||
|
"extern/tinyxml2" \
|
||||||
|
"extern/xxhash" \
|
||||||
|
"extern/zeus"; do
|
||||||
|
if [ -d $sub ]; then
|
||||||
|
pushd $sub > /dev/null
|
||||||
|
sub_name=$(basename $sub)
|
||||||
|
popd > /dev/null
|
||||||
|
echo "Changing url for submodule ${sub} to https://github.com/AxioDL/${sub_name}.git"
|
||||||
|
git config submodule.$sub.url https://github.com/AxioDL/$sub_name.git
|
||||||
|
git submodule init $sub
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
|
||||||
|
echo Updating submodules
|
||||||
|
git submodule update --init --recursive
|
||||||
|
echo Done
|
Loading…
Reference in New Issue