File: postinst

package info (click to toggle)
netcdf-doc 1%3A3a-2
  • links: PTS
  • area: main
  • in suites: woody
  • size: 3,052 kB
  • ctags: 1,463
  • sloc: makefile: 58; sh: 25
file content (15 lines) | stat: -rw-r--r-- 547 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/sh -e

if [ "$1" = configure ]; then
    install-info --quiet --section "netCDF" "netCDF" \
      --description="Unidata C++ netCDF interface." \
      /usr/share/info/cxxdoc.info.gz
    if command -v install-docs >/dev/null 2>&1; then
	install-docs -i /usr/share/doc-base/netcdf-doc-c
	install-docs -i /usr/share/doc-base/netcdf-doc-f
	install-docs -i /usr/share/doc-base/netcdf-doc-cxx 
    fi
    pkg=netcdf-doc
    if test -d /usr/doc -a ! -e /usr/doc/$pkg -a -d /usr/share/doc/$pkg; then
	ln -sf ../share/doc/$pkg /usr/doc/$pkg; fi
fi