mupen64plus-oldsvn/install.sh
James Hood 59cd9f8da1 Wrote message queuing code for OSD. Added support for fade in/out animations. Added more flexible framework for animations so different animations can be added later.
Note: Currently, multiple messages in the same corner of the screen will be rendered over each other instead of moving above or below the other messages. I'll fix this soon. Also, until nmn implements the opengl viewport code in the graphics plugins, the position of the OSD messages will not work correctly.
2008-05-02 21:38:14 +00:00

58 lines
1.5 KiB
Bash
Executable file

#!/bin/sh
#
# mupen64plus install script
#
if [ -x /usr/bin/ginstall ]; then
INSTALL=/usr/bin/ginstall
elif [ -x /bin/ginstall ]; then
INSTALL=/bin/ginstall
elif [ -x /usr/bin/install ]; then
INSTALL=/usr/bin/install
elif [ -x /bin/install ]; then
INSTALL=/bin/install
else
INSTALL=install
fi
usage()
{
echo "usage: $(basename $0) [prefix]"
echo -e "\tprefix - install prefix (default: /usr/local)"
}
if [ $# -gt 1 ]; then
usage
exit 1
fi
if [ $# -eq 1 ]; then
PREFIX=$1
else
PREFIX=/usr/local
fi
BINDIR=${PREFIX}/bin
MANDIR=${PREFIX}/man/man1
INSTALLDIR=${PREFIX}/share/mupen64plus
echo "Installing Mupen64Plus to $PREFIX"
$INSTALL -D -m 0755 mupen64plus "${BINDIR}/mupen64plus" || exit $?
$INSTALL -d -v "${INSTALLDIR}" || exit $?
$INSTALL -d -v "${INSTALLDIR}/config" || exit $?
$INSTALL -m 0644 config/* "${INSTALLDIR}/config" || exit $?
$INSTALL -d -v "${INSTALLDIR}/doc" || exit $?
$INSTALL -m 0644 doc/HiRezTexture.txt "${INSTALLDIR}/doc" || exit $?
$INSTALL -m 0644 doc/readme.pdf "${INSTALLDIR}/doc" || exit $?
$INSTALL -d -v "${MANDIR}" || exit $?
$INSTALL -m 0644 doc/mupen64plus.1.gz "${MANDIR}" || exit $?
$INSTALL -d -v "${INSTALLDIR}/fonts" || exit $?
$INSTALL -m 0644 fonts/* "${INSTALLDIR}/fonts" || exit $?
$INSTALL -d -v "${INSTALLDIR}/icons" || exit $?
$INSTALL -m 0644 icons/* "${INSTALLDIR}/icons" || exit $?
$INSTALL -d -v "${INSTALLDIR}/lang" || exit $?
$INSTALL -m 0644 lang/* "${INSTALLDIR}/lang" || exit $?
$INSTALL -d -v "${INSTALLDIR}/plugins" || exit $?
$INSTALL -m 0755 plugins/* "${INSTALLDIR}/plugins" || exit $?
echo "Done."