xbps-triggers: info-files: warn on missing files; modernize.

This commit is contained in:
Juan RP 2013-04-05 09:05:07 +02:00
parent a3e3e88d4c
commit 18c9b018bf
2 changed files with 8 additions and 5 deletions

View file

@ -1,4 +1,4 @@
#!/bin/sh -e
#!/bin/sh
#
# Registers or unregisters info files for a package.
#
@ -14,8 +14,6 @@ PKGNAME="$3"
VERSION="$4"
UPDATE="$5"
export PATH="$PATH:/usr/local/bin"
installinfo=usr/bin/install-info
infodir=usr/share/info
@ -34,7 +32,12 @@ run)
HOSTARCH=$(uname -m)
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
post-install)

View file

@ -1,6 +1,6 @@
# Template file for 'xbps-triggers'
pkgname=xbps-triggers
version=0.64
version=0.65
revision=1
short_desc="The XBPS triggers for Void Linux"
maintainer="Juan RP <xtraeme@gmail.com>"