diff options
author | Julian Ospald <hasufell@gentoo.org> | 2013-03-21 22:08:02 +0000 |
---|---|---|
committer | Julian Ospald <hasufell@gentoo.org> | 2013-03-21 22:08:02 +0000 |
commit | b58b204e86dc10d41cceba7bb818f442d0b9154e (patch) | |
tree | 9ef45c72e7c3fb118a6ee90a63103f69e9fb9ba5 /games-puzzle/nightsky/files | |
parent | initial import (diff) | |
download | gentoo-2-b58b204e86dc10d41cceba7bb818f442d0b9154e.tar.gz gentoo-2-b58b204e86dc10d41cceba7bb818f442d0b9154e.tar.bz2 gentoo-2-b58b204e86dc10d41cceba7bb818f442d0b9154e.zip |
initial import wrt #395887
(Portage version: 2.2.0_alpha168/cvs/Linux x86_64, signed Manifest commit with key E73C35B3)
Diffstat (limited to 'games-puzzle/nightsky/files')
-rw-r--r-- | games-puzzle/nightsky/files/nightsky-wrapper | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/games-puzzle/nightsky/files/nightsky-wrapper b/games-puzzle/nightsky/files/nightsky-wrapper new file mode 100644 index 000000000000..be838c7432cc --- /dev/null +++ b/games-puzzle/nightsky/files/nightsky-wrapper @@ -0,0 +1,23 @@ +#!/bin/sh + +HOMEDIR="${HOME}/.nightsky" +GAMEDIR="@GAMES_PREFIX_OPT@/nightsky" + +# create root config dir +[ -e "${HOMEDIR}" ] || mkdir "${HOMEDIR}" + +# symlink game data +for i in `cd "${GAMEDIR}" || exit 1 ; ls -d *` ; do + [ -e "${HOMEDIR}/${i}" ] || ln -sf "${GAMEDIR}/${i}" "${HOMEDIR}/${i}" +done +# create empty Settings dir +[ -e "${HOMEDIR}/Settings" ] || mkdir "${HOMEDIR}/Settings" + +cd "${HOMEDIR}" + +# start architecture dependent binary +if [ -e "${HOMEDIR}/NightSkyHD_64" ] ; then + exec ./NightSkyHD_64 "$@" +else + exec ./NightSky "$@" +fi |