libretro-super/libretro-fetch.sh

173 lines
7.9 KiB
Bash
Raw Normal View History

2013-12-09 01:10:42 +00:00
#!/bin/bash
2011-11-02 15:27:23 +00:00
2013-05-01 21:45:21 +00:00
. ./libretro-config.sh
2011-11-02 15:27:23 +00:00
# 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 $1 "$2"
2011-11-02 15:27:23 +00:00
fi
if [ -d "$2" ]; then
cd "$2"
if [ -d "perf" ]; then
cd perf
git pull ..
cd ..
else
git clone . perf
fi
2013-01-15 11:24:05 +00:00
if [ -d "balanced" ]; then
cd balanced
2011-11-02 15:27:23 +00:00
git pull ..
cd ..
else
2013-01-15 11:24:05 +00:00
git clone . balanced
2011-11-02 15:27:23 +00:00
fi
cd ..
fi
}
fetch_project()
{
echo "=== Fetching $3 ==="
if [ -d "$2" ]; then
cd "$2"
git pull
cd ..
else
git clone "$1" "$2"
2011-11-02 15:27:23 +00:00
fi
echo "=== Fetched ==="
}
fetch_subproject()
{
echo "=== Fetching $4 ==="
cd "$2"
if [ -d "$3" ]; then
cd "$3"
git pull
cd ..
else
git clone "$1" "$3"
fi
cd ..
echo "=== Fetched ==="
}
fetch_subprojects()
{
echo "=== Fetching $5 ==="
cd "$2"
cd "$3"
if [ -d "$4" ]; then
cd "$4"
git pull
cd ..
else
git clone "$1" "$4"
fi
cd ..
cd ..
echo "=== Fetched ==="
}
fetch_project_submodule()
{
echo "=== Fetching $3 ==="
if [ -d "$2" ]; then
cd "$2"
git pull
cd ..
else
git clone "$1" "$2"
cd "$2"
git submodule update --init
cd ..
fi
echo "=== Fetched ==="
}
if [ -z $WRITERIGHTS ]; then
REPO_BASE="https://github.com"
else
REPO_BASE="git://github.com"
fi
2011-11-02 15:27:23 +00:00
fetch_project "$REPO_BASE/libretro/RetroArch.git" "retroarch" "libretro/RetroArch"
fetch_subprojects "$REPO_BASE/libretro/common-shaders.git" "retroarch" "media" "shaders" "libretro/common-shaders"
fetch_subprojects "$REPO_BASE/libretro/common-overlays.git" "retroarch" "media" "overlays" "libretro/common-overlays"
fetch_subprojects "$REPO_BASE/libretro/retroarch-assets.git" "retroarch" "media" "assets" "libretro/retroarch-assets"
fetch_subprojects "$REPO_BASE/libretro/retroarch-joypad-autoconfig.git" "retroarch" "media" "autoconfig" "libretro/joypad-autoconfig"
fetch_project_bsnes "git://gitorious.org/bsnes/bsnes.git --branch libretro" "libretro-bsnes" "libretro/bSNES"
fetch_project "$REPO_BASE/libretro/snes9x.git" "libretro-s9x" "libretro/SNES9x"
2012-06-03 19:36:01 +00:00
fetch_project "$REPO_BASE/libretro/snes9x-next.git" "libretro-s9x-next" "libretro/SNES9x-Next"
2012-08-11 18:06:51 +00:00
fetch_project "$REPO_BASE/libretro/Genesis-Plus-GX.git" "libretro-genplus" "libretro/Genplus GX"
2012-06-03 19:36:01 +00:00
fetch_project "$REPO_BASE/libretro/fba-libretro.git" "libretro-fba" "libretro/FBA"
fetch_project "$REPO_BASE/libretro/vba-next.git" "libretro-vba-next" "libretro/VBA Next"
fetch_project "$REPO_BASE/libretro/vbam-libretro.git" "libretro-vbam" "libretro/VBA-M"
2013-08-26 19:34:09 +00:00
fetch_project "$REPO_BASE/libretro/libretro-handy.git" "libretro-handy" "libretro/Handy"
2012-06-03 19:36:01 +00:00
fetch_project "$REPO_BASE/libretro/bnes-libretro.git" "libretro-bnes" "libretro/bNES"
fetch_project "$REPO_BASE/libretro/libretro-fceumm.git" "libretro-fceumm" "libretro/FCEUmm"
2012-06-03 19:36:01 +00:00
fetch_project "$REPO_BASE/libretro/gambatte-libretro.git" "libretro-gambatte" "libretro/Gambatte"
fetch_project "$REPO_BASE/libretro/meteor-libretro.git" "libretro-meteor" "libretro/Meteor"
fetch_project "$REPO_BASE/libretro/nxengine-libretro.git" "libretro-nx" "libretro/NX"
fetch_project "$REPO_BASE/libretro/libretro-prboom.git" "libretro-prboom" "libretro/PRBoom"
2012-11-08 22:55:59 +00:00
fetch_project "$REPO_BASE/libretro/stella-libretro.git" "libretro-stella" "libretro/Stella"
2014-04-27 21:11:37 +00:00
fetch_project "$REPO_BASE/libretro/desmume.git" "libretro-desmume" "libretro/Desmume"
2013-01-10 13:33:48 +00:00
fetch_project "$REPO_BASE/libretro/QuickNES_Core.git" "libretro-quicknes" "libretro/QuickNES"
2013-01-16 08:08:42 +00:00
fetch_project "$REPO_BASE/libretro/nestopia.git" "libretro-nestopia" "libretro/Nestopia"
fetch_project "$REPO_BASE/libretro/tyrquake.git" "libretro-tyrquake" "libretro/tyrquake"
fetch_project "$REPO_BASE/libretro/pcsx_rearmed.git" "libretro-pcsx-rearmed" "libretro/pcsx_rearmed"
2014-06-22 21:34:25 +00:00
fetch_project "$REPO_BASE/libretro/beetle-gba-libretro.git" "libretro-beetle-gba" "libretro/Beetle GBA"
2014-06-22 22:41:47 +00:00
fetch_project "$REPO_BASE/libretro/beetle-lynx-libretro.git" "libretro-beetle-lynx" "libretro/Beetle Lynx"
2014-06-22 03:13:43 +00:00
fetch_project "$REPO_BASE/libretro/beetle-ngp-libretro.git" "libretro-beetle-ngp" "libretro/Beetle NGP"
fetch_project "$REPO_BASE/libretro/beetle-pce-fast-libretro.git" "libretro-beetle-pce-fast" "libretro/Beetle PCE Fast"
fetch_project "$REPO_BASE/libretro/beetle-supergrafx-libretro.git" "libretro-beetle-supergrafx" "libretro/Beetle SuperGrafx"
fetch_project "$REPO_BASE/libretro/beetle-psx-libretro.git" "libretro-beetle-psx" "libretro/Beetle PSX"
fetch_project "$REPO_BASE/libretro/beetle-pcfx-libretro.git" "libretro-beetle-pcfx" "libretro/Beetle PCFX"
2014-06-22 23:50:36 +00:00
fetch_project "$REPO_BASE/libretro/beetle-bsnes-libretro.git" "libretro-beetle-bsnes" "libretro/Beetle bSNES"
2014-06-22 03:13:43 +00:00
fetch_project "$REPO_BASE/libretro/beetle-vb-libretro.git" "libretro-beetle-vb" "libretro/Beetle VB"
fetch_project "$REPO_BASE/libretro/beetle-wswan-libretro.git" "libretro-beetle-wswan" "libretro/Beetle WSwan"
2013-05-01 00:14:58 +00:00
fetch_project "$REPO_BASE/libretro/scummvm.git" "libretro-scummvm" "libretro/scummvm"
fetch_project "$REPO_BASE/libretro/yabause.git" "libretro-yabause" "libretro/yabause"
fetch_project "$REPO_BASE/libretro/dosbox-libretro.git" "libretro-dosbox" "libretro/dosbox"
fetch_project "$REPO_BASE/libretro/virtualjaguar-libretro.git" "libretro-virtualjaguar" "libretro/virtualjaguar"
2013-06-09 02:20:29 +00:00
fetch_project "$REPO_BASE/libretro/mame2003-libretro.git" "libretro-mame078" "libretro/mame078"
2013-09-06 19:22:54 +00:00
fetch_project "$REPO_BASE/libretro/mame2010-libretro.git" "libretro-mame139" "libretro/mame139"
2014-03-29 14:36:25 +00:00
fetch_project "$REPO_BASE/libretro/libretro-mame.git" "libretro-mame" "libretro/mame"
fetch_project "$REPO_BASE/libretro/scenewalker-libretro.git" "libretro-gl-scenewalker" "libretro/SceneWalker"
fetch_project "$REPO_BASE/libretro/modelviewer-libretro.git" "libretro-gl-modelviewer" "libretro/ModelViewer"
2013-12-20 15:20:05 +00:00
fetch_project "$REPO_BASE/libretro/modelviewer-location-libretro.git" "libretro-gl-modelviewer-location" "libretro/ModelViewer-Location"
fetch_project "$REPO_BASE/libretro/FFmpeg.git" "libretro-ffmpeg" "libretro/FFmpeg"
2013-06-28 22:53:14 +00:00
fetch_project "$REPO_BASE/libretro/bsnes-libretro-cplusplus98.git" "libretro-bsnes-cplusplus98" "libretro/bsnes-cplusplus98"
2014-06-30 17:39:56 +00:00
fetch_project "$REPO_BASE/libretro/bsnes-mercury.git" "libretro-bsnes-mercury" "libretro/bsnes-mercury"
fetch_project_submodule "$REPO_BASE/libretro/picodrive.git" "libretro-picodrive" "libretro/picodrive"
2013-09-27 12:29:49 +00:00
fetch_project "$REPO_BASE/libretro/tgbdual-libretro.git" "libretro-tgbdual" "libretro/tgbdual"
fetch_project "$REPO_BASE/libretro/mupen64plus-libretro.git" "libretro-mupen64plus" "libretro/mupen64plus"
fetch_project "$REPO_BASE/libretro/instancingviewer-libretro-gl.git" "libretro-gl-instancingviewer" "libretro/instancingviewer"
fetch_project "$REPO_BASE/libretro/instancingviewer-camera.git" "libretro-gl-instancingviewer-camera" "libretro/instancingviewer-camera"
fetch_project "$REPO_BASE/libretro/Dinothawr.git" "libretro-dinothawr" "libretro/Dinothawr"
2014-05-06 13:48:49 +00:00
fetch_project "$REPO_BASE/libretro/hatari-libretro.git" "libretro-hatari" "libretro/Hatari"
2013-11-29 14:32:31 +00:00
fetch_project "$REPO_BASE/libretro/libretro-uae.git" "libretro-uae" "libretro/UAE"
fetch_project "$REPO_BASE/libretro/libretro-3dengine.git" "libretro-3dengine" "libretro/3DEngine"
2014-02-13 15:47:31 +00:00
fetch_project "$REPO_BASE/libretro/libretro-remotejoy.git" "libretro-remotejoy" "libretro/RemoteJoy"
fetch_project "$REPO_BASE/libretro/blueMSX-libretro.git" "libretro-bluemsx" "libretro/blueMSX"
fetch_project "$REPO_BASE/libretro/fmsx-libretro.git" "libretro-fmsx" "libretro/fmsx"
2014-07-22 17:55:12 +00:00
fetch_project "$REPO_BASE/libretro/libretro-2048.git" "libretro-2048" "libretro/2048"
2014-07-23 03:06:35 +00:00
fetch_project "$REPO_BASE/libretro/libretro-vecx.git" "libretro-vecx" "libretro/vecx"
fetch_project "$REPO_BASE/libretro/libretro-manifest.git" "libretro-manifest" "libretro/libretro-manifest"
fetch_project_submodule "$REPO_BASE/libretro/ppsspp.git" "libretro-ppsspp" "libretro/ppsspp"
2014-08-08 16:38:20 +00:00
fetch_project "$REPO_BASE/libretro/prosystem-libretro.git" "libretro-prosystem" "libretro/prosystem"
2014-08-14 19:50:16 +00:00
fetch_project "$REPO_BASE/libretro/libretro-o2em.git" "libretro-o2em" "libretro/o2em"