libretro-super/libretro-install-win32.sh

59 lines
1.8 KiB
Bash
Raw Normal View History

2012-04-22 15:12:15 +00:00
#!/bin/sh
if [ -z "$1" ]; then
LIBRETRO_DIR="libretro"
else
LIBRETRO_DIR="$1"
fi
ARCH_EXT="$2"
if [ ! -d "$LIBRETRO_DIR" ]; then
mkdir -p "$LIBRETRO_DIR"
fi
LIBS=""
2013-01-15 11:24:05 +00:00
LIBS="$LIBS libretro-bsnes/libretro-092-bsnes-performance.dll"
LIBS="$LIBS libretro-bsnes/libretro-092-bsnes-balanced.dll"
LIBS="$LIBS libretro-bsnes/libretro-092-bsnes-accuracy.dll"
2012-04-22 15:12:15 +00:00
LIBS="$LIBS libretro-s9x/libretro-git-snes9x.dll"
LIBS="$LIBS libretro-s9x-next/libretro-git-snes9x-next.dll"
LIBS="$LIBS libretro-genplus/libretro-git-genplus.dll"
LIBS="$LIBS libretro-fba/libretro-git-fba.dll"
LIBS="$LIBS libretro-vba/libretro-git-vba.dll"
LIBS="$LIBS libretro-fceu/libretro-git-fceu.dll"
LIBS="$LIBS libretro-bnes/libretro-git-bnes.dll"
LIBS="$LIBS libretro-gambatte/libretro-git-gambatte.dll"
LIBS="$LIBS libretro-meteor/libretro-git-meteor.dll"
2012-08-28 08:07:58 +00:00
LIBS="$LIBS libretro-stella/libretro-git-stella.dll"
2012-10-31 20:05:58 +00:00
LIBS="$LIBS libretro-desmume/libretro-git-desmume.dll"
2013-03-02 08:36:28 +00:00
LIBS="$LIBS libretro-mednafen/libretro-0928-mednafen-psx.dll"
LIBS="$LIBS libretro-mednafen/libretro-0928-mednafen-pce-fast.dll"
LIBS="$LIBS libretro-mednafen/libretro-0928-mednafen-wswan.dll"
2013-01-10 13:51:06 +00:00
LIBS="$LIBS libretro-quicknes/libretro-git-quicknes.dll"
#note -not sure about what kind of versioning you're doing here - so just going to make an assumption
LIBS="$LIBS libretro-tyrquake/libretro-git-tyrquake.dll"
2013-02-17 11:23:00 +00:00
LIBS="$LIBS libretro-nestopia/libretro-144-nestopia.dll"
2012-04-22 15:12:15 +00:00
for lib in $LIBS
do
if [ -f $lib ]; then
install -v -m644 $lib "$LIBRETRO_DIR"
else
echo "Library $lib not found, skipping ..."
fi
done
cd "$LIBRETRO_DIR"
for file in `find . -name "*.dll"`
do
REGEX_MV="s|^\(.*\)\.dll$|\1-${ARCH_EXT}.dll|"
REGEX="s|^\(.*\)\.dll$|\1-${ARCH_EXT}.zip|"
FILENAME="`echo $file | sed -e $REGEX_MV`"
mv -v "$file" "$FILENAME"
zip "`echo $file | sed -e $REGEX`" "$FILENAME"
done