diff options
author | Larry Hajali <larryhaja[at]gmail[dot]com> | 2010-05-12 23:29:22 +0200 |
---|---|---|
committer | David Somero <xgizzmo@slackbuilds.org> | 2010-05-12 23:29:22 +0200 |
commit | 52ded40386444b9ddf135da7b2581c570eecc240 (patch) | |
tree | 130898019e560c95a5aedf40cabc6fd0387ed791 /games/glest/doinst.sh | |
parent | 55655a60b15221ab7bcf5d185ee603a3a682cd1d (diff) | |
download | slackbuilds-52ded40386444b9ddf135da7b2581c570eecc240.tar.gz |
games/glest: Added to 12.2 repository
Diffstat (limited to 'games/glest/doinst.sh')
-rw-r--r-- | games/glest/doinst.sh | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/games/glest/doinst.sh b/games/glest/doinst.sh new file mode 100644 index 0000000000..88b9c5119c --- /dev/null +++ b/games/glest/doinst.sh @@ -0,0 +1,19 @@ +config() { + NEW="$1" + OLD="$(dirname $NEW)/$(basename $NEW .new)" + # If there's no config file by that name, mv it over: + if [ ! -r $OLD ]; then + mv $NEW $OLD + elif [ "$(cat $OLD | md5sum)" = "$(cat $NEW | md5sum)" ]; then + # toss the redundant copy + rm $NEW + fi + # Otherwise, we leave the .new copy for the admin to consider... +} + +config etc/glest/glest.ini.new + +if [ -x /usr/bin/update-desktop-database ]; then + /usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1 +fi + |