mirror of
https://github.com/libretro/libretro-super
synced 2024-11-28 11:14:11 +00:00
64 lines
1.4 KiB
Bash
Executable File
64 lines
1.4 KiB
Bash
Executable File
#!/bin/sh
|
|
|
|
REPO_BASE="git://github.com"
|
|
|
|
# Keep three copies so we don't have to rebuild stuff all the time.
|
|
fetch_project_bsnes()
|
|
{
|
|
echo "=== Fetching $3 ==="
|
|
if [ -d "$2" ]; then
|
|
cd "$2"
|
|
git pull
|
|
cd ..
|
|
else
|
|
git clone "$REPO_BASE/$1" "$2"
|
|
fi
|
|
|
|
if [ -d "$2" ]; then
|
|
cd "$2"
|
|
|
|
if [ -d "perf" ]; then
|
|
cd perf
|
|
git pull ..
|
|
cd ..
|
|
else
|
|
git clone . perf
|
|
fi
|
|
|
|
if [ -d "compat" ]; then
|
|
cd perf
|
|
git pull ..
|
|
cd ..
|
|
else
|
|
git clone . compat
|
|
fi
|
|
|
|
cd ..
|
|
fi
|
|
}
|
|
|
|
fetch_project()
|
|
{
|
|
echo "=== Fetching $3 ==="
|
|
if [ -d "$2" ]; then
|
|
cd "$2"
|
|
git pull
|
|
cd ..
|
|
else
|
|
git clone "$REPO_BASE/$1" "$2"
|
|
fi
|
|
echo "=== Fetched ==="
|
|
}
|
|
|
|
|
|
fetch_project_bsnes "Themaister/libsnes.git" "libsnes" "libsnes/bSNES"
|
|
fetch_project "Themaister/snes9x-libsnes.git" "libsnes-s9x" "libsnes/SNES9x"
|
|
fetch_project "twinaphex/snes9x-next.git" "libsnes-s9x-next" "libsnes/SNES9x-Next"
|
|
fetch_project "twinaphex/genesis-next.git" "libsnes-genplus" "libsnes/Genplus GX"
|
|
fetch_project "twinaphex/fba-next-slim.git" "libsnes-fba" "libsnes/FBA"
|
|
fetch_project "twinaphex/vba-next.git" "libsnes-vba" "libsnes/VBA"
|
|
fetch_project "Themaister/bnes-libsnes.git" "libsnes-bnes" "libsnes/bNES"
|
|
fetch_project "twinaphex/fceu-next.git" "libsnes-fceu" "libsnes/FCEU"
|
|
fetch_project "Themaister/gambatte-libsnes.git" "libsnes-gambatte" "libsnes/Gambatte"
|
|
|