diff options
author | Larry Hajali <larryhaja[at]gmail[dot]com> | 2010-05-13 00:26:25 +0200 |
---|---|---|
committer | Robby Workman <rworkman@slackbuilds.org> | 2010-05-13 00:26:25 +0200 |
commit | 971596f5c35c82f9698c2866c16c7684cd6184eb (patch) | |
tree | effb137a45c936565d94553fe2e6fc10288d9cce /games/glest/glest.sh | |
parent | a2b88d12b1bf7a747702a52f0500cbbdccf9e521 (diff) |
games/glest: Updated for version 3.2.2
Diffstat (limited to 'games/glest/glest.sh')
-rw-r--r-- | games/glest/glest.sh | 53 |
1 files changed, 0 insertions, 53 deletions
diff --git a/games/glest/glest.sh b/games/glest/glest.sh deleted file mode 100644 index 9676827744704..0000000000000 --- a/games/glest/glest.sh +++ /dev/null @@ -1,53 +0,0 @@ -#!/bin/sh -# Wrapper script taken from the Ubuntu guys. -# I guess they're good for something. :-) -# Modified for the accompanying glest.SlackBuild. - -MAINDIR=/usr/share/glest -BASEDIR="$XDG_CONFIG_HOME" -if [ -z "$BASEDIR" ]; then - BASEDIR="$HOME/.config" -fi -DIR="$BASEDIR/glest" -if [ ! -d "$DIR" ]; then - if [ -d "$HOME/.glest" ]; then - # Move the configuration directory to ~/.config - mkdir -p $BASEDIR - mv "$HOME/.glest" "$DIR" - else - mkdir $DIR - fi -fi -cd $DIR - -if [ -f glest.ini ]; then - # Update for Glest 3.2.1 - sed -i 's/\.lng//' glest.ini - language=$(cat glest.ini | grep Lang | cut -d'=' -f2) - [ -f /usr/share/glest/data/lang/${language}.lng ] || \ - sed -i "s/${language}/english/" glest.ini - # If the configuration file is too old, replace it - grep AutoTest glest.ini >/dev/null 2>&1 - if [ $? -ne 0 ]; then - mv glest.ini glest.ini.bck - cp /etc/glest/glest.ini . - [ -h docs ] || unlink docs - fi -else - cp /etc/glest/glest.ini . - sed -i 's/\.lng//' glest.ini -fi -[ -h glest ] || ln -s /usr/lib/glest/glest . -[ -f servers.ini ] || cp $MAINDIR/servers.ini . -for i in data scenarios techs tilesets; do - [ -h $i ] || ln -s $MAINDIR/$i . -done -[ -d maps ] || mkdir maps -[ -d screens ] || mkdir screens -cd maps -for i in $MAINDIR/maps/*; do - [ -h `basename $i` ] || ln -s $i . -done -cd .. - -exec ./glest |