libretro-super/libsnes-fetch.sh

64 lines
1.4 KiB
Bash
Raw Normal View History

2011-11-02 15:27:23 +00:00
#!/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"
2011-11-08 20:20:44 +00:00
fetch_project "twinaphex/snes9x-next.git" "libsnes-s9x-next" "libsnes/SNES9x-Next"
2011-11-02 15:27:23 +00:00
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"