~ubuntu-branches/debian/sid/libhdf4/sid

« back to all changes in this revision

Viewing changes to debian/prerm-doc

  • Committer: Bazaar Package Importer
  • Author(s): Philippe Troin
  • Date: 2001-08-17 18:15:39 UTC
  • Revision ID: james.westby@ubuntu.com-20010817181539-dxk88azjdkntsxbm
Tags: 4.1r4-13
* Fixed upstream version detection in debian/rules.
* Change all instances of the linux C preprocessor symbol to __linux__
  to avoid breaking other packages; patch courtesy of James Troup
  <james@nocrew.org>; closes: #108921.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/sh
 
2
set -eu
 
3
 
 
4
# FSSTD -> FHS
 
5
pkg=libhdf4g-doc
 
6
if [ \( "$1" = "upgrade" -o "$1" = "remove" \) -a -L /usr/doc/$pkg ]; then
 
7
  rm -f /usr/doc/$pkg
 
8
fi
 
9
 
 
10
# Doc-base support
 
11
if [ "$1" = "upgrade" -o "$1" = "remove" ]; then
 
12
  if command -v install-docs >/dev/null 2>&1
 
13
  then
 
14
    install-docs -r libhdf4-ref
 
15
    install-docs -r libhdf4-user
 
16
  fi
 
17
fi