libretro-super/libretro-install.sh

37 lines
965 B
Bash
Raw Normal View History

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"
LIBS="$LIBS libretro-bsnes/libretro-bsnes-compat.so"
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"
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