File: postinst

package info (click to toggle)
nco 2.2.0-1
  • links: PTS
  • area: main
  • in suites: woody
  • size: 1,652 kB
  • ctags: 1,224
  • sloc: ansic: 11,322; cpp: 1,790; makefile: 1,369; lex: 582; sh: 547; fortran: 487; yacc: 435; perl: 278
file content (12 lines) | stat: -rw-r--r-- 382 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/sh -e

if [ "$1" = configure ]; then
    install-info --quiet \
      --section "netCDF" "netCDF" \
      --description="NetCDF Operator suite." \
      /usr/share/info/nco.info
    pkg=nco
    if test -e /usr/doc/$pkg; then rm -rf /usr/doc/$pkg; fi
    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