forked from libretro/stella2014-libretro
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlibretro-install.sh
executable file
·42 lines (37 loc) · 1.27 KB
/
libretro-install.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#!/bin/sh
if [ -z "$1" ]; then
LIBRETRO_DIR="/usr/local/lib/libretro"
else
LIBRETRO_DIR="$1"
fi
if [ ! -d "$LIBRETRO_DIR" ]; then
mkdir -p "$LIBRETRO_DIR"
fi
LIBS=""
LIBS="$LIBS libretro-bsnes/libretro-bsnes-performance.so"
LIBS="$LIBS libretro-bsnes/libretro-bsnes-compat.so"
LIBS="$LIBS libretro-bsnes/libretro-bsnes-accuracy.so"
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"
LIBS="$LIBS libretro-nx/libretro-nx.so"
LIBS="$LIBS libretro-prboom/libretro-prboom.so"
LIBS="$LIBS libretro-stella/libretro-stella.so"
LIBS="$LIBS libretro-mednafen-psx/libretro-mednafen-psx.so"
LIBS="$LIBS libretro-mednafen-pce/libretro-mednafen-pce.so"
LIBS="$LIBS libretro-mednafen-wswan/libretro-mednafen-wswan.so"
LIBS="$LIBS libretro-mednafen-ngp/libretro-mednafen-ngp.so"
for lib in $LIBS
do
if [ -f $lib ]; then
install -v -m644 $lib "$LIBRETRO_DIR"
else
echo "Library $lib not found, skipping ..."
fi
done