diff options
author | Philip Lacroix <slackph at posteo dot de> | 2017-02-17 22:37:45 +0000 |
---|---|---|
committer | David Spencer <idlemoor@slackbuilds.org> | 2017-02-17 22:39:34 +0000 |
commit | 8e6534c6c983c3929004bc87d5b397445b9ba976 (patch) | |
tree | 440d826be2d8a8935a026063ac7faec2154ef6ed /games/ffgo/doinst.sh | |
parent | 114c84e570e74bbc42e09cde3ae655c81e9d72f6 (diff) |
games/ffgo: Added (graphical launcher for FlightGear).
Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
Diffstat (limited to 'games/ffgo/doinst.sh')
-rw-r--r-- | games/ffgo/doinst.sh | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/games/ffgo/doinst.sh b/games/ffgo/doinst.sh new file mode 100644 index 0000000000000..fecaef1312f42 --- /dev/null +++ b/games/ffgo/doinst.sh @@ -0,0 +1,15 @@ +config() { + NEW="$1" + OLD="$(dirname $NEW)/$(basename $NEW .new)" + if [ ! -r $OLD ]; then + mv $NEW $OLD + elif [ "$(cat $OLD | md5sum)" = "$(cat $NEW | md5sum)" ]; then + rm $NEW + fi +} + +CONF=/usr/libLIBDIRSUFFIX/pythonPY3VER/site-packages/ffgo/data/config + +for conf in $CONF/*.new ; do + config ${conf} +done |