mirror of
https://github.com/libretro/libretro-super
synced 2024-11-28 11:14:11 +00:00
27 lines
450 B
Bash
Executable File
27 lines
450 B
Bash
Executable File
#!/bin/sh
|
|
|
|
SCRIPT=$(readlink -f $0)
|
|
BASE_DIR=$(dirname $SCRIPT)
|
|
RARCH_DIR=$BASE_DIR/dist
|
|
RARCH_DIST_DIR=$RARCH_DIR/pc
|
|
|
|
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
|
|
|
|
for lib in "$RARCH_DIST_DIR"/*
|
|
do
|
|
if [ -f $lib ]; then
|
|
install -v -m644 $lib "$LIBRETRO_DIR"
|
|
else
|
|
echo "Library $lib not found, skipping ..."
|
|
fi
|
|
done
|
|
|