diff options
author | Johannes Schoepfer <slackbuilds[at]schoepfer[dot]info> | 2018-07-18 23:40:23 +0100 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2018-07-21 06:53:31 +0700 |
commit | 46b63f844774a043f6a4a1a5b699ae9fb6df3e51 (patch) | |
tree | e8d32b3b8c130f3979e5bda163a4ca75a1370211 /games/ultimatestunts/doinst.sh | |
parent | a6b4e947bc457cd62ded27487fb75d35ea79ebd7 (diff) | |
download | slackbuilds-46b63f844774a043f6a4a1a5b699ae9fb6df3e51.tar.gz |
games/ultimatestunts: Added (remake of DOS racing game 'Stunts').
Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
Diffstat (limited to 'games/ultimatestunts/doinst.sh')
-rw-r--r-- | games/ultimatestunts/doinst.sh | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/games/ultimatestunts/doinst.sh b/games/ultimatestunts/doinst.sh new file mode 100644 index 0000000000..12adae7cb2 --- /dev/null +++ b/games/ultimatestunts/doinst.sh @@ -0,0 +1,18 @@ +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/ultimatestunts.conf.new + +if [ -x /usr/bin/update-desktop-database ]; then + /usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1 +fi |