summaryrefslogtreecommitdiff
path: root/community/udunits/udunits.install
blob: 1a2fbfd7b184699a9d81054720035b7f1debf81a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
INFO_DIR=/usr/share/info

INFO_FILES=(udunits2.info udunits2lib.info udunits2prog.info)

post_install() {
  [ -x usr/bin/install-info ] || return 0
  for file in ${INFO_FILES[@]}; do install-info \
    $INFO_DIR/$file.gz $INFO_DIR/dir 2> /dev/null
  done
}

post_upgrade() {
  post_install $1
}

pre_remove() {
  [ -x usr/bin/install-info ] || return 0
  for file in ${INFO_FILES[@]}; do
    install-info --delete \
    $INFO_DIR/$file.gz $INFO_DIR/dir 2> /dev/null
  done
}

op=$1
shift
$op $*