diff options
author | Chris Gianelloni <wolf31o2@gentoo.org> | 2006-11-08 14:43:18 +0000 |
---|---|---|
committer | Chris Gianelloni <wolf31o2@gentoo.org> | 2006-11-08 14:43:18 +0000 |
commit | a52fd89edc20b5048c996a4cd34b833a3fbc36a2 (patch) | |
tree | 8f503518aa0d926ef4d4388e64296f3bb7eaf848 /eclass | |
parent | Marking mips stable, tested out on swarm (diff) | |
download | historical-a52fd89edc20b5048c996a4cd34b833a3fbc36a2.tar.gz historical-a52fd89edc20b5048c996a4cd34b833a3fbc36a2.tar.bz2 historical-a52fd89edc20b5048c996a4cd34b833a3fbc36a2.zip |
Changed else to elsif so we don't put stupid wrappers/desktop entries for map packs. Thanks to Tristan Heaven <nyhm@gentoo.org> for pointing it out.
Diffstat (limited to 'eclass')
-rw-r--r-- | eclass/games-mods.eclass | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/eclass/games-mods.eclass b/eclass/games-mods.eclass index 0094f07306a9..25256e64bd98 100644 --- a/eclass/games-mods.eclass +++ b/eclass/games-mods.eclass @@ -1,6 +1,6 @@ # Copyright 1999-2006 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/games-mods.eclass,v 1.7 2006/11/07 15:38:52 wolf31o2 Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/games-mods.eclass,v 1.8 2006/11/08 14:43:18 wolf31o2 Exp $ # Variables to specify in an ebuild which uses this eclass: # GAME - (doom3, quake4 or ut2004, etc), unless ${PN} starts with e.g. "doom3-" @@ -270,7 +270,8 @@ games-mods_src_install() { done # We don't want to leave the binary directory around rm -rf bin - else + elif [[ -n "${MOD_DIR}" ]] + then games_make_wrapper "${GAME_EXE}-${MOD_DIR}" \ "${GAME_EXE} ${SELECT_MOD}${MOD_DIR}" "${dir}" "${dir}" make_desktop_entry "${GAME_EXE}-${MOD_DIR}" \ |