proto-info.install 461 Bytes
Newer Older
Allan McRae's avatar
Allan McRae committed
1
infodir=usr/share/info
Allan McRae's avatar
Allan McRae committed
2
3
4
filelist=(foo.info bar)

post_install() {
matt mooney's avatar
matt mooney committed
5
6
7
  [[ -x usr/bin/install-info ]] || return 0
  for file in "${filelist[@]}"; do
    install-info "$infodir/$file.gz" "$infodir/dir" 2> /dev/null
Allan McRae's avatar
Allan McRae committed
8
9
10
11
  done
}

post_upgrade() {
matt mooney's avatar
matt mooney committed
12
  post_install "$1"
Allan McRae's avatar
Allan McRae committed
13
14
15
}

pre_remove() {
matt mooney's avatar
matt mooney committed
16
17
18
  [[ -x usr/bin/install-info ]] || return 0
  for file in "${filelist[@]}"; do
    install-info --delete "$infodir/$file.gz" "$infodir/dir" 2> /dev/null
Allan McRae's avatar
Allan McRae committed
19
20
21
22
  done
}

# vim:set ts=2 sw=2 et: