diff options
author | root <root@rshg054.dnsready.net> | 2012-02-13 23:15:14 +0000 |
---|---|---|
committer | root <root@rshg054.dnsready.net> | 2012-02-13 23:15:14 +0000 |
commit | 16e845de1bbf76ab48a02bfaa21730f45e6afaaa (patch) | |
tree | 29a9ad28230397e62bdb0ab5cd970763a6033f69 /community/commoncpp2/commoncpp2.install | |
parent | 0020cc650ff973f269f23332e82fc097254d0adc (diff) |
Mon Feb 13 23:15:14 UTC 2012
Diffstat (limited to 'community/commoncpp2/commoncpp2.install')
-rw-r--r-- | community/commoncpp2/commoncpp2.install | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/community/commoncpp2/commoncpp2.install b/community/commoncpp2/commoncpp2.install new file mode 100644 index 000000000..762cdfb8e --- /dev/null +++ b/community/commoncpp2/commoncpp2.install @@ -0,0 +1,22 @@ +infodir=usr/share/info +filelist=(commoncpp2.info) + +post_install() { + [[ -x usr/bin/install-info ]] || return 0 + for file in "${filelist[@]}"; do + install-info "$infodir/$file.gz" "$infodir/dir" 2> /dev/null + done +} + +post_upgrade() { + post_install "$1" +} + +pre_remove() { + [[ -x usr/bin/install-info ]] || return 0 + for file in "${filelist[@]}"; do + install-info --delete "$infodir/$file.gz" "$infodir/dir" 2> /dev/null + done +} + +# vim:set ts=2 sw=2 et: |