slackware-current/extra/source/tigervnc/doinst.sh
Patrick J Volkerding d7f8114479 Tue Nov 16 19:04:47 UTC 2021
ap/ksh93-1.0_7ea95b7-x86_64-1.txz:  Upgraded.
  Changed the fetch script to pull the 1.0 branch.
  Packaged shcomp and man page and additional documentation.
  Merged some other changes to the build script.
  Thanks to Martijn Dekker (McDutchie).
ap/vim-8.2.3605-x86_64-1.txz:  Upgraded.
l/imagemagick-7.1.0_14-x86_64-1.txz:  Upgraded.
l/python-markdown-3.3.5-x86_64-1.txz:  Upgraded.
xap/seamonkey-2.53.10-x86_64-1.txz:  Upgraded.
  This update contains security fixes and improvements.
  For more information, see:
    https://www.seamonkey-project.org/releases/seamonkey2.53.10
  (* Security fix *)
xap/vim-gvim-8.2.3605-x86_64-1.txz:  Upgraded.
extra/brltty/brltty-6.4-x86_64-4.txz:  Rebuilt.
  Fixed installation of the Tcl bindings. Thanks to Stuart Winter.
extra/tigervnc/tigervnc-1.12.0-x86_64-1.txz:  Upgraded.
  Thanks to alienBOB for the original build script, and to 0XBF and Linux From
  Scratch for some useful hints on getting this back in shape.
2021-11-17 08:59:57 +01:00

31 lines
940 B
Bash

#!/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...
}
config etc/X11/xorg.conf.d/10-libvnc.conf.new
# Update the desktop database:
if [ -x usr/bin/update-desktop-database ]; then
chroot . /usr/bin/update-desktop-database usr/share/applications 1>/dev/null 2>&1
fi
# Update the mime database:
if [ -x usr/bin/update-mime-database ]; then
chroot . /usr/bin/update-mime-database usr/share/mime 1>/dev/null 2>&1
fi
# Update hicolor theme cache:
if [ -d usr/share/icons/hicolor ]; then
if [ -x usr/bin/gtk-update-icon-cache ]; then
chroot . /usr/bin/gtk-update-icon-cache -f -t usr/share/icons/hicolor 1> /dev/null 2> /dev/null
fi
fi