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
|
2013-05-01 02:11:22 +00:00
|
|
|
|
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 ==="
|
2014-08-19 18:09:25 +00:00
|
|
|
if [ -d "$2/.git" ]; then
|
2011-11-02 15:27:23 +00:00
|
|
|
cd "$2"
|
|
|
|
git pull
|
|
|
|
cd ..
|
|
|
|
else
|
2012-04-28 07:22:49 +00:00
|
|
|
git clone $1 "$2"
|
2011-11-02 15:27:23 +00:00
|
|
|
fi
|
|
|
|
|
|
|
|
if [ -d "$2" ]; then
|
|
|
|
cd "$2"
|
|
|
|
|
2014-08-19 18:09:25 +00:00
|
|
|
if [ -d "perf/.git" ]; then
|
2011-11-02 15:27:23 +00:00
|
|
|
cd perf
|
|
|
|
git pull ..
|
|
|
|
cd ..
|
|
|
|
else
|
|
|
|
git clone . perf
|
|
|
|
fi
|
|
|
|
|
2014-08-19 18:09:25 +00:00
|
|
|
if [ -d "balanced/.git" ]; then
|
2013-01-15 11:24:05 +00:00
|
|
|
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 ==="
|
2014-08-19 18:09:25 +00:00
|
|
|
if [ -d "$2/.git" ]; then
|
2011-11-02 15:27:23 +00:00
|
|
|
cd "$2"
|
|
|
|
git pull
|
|
|
|
cd ..
|
|
|
|
else
|
2014-05-27 16:00:39 +00:00
|
|
|
git clone "$1" "$2"
|
2011-11-02 15:27:23 +00:00
|
|
|
fi
|
|
|
|
echo "=== Fetched ==="
|
|
|
|
}
|
|
|
|
|
2014-08-13 09:02:33 +00:00
|
|
|
fetch_subprojects()
|
|
|
|
{
|
|
|
|
echo "=== Fetching $5 ==="
|
|
|
|
cd "$2"
|
|
|
|
cd "$3"
|
2014-08-19 18:09:25 +00:00
|
|
|
if [ -d "$4/.git" ]; then
|
2014-08-13 09:02:33 +00:00
|
|
|
cd "$4"
|
|
|
|
git pull
|
2014-08-24 12:59:34 +00:00
|
|
|
git submodule foreach git pull origin master
|
2014-08-13 09:02:33 +00:00
|
|
|
cd ..
|
|
|
|
else
|
|
|
|
git clone "$1" "$4"
|
|
|
|
fi
|
|
|
|
cd ..
|
|
|
|
cd ..
|
2014-08-07 00:09:27 +00:00
|
|
|
echo "=== Fetched ==="
|
|
|
|
}
|
|
|
|
|
2014-11-28 04:17:13 +00:00
|
|
|
fetch_project_submodule_no_update()
|
|
|
|
{
|
|
|
|
echo "=== Fetching $3 ==="
|
|
|
|
if [ -d "$2/.git" ]; then
|
|
|
|
cd "$2"
|
|
|
|
git pull
|
|
|
|
cd ..
|
|
|
|
else
|
|
|
|
git clone "$1" "$2"
|
|
|
|
cd "$2"
|
|
|
|
git submodule update --init
|
|
|
|
cd ..
|
|
|
|
fi
|
|
|
|
echo "=== Fetched ==="
|
|
|
|
}
|
|
|
|
|
2013-06-30 03:10:56 +00:00
|
|
|
fetch_project_submodule()
|
|
|
|
{
|
|
|
|
echo "=== Fetching $3 ==="
|
2014-08-19 18:09:25 +00:00
|
|
|
if [ -d "$2/.git" ]; then
|
2013-06-30 03:10:56 +00:00
|
|
|
cd "$2"
|
|
|
|
git pull
|
2014-08-24 12:59:34 +00:00
|
|
|
git submodule foreach git pull origin master
|
2013-06-30 03:10:56 +00:00
|
|
|
cd ..
|
|
|
|
else
|
|
|
|
git clone "$1" "$2"
|
2014-08-24 12:59:34 +00:00
|
|
|
cd "$2"
|
|
|
|
git submodule update --init
|
|
|
|
cd ..
|
2013-06-30 03:10:56 +00:00
|
|
|
fi
|
|
|
|
echo "=== Fetched ==="
|
|
|
|
}
|
|
|
|
|
2013-04-30 14:23:36 +00:00
|
|
|
if [ -z $WRITERIGHTS ]; then
|
|
|
|
REPO_BASE="https://github.com"
|
|
|
|
else
|
|
|
|
REPO_BASE="git://github.com"
|
|
|
|
fi
|
2011-11-02 15:27:23 +00:00
|
|
|
|
2013-07-14 15:57:38 +00:00
|
|
|
fetch_project "$REPO_BASE/libretro/RetroArch.git" "retroarch" "libretro/RetroArch"
|
2014-10-29 06:45:59 +00:00
|
|
|
fetch_subprojects "$REPO_BASE/libretro/common-shaders.git" "retroarch" "media" "shaders_cg" "libretro/common-shaders"
|
2014-08-13 09:02:33 +00:00
|
|
|
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"
|
2014-08-13 09:09:18 +00:00
|
|
|
fetch_subprojects "$REPO_BASE/libretro/retroarch-joypad-autoconfig.git" "retroarch" "media" "autoconfig" "libretro/joypad-autoconfig"
|
2014-09-27 14:09:11 +00:00
|
|
|
fetch_project "$REPO_BASE/libretro/bsnes-libretro.git" "libretro-bsnes" "libretro/bSNES"
|
2014-08-22 10:17:52 +00:00
|
|
|
fetch_project "$REPO_BASE/libretro/snes9x.git" "libretro-snes9x" "libretro/SNES9x"
|
|
|
|
fetch_project "$REPO_BASE/libretro/snes9x-next.git" "libretro-snes9x_next" "libretro/SNES9x-Next"
|
2014-08-22 10:28:27 +00:00
|
|
|
fetch_project "$REPO_BASE/libretro/Genesis-Plus-GX.git" "libretro-genesis_plus_gx" "libretro/Genplus GX"
|
2014-08-22 13:39:20 +00:00
|
|
|
fetch_project "$REPO_BASE/libretro/fba-libretro.git" "libretro-fb_alpha" "libretro/FBA"
|
2014-08-22 10:17:52 +00:00
|
|
|
fetch_project "$REPO_BASE/libretro/vba-next.git" "libretro-vba_next" "libretro/VBA Next"
|
2013-09-21 13:47:45 +00:00
|
|
|
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"
|
2014-04-14 03:53:23 +00:00
|
|
|
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"
|
2014-08-22 10:05:35 +00:00
|
|
|
fetch_project "$REPO_BASE/libretro/nxengine-libretro.git" "libretro-nxengine" "libretro/NX"
|
2012-06-03 19:36:01 +00:00
|
|
|
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"
|
2013-03-01 16:44:21 +00:00
|
|
|
fetch_project "$REPO_BASE/libretro/tyrquake.git" "libretro-tyrquake" "libretro/tyrquake"
|
2014-08-22 10:33:53 +00:00
|
|
|
fetch_project "$REPO_BASE/libretro/pcsx_rearmed.git" "libretro-pcsx_rearmed" "libretro/pcsx_rearmed"
|
2014-08-22 10:46:41 +00:00
|
|
|
fetch_project "$REPO_BASE/libretro/beetle-gba-libretro.git" "libretro-mednafen_gba" "libretro/Beetle GBA"
|
|
|
|
fetch_project "$REPO_BASE/libretro/beetle-lynx-libretro.git" "libretro-mednafen_lynx" "libretro/Beetle Lynx"
|
|
|
|
fetch_project "$REPO_BASE/libretro/beetle-ngp-libretro.git" "libretro-mednafen_ngp" "libretro/Beetle NGP"
|
|
|
|
fetch_project "$REPO_BASE/libretro/beetle-pce-fast-libretro.git" "libretro-mednafen_pce_fast" "libretro/Beetle PCE Fast"
|
|
|
|
fetch_project "$REPO_BASE/libretro/beetle-supergrafx-libretro.git" "libretro-mednafen_supergrafx" "libretro/Beetle SuperGrafx"
|
2014-12-03 10:38:51 +00:00
|
|
|
fetch_project "$REPO_BASE/libretro/beetle-psx-libretro.git" "libretro-beetle_psx" "libretro/Beetle PSX"
|
|
|
|
fetch_project "$REPO_BASE/libretro/mednafen-psx-libretro.git" "libretro-mednafen_psx" "libretro/Mednafen PSX"
|
2014-08-22 10:46:41 +00:00
|
|
|
fetch_project "$REPO_BASE/libretro/beetle-pcfx-libretro.git" "libretro-mednafen_pcfx" "libretro/Beetle PCFX"
|
|
|
|
fetch_project "$REPO_BASE/libretro/beetle-bsnes-libretro.git" "libretro-mednafen_snes" "libretro/Beetle bSNES"
|
|
|
|
fetch_project "$REPO_BASE/libretro/beetle-vb-libretro.git" "libretro-mednafen_vb" "libretro/Beetle VB"
|
|
|
|
fetch_project "$REPO_BASE/libretro/beetle-wswan-libretro.git" "libretro-mednafen_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-10-28 03:06:20 +00:00
|
|
|
fetch_project "$REPO_BASE/libretro/mame.git" "libretro-mame" "libretro/mame"
|
2014-05-03 20:00:26 +00:00
|
|
|
fetch_project "$REPO_BASE/libretro/FFmpeg.git" "libretro-ffmpeg" "libretro/FFmpeg"
|
2014-08-22 13:00:35 +00:00
|
|
|
fetch_project "$REPO_BASE/libretro/bsnes-libretro-cplusplus98.git" "libretro-bsnes_cplusplus98" "libretro/bsnes-cplusplus98"
|
2014-08-22 14:47:03 +00:00
|
|
|
fetch_project "$REPO_BASE/libretro/bsnes-mercury.git" "libretro-bsnes_mercury" "libretro/bsnes-mercury"
|
2013-10-31 15:13:24 +00:00
|
|
|
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"
|
2013-06-29 15:04:28 +00:00
|
|
|
fetch_project "$REPO_BASE/libretro/mupen64plus-libretro.git" "libretro-mupen64plus" "libretro/mupen64plus"
|
2013-09-23 02:03:55 +00:00
|
|
|
fetch_project "$REPO_BASE/libretro/Dinothawr.git" "libretro-dinothawr" "libretro/Dinothawr"
|
2013-11-29 14:32:31 +00:00
|
|
|
fetch_project "$REPO_BASE/libretro/libretro-uae.git" "libretro-uae" "libretro/UAE"
|
2014-01-13 13:53:10 +00:00
|
|
|
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"
|
2014-07-07 15:34:24 +00:00
|
|
|
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"
|
2014-07-28 06:04:12 +00:00
|
|
|
fetch_project "$REPO_BASE/libretro/libretro-manifest.git" "libretro-manifest" "libretro/libretro-manifest"
|
2014-08-19 10:54:45 +00:00
|
|
|
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"
|
2014-08-23 10:50:22 +00:00
|
|
|
fetch_project "$REPO_BASE/libretro/4do-libretro.git" "libretro-4do" "libretro/4do"
|
2014-10-29 21:01:38 +00:00
|
|
|
fetch_project "$REPO_BASE/libretro/CATSFC-libretro.git" "libretro-catsfc" "libretro/CATSFC"
|
2014-11-28 04:22:17 +00:00
|
|
|
fetch_project_submodule_no_update "$REPO_BASE/libretro/crawl-ref.git" "libretro-stonesoup" "libretro/DungeonCrawler StoneSoup"
|
|
|
|
fetch_project "$REPO_BASE/libretro/hatari.git" "libretro-hatari" "libretro/hatari"
|
2014-12-05 15:11:33 +00:00
|
|
|
fetch_project "$REPO_BASE/libretro/TempGBA-libretro.git" "libretro-tempgba" "libretro/TempGBA"
|
2014-12-09 13:19:19 +00:00
|
|
|
fetch_project "$REPO_BASE/libretro/gpsp.git" "libretro-gpsp" "libretro/gpsp"
|
2014-12-22 08:10:07 +00:00
|
|
|
fetch_project "$REPO_BASE/libretro/emux.git" "libretro-emux" "libretro/Emux"
|