2011-11-02 15:27:23 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
if [ -z "$1" ]; then
|
2012-04-16 17:33:18 +00:00
|
|
|
LIBRETRO_DIR="/usr/local/lib/libretro"
|
2011-11-02 15:27:23 +00:00
|
|
|
else
|
2012-04-16 17:33:18 +00:00
|
|
|
LIBRETRO_DIR="$1"
|
2011-11-02 15:27:23 +00:00
|
|
|
fi
|
|
|
|
|
2012-04-22 15:12:15 +00:00
|
|
|
if [ ! -d "$LIBRETRO_DIR" ]; then
|
2012-04-16 17:33:18 +00:00
|
|
|
mkdir -p "$LIBRETRO_DIR"
|
2011-11-02 15:27:23 +00:00
|
|
|
fi
|
|
|
|
|
|
|
|
LIBS=""
|
2012-04-16 19:12:36 +00:00
|
|
|
LIBS="$LIBS libretro-bsnes/libretro-bsnes-performance.so"
|
2013-01-15 11:24:05 +00:00
|
|
|
LIBS="$LIBS libretro-bsnes/libretro-bsnes-balanced.so"
|
2012-04-16 19:12:36 +00:00
|
|
|
LIBS="$LIBS libretro-bsnes/libretro-bsnes-accuracy.so"
|
2012-04-16 17:33:18 +00:00
|
|
|
LIBS="$LIBS libretro-s9x/libretro-snes9x.so"
|
|
|
|
LIBS="$LIBS libretro-s9x-next/libretro-snes9x-next.so"
|
|
|
|
LIBS="$LIBS libretro-genplus/libretro-genplus.so"
|
|
|
|
LIBS="$LIBS libretro-fba/libretro-fba.so"
|
|
|
|
LIBS="$LIBS libretro-vba/libretro-vba.so"
|
|
|
|
LIBS="$LIBS libretro-fceu/libretro-fceu.so"
|
|
|
|
LIBS="$LIBS libretro-bnes/libretro-bnes.so"
|
|
|
|
LIBS="$LIBS libretro-gambatte/libretro-gambatte.so"
|
|
|
|
LIBS="$LIBS libretro-meteor/libretro-meteor.so"
|
2012-04-22 18:45:51 +00:00
|
|
|
LIBS="$LIBS libretro-nx/libretro-nx.so"
|
2012-05-16 21:22:42 +00:00
|
|
|
LIBS="$LIBS libretro-prboom/libretro-prboom.so"
|
2012-08-28 08:07:58 +00:00
|
|
|
LIBS="$LIBS libretro-stella/libretro-stella.so"
|
2012-10-31 20:05:58 +00:00
|
|
|
LIBS="$LIBS libretro-desmume/libretro-desmume.so"
|
2012-11-08 21:55:59 +00:00
|
|
|
LIBS="$LIBS libretro-mednafen/libretro-mednafen-psx.so"
|
|
|
|
LIBS="$LIBS libretro-mednafen/libretro-mednafen-pce-fast.so"
|
|
|
|
LIBS="$LIBS libretro-mednafen/libretro-mednafen-wswan.so"
|
2013-01-10 13:33:48 +00:00
|
|
|
LIBS="$LIBS libretro-quicknes/libretro-quicknes.so"
|
2013-01-16 08:08:42 +00:00
|
|
|
LIBS="$LIBS libretro-nestopia/libretro-nestopia.so"
|
2013-03-02 08:47:24 +00:00
|
|
|
LIBS="$LIBS libretro-tyrquake/libretro-tyrquake.so"
|
2011-11-02 15:27:23 +00:00
|
|
|
|
|
|
|
for lib in $LIBS
|
|
|
|
do
|
|
|
|
if [ -f $lib ]; then
|
2012-04-16 17:33:18 +00:00
|
|
|
install -v -m644 $lib "$LIBRETRO_DIR"
|
2011-11-02 15:27:23 +00:00
|
|
|
else
|
|
|
|
echo "Library $lib not found, skipping ..."
|
|
|
|
fi
|
|
|
|
done
|
|
|
|
|