xbps-triggers: info-files: warn on missing files; modernize.
This commit is contained in:
parent
a3e3e88d4c
commit
18c9b018bf
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/sh -e
|
#!/bin/sh
|
||||||
#
|
#
|
||||||
# Registers or unregisters info files for a package.
|
# Registers or unregisters info files for a package.
|
||||||
#
|
#
|
||||||
|
@ -14,8 +14,6 @@ PKGNAME="$3"
|
||||||
VERSION="$4"
|
VERSION="$4"
|
||||||
UPDATE="$5"
|
UPDATE="$5"
|
||||||
|
|
||||||
export PATH="$PATH:/usr/local/bin"
|
|
||||||
|
|
||||||
installinfo=usr/bin/install-info
|
installinfo=usr/bin/install-info
|
||||||
infodir=usr/share/info
|
infodir=usr/share/info
|
||||||
|
|
||||||
|
@ -34,7 +32,12 @@ run)
|
||||||
HOSTARCH=$(uname -m)
|
HOSTARCH=$(uname -m)
|
||||||
|
|
||||||
for f in ${info_files}; do
|
for f in ${info_files}; do
|
||||||
[ "$f" = "/usr/share/info/dir" ] && continue
|
if [ "$f" = "/usr/share/info/dir" ]; then
|
||||||
|
continue
|
||||||
|
elif [ ! -f ".$f" ]; then
|
||||||
|
echo "WARNING: $f does not exist! skipping..."
|
||||||
|
continue
|
||||||
|
fi
|
||||||
|
|
||||||
case "$TARGET" in
|
case "$TARGET" in
|
||||||
post-install)
|
post-install)
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
# Template file for 'xbps-triggers'
|
# Template file for 'xbps-triggers'
|
||||||
pkgname=xbps-triggers
|
pkgname=xbps-triggers
|
||||||
version=0.64
|
version=0.65
|
||||||
revision=1
|
revision=1
|
||||||
short_desc="The XBPS triggers for Void Linux"
|
short_desc="The XBPS triggers for Void Linux"
|
||||||
maintainer="Juan RP <xtraeme@gmail.com>"
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
||||||
|
|
Loading…
Reference in New Issue