summaryrefslogtreecommitdiff
path: root/testing/source/mesa/doinst.sh
diff options
context:
space:
mode:
authorPatrick J Volkerding <volkerdi@slackware.com>2019-06-13 04:36:56 +0000
committerEric Hameleers <alien@slackware.com>2019-06-13 17:59:55 +0200
commitefc2c592c6b9e41e17af665625cc4c6e5fe86076 (patch)
tree4378ba132cd728a33789c244f3dc17e736ac3c63 /testing/source/mesa/doinst.sh
parent4164e53472bbb79e7b4052eacf2e7a20ce1d04d1 (diff)
downloadcurrent-efc2c592c6b9e41e17af665625cc4c6e5fe86076.tar.gz
Thu Jun 13 04:36:56 UTC 201920190613043656
a/less-551-x86_64-1.txz: Upgraded. l/babl-0.1.66-x86_64-1.txz: Upgraded. xap/gimp-2.10.12-x86_64-1.txz: Upgraded. testing/packages/mesa-19.1.0-x86_64-1.txz: Added.
Diffstat (limited to 'testing/source/mesa/doinst.sh')
-rw-r--r--testing/source/mesa/doinst.sh17
1 files changed, 17 insertions, 0 deletions
diff --git a/testing/source/mesa/doinst.sh b/testing/source/mesa/doinst.sh
new file mode 100644
index 00000000..d6297d69
--- /dev/null
+++ b/testing/source/mesa/doinst.sh
@@ -0,0 +1,17 @@
+#!/bin/sh
+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...
+}
+# Don't mess with /etc/drirc. Mesa now installs the defaults as
+# /usr/share/drirc.d/00-mesa-defaults.conf. We won't protect that
+# as a .new file as it shouldn't be modified. Create /etc/drirc if
+# you need local overrides.
+#config etc/drirc.new