Magellan Linux

Diff of /branches/magellan-next/include/games.sminc

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 2 by niro, Fri Oct 10 13:29:42 2008 UTC revision 1931 by niro, Wed Jun 10 17:01:31 2009 UTC
# Line 1  Line 1 
1  # $Header: /magellan-cvs/smage/include/games.sminc,v 1.2 2007/04/24 23:14:05 niro Exp $  # $Id$
2    
3    sminclude mtools
4    
5  # some sane defaults  # some sane defaults
6  [[ -z ${GAME_EXEC} ]] && GAME_EXEC="${PNAME}"  [[ -z ${GAME_EXEC} ]] && GAME_EXEC="${PNAME}"
# Line 33  games_src_install() Line 35  games_src_install()
35   cd ${SRCDIR}   cd ${SRCDIR}
36    
37   # needed directories   # needed directories
38   install -d ${BINDIR}/usr/bin || die   minstalldir /usr/bin || die
39    
40   mmake DESTDIR=${BINDIR} install || die   mmake DESTDIR=${BINDIR} install || die
41    
42   # symlink binary to /usr/bin   # symlink binary to /usr/bin
43   ln -snf ../games/${PNAME}/bin/${GAME_EXEC} ${BINDIR}/usr/bin/${GAME_EXEC} || die   mlink ../games/${PNAME}/bin/${GAME_EXEC} /usr/bin/${GAME_EXEC} || die
44    
45   # fix permissions   # fix permissions
46   chmod 0754 ${BINDIR}/usr/bin/${GAME_EXEC} || die   mchown root:games /usr/bin/${GAME_EXEC} || die
47   chmod 0754 ${BINDIR}/usr/games/${PNAME}/bin/${GAME_EXEC} || die   mchown -R root:games /usr/games/${PNAME} || die
48   chown root:games ${BINDIR}/usr/bin/${GAME_EXEC} || die   mchmod 0754 /usr/bin/${GAME_EXEC} || die
49   chown -R root:games ${BINDIR}/usr/games/${PNAME} || die   mchmod 0754 /usr/games/${PNAME}/bin/${GAME_EXEC} || die
50    
51   local i   local i
52   for i in ABOUT-NLS AUTHORS BUGS CHANGES ChangeLog COPYING \   for i in ABOUT-NLS AUTHORS BUGS CHANGES ChangeLog COPYING \

Legend:
Removed from v.2  
changed lines
  Added in v.1931