summarylogtreecommitdiffstats
path: root/reduce-addons-svn.install
blob: 544f71b9beea2505d5acef923a6d4c412399c652 (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
27
28
29
30
infodir=/usr/share/info
filelist=(reduce-ide.info)

post_install() {
  update-desktop-database -q
  for file in "${filelist[@]}"; do
    install-info "$infodir/$file.gz" "$infodir/dir" 2> /dev/null
  done
  while read; do printf '%s\n' "$REPLY"; done <<- EOF
    Warning! This package requires the REDUCE Computer Algebra System
    that is available in one of the packages in the optdepends array!
    It will not work without one of those!
EOF
}

post_upgrade() {
  update-desktop-database -q
  for file in "${filelist[@]}"; do
    install-info "$infodir/$file.gz" "$infodir/dir" 2> /dev/null
  done
}

pre_remove() {
  update-desktop-database -q
  for file in "${filelist[@]}"; do
    install-info --delete "$infodir/$file.gz" "$infodir/dir" 2> /dev/null
  done
}

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