File: postinst

package info (click to toggle)
latte 2.1-9
  • links: PTS
  • area: main
  • in suites: woody
  • size: 2,064 kB
  • ctags: 1,223
  • sloc: sh: 7,506; cpp: 5,831; ansic: 662; perl: 628; makefile: 350; yacc: 196; lisp: 114
file content (24 lines) | stat: -rw-r--r-- 524 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/bin/sh
set -e

PACKAGE=latte

DESCR="Latte, the Language for Transforming Text."
SECTION_MATCH="Document Preparation"
SECTION_NAME="Document Preparation"

case "$1" in
	configure)
		install-info --quiet \
		  --section "$SECTION_MATCH" "$SECTION_NAME" \
		  --description="$DESCR" \
		  latte.info
		;;
esac

if [ "$1" = "configure" ]; then
        if [ -d /usr/doc -a ! -e /usr/doc/$PACKAGE \
            -a -d /usr/share/doc/$PACKAGE ]; then
                ln -sf ../share/doc/$PACKAGE /usr/doc/$PACKAGE
        fi
fi