diff options
author | Patrick J Volkerding <volkerdi@slackware.com> | 2019-09-24 21:18:36 +0000 |
---|---|---|
committer | Eric Hameleers <alien@slackware.com> | 2019-09-25 08:59:48 +0200 |
commit | e95bfb887895c342fc1d8053d8cacda80cc36af4 (patch) | |
tree | 03664c1696add8f6a4ef277e789177c7bc41efa6 /source/ap/texinfo/update-info-dir | |
parent | e9f66c56358ba27b346633a9741fad3cfbe483ac (diff) | |
download | current-e95bfb887895c342fc1d8053d8cacda80cc36af4.tar.gz current-e95bfb887895c342fc1d8053d8cacda80cc36af4.tar.xz |
Tue Sep 24 21:18:36 UTC 201920190924211836
a/e2fsprogs-1.45.4-x86_64-1.txz: Upgraded.
ap/cups-filters-1.25.6-x86_64-1.txz: Upgraded.
ap/texinfo-6.7-x86_64-1.txz: Upgraded.
l/gst-plugins-base-1.16.1-x86_64-1.txz: Upgraded.
l/gst-plugins-good-1.16.1-x86_64-1.txz: Upgraded.
l/gst-plugins-libav-1.16.1-x86_64-1.txz: Upgraded.
l/gstreamer-1.16.1-x86_64-1.txz: Upgraded.
n/ethtool-5.3-x86_64-1.txz: Upgraded.
n/php-7.3.10-x86_64-1.txz: Upgraded.
This update fixes bugs and a security issue:
MBString: Fixed bug #78559 (Heap buffer overflow in mb_eregi). (cmb)
For more information, see:
https://php.net/ChangeLog-7.php#7.3.10
(* Security fix *)
x/libXvMC-1.0.12-x86_64-1.txz: Upgraded.
x/libmypaint-1.4.0-x86_64-1.txz: Upgraded.
Shared library .so-version bump.
xap/gimp-2.10.12-x86_64-2.txz: Rebuilt.
Recompiled against libmypaint-1.4.0.
extra/pure-alsa-system/gst-plugins-good-1.16.1-x86_64-1_alsa.txz: Upgraded.
Diffstat (limited to 'source/ap/texinfo/update-info-dir')
-rw-r--r-- | source/ap/texinfo/update-info-dir | 82 |
1 files changed, 82 insertions, 0 deletions
diff --git a/source/ap/texinfo/update-info-dir b/source/ap/texinfo/update-info-dir new file mode 100644 index 000000000..ea67bb107 --- /dev/null +++ b/source/ap/texinfo/update-info-dir @@ -0,0 +1,82 @@ +#!/bin/sh +# update-info-dir +# create a dir file from all installed info files +# Copyright 2009, 2014 Norbert Preining +# GPLv2 + +INFODIR=/usr/info + +set -e + +# +# since user's environment is taken over into root account when sudo-ing +# we don't want that one's user LANGUAGE setting changes the messages in +# the dir file. Unset LANGUAGE and reload /etc/environment to get +# the system wide settings. See bug #536476 +unset LANGUAGE +unset LANG +if [ -r /etc/environment ] ; then + . /etc/environment +fi +if [ -r /etc/default/locale ] ; then + . /etc/default/locale +fi + +Help () +{ + echo "\ +SYNOPSIS: update-info-dir [-h,--help] [info-directory] + +(re-)creates the index of available documentation in info format +(the file $(echo $INFODIR)/dir) which is usually presented by info browsers +on startup." + + exit 0 +} + + +if [ "$1" = "-h" ] || [ "$1" = "--help" ]; then + Help +fi + +if [ -n "$1" ] ; then + INFODIR="$1" +fi + +if [ ! -d "$INFODIR" ] ; then + echo "Not a directory: $INFODIR." >&2 + exit 1 +fi + +if [ -r "$INFODIR/dir" ] ; then + rm -f "$INFODIR/dir.old" + cp $INFODIR/dir $INFODIR/dir.old +fi + +# we have to remove the dir file not make install-info being surprised +rm -f "$INFODIR/dir" + +errors=0 +find "$INFODIR" -type f | while read file ; do + case $file in + */dir|*/dir.gz|*/dir.old|*/dir.old.gz|*-[0-9]|*-[0-9].gz|*-[1-9][0-9]|*-[1-9][0-9].gz|*.png|*.jpg) + # these files are ignored + continue + ;; + *) + install-info "$file" "$INFODIR/dir" || { + errors=$((errors+1)) + } + ;; + esac +done + +if [ $errors -gt 0 ] ; then + exec >&2 + echo + echo "Updating the index of info documentation produced $errors errors." +fi + +exit 0 + +# vim:set expandtab tabstop=2: # |