--- trunk/core/include/games.sminc 2008/10/10 13:29:42 2 +++ trunk/core/include/games.sminc 2009/06/10 17:01:31 1931 @@ -1,4 +1,6 @@ -# $Header: /magellan-cvs/smage/include/games.sminc,v 1.2 2007/04/24 23:14:05 niro Exp $ +# $Id$ + +sminclude mtools # some sane defaults [[ -z ${GAME_EXEC} ]] && GAME_EXEC="${PNAME}" @@ -33,18 +35,18 @@ cd ${SRCDIR} # needed directories - install -d ${BINDIR}/usr/bin || die + minstalldir /usr/bin || die mmake DESTDIR=${BINDIR} install || die # symlink binary to /usr/bin - ln -snf ../games/${PNAME}/bin/${GAME_EXEC} ${BINDIR}/usr/bin/${GAME_EXEC} || die + mlink ../games/${PNAME}/bin/${GAME_EXEC} /usr/bin/${GAME_EXEC} || die # fix permissions - chmod 0754 ${BINDIR}/usr/bin/${GAME_EXEC} || die - chmod 0754 ${BINDIR}/usr/games/${PNAME}/bin/${GAME_EXEC} || die - chown root:games ${BINDIR}/usr/bin/${GAME_EXEC} || die - chown -R root:games ${BINDIR}/usr/games/${PNAME} || die + mchown root:games /usr/bin/${GAME_EXEC} || die + mchown -R root:games /usr/games/${PNAME} || die + mchmod 0754 /usr/bin/${GAME_EXEC} || die + mchmod 0754 /usr/games/${PNAME}/bin/${GAME_EXEC} || die local i for i in ABOUT-NLS AUTHORS BUGS CHANGES ChangeLog COPYING \