diff options
author | Luke Shumaker <lukeshu@sbcglobal.net> | 2015-05-04 21:48:58 -0400 |
---|---|---|
committer | Luke Shumaker <lukeshu@sbcglobal.net> | 2015-05-04 21:48:58 -0400 |
commit | cfba75b8706ed4ffd35997c5e4cf2a441656166d (patch) | |
tree | 976b4145ce3897f7c8f39bf43e4e27f872c57694 /pcr/recutils/recutils.install | |
parent | cfefa5d1a2f03b1617d2c5ee949adaa11c84e18c (diff) | |
download | abslibre-cfba75b8706ed4ffd35997c5e4cf2a441656166d.tar.gz abslibre-cfba75b8706ed4ffd35997c5e4cf2a441656166d.tar.bz2 abslibre-cfba75b8706ed4ffd35997c5e4cf2a441656166d.zip |
update pcr/recutils
Diffstat (limited to 'pcr/recutils/recutils.install')
-rw-r--r-- | pcr/recutils/recutils.install | 32 |
1 files changed, 9 insertions, 23 deletions
diff --git a/pcr/recutils/recutils.install b/pcr/recutils/recutils.install index 245c7ae01..c53225fdc 100644 --- a/pcr/recutils/recutils.install +++ b/pcr/recutils/recutils.install @@ -1,35 +1,21 @@ -_infodir=/usr/share/info -_infofiles=( recutils.info.gz ) +infodir=usr/share/info +filelist=(recutils.info) -_mandir=/usr/share/man/man1 -_manfiles=( csv2rec.1.gz rec2csv.1.gz recdel.1.gz recfix.1.gz recfmt.1.gz recinf.1.gz recins.1.gz recsel.1.gz recset.1.gz) - -## arg 1: the new package version post_install() { - [ -x /usr/bin/mandb ] || return 0 - for _file in ${_manfiles[@]}; do - mandb -f $_mandir/$_file - done - - [ -x /usr/bin/install-info ] || return 0 - for _file in ${_infofiles[@]}; do - install-info $_infodir/$_file $_infodir/dir #2> /dev/null + [[ -x usr/bin/install-info ]] || return 0 + for file in "${filelist[@]}"; do + install-info "$infodir/$file.gz" "$infodir/dir" 2> /dev/null done } -# arg 1: the new package version -# arg 2: the old package version post_upgrade() { - post_install $1 + post_install "$1" } pre_remove() { - [ -x /usr/bin/mandb ] || return 0 - mandb - - [ -x /usr/bin/install-info ] || return 0 - for _file in ${_infofiles[@]}; do - install-info --delete $_infodir/$_file $_infodir/dir #2> /dev/null + [[ -x usr/bin/install-info ]] || return 0 + for file in "${filelist[@]}"; do + install-info --delete "$infodir/$file.gz" "$infodir/dir" 2> /dev/null done } |