libretro-super/libretro-install.sh
2013-05-03 13:34:46 +02:00

23 lines
389 B
Bash
Executable File

#!/bin/sh
SCRIPT=$(readlink -f $0)
BASE_DIR=$(dirname $SCRIPT)
RARCH_DIR=$BASE_DIR/dist
RARCH_DIST_DIR=$RARCH_DIR/windows
if [ -z "$1" ]; then
LIBRETRO_DIR="/usr/local/lib/libretro"
else
LIBRETRO_DIR="$1"
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