File: postinst

package info (click to toggle)
tct 1.07-9
  • links: PTS
  • area: main
  • in suites: woody
  • size: 1,828 kB
  • ctags: 1,128
  • sloc: perl: 9,604; ansic: 4,861; makefile: 516; sh: 77
file content (19 lines) | stat: -rw-r--r-- 232 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/bash
PATH=/bin:/sbin:/usr/bin:/usr/sbin

set -e

case "$1" in
	configure)
		if [ -d /usr/doc -a ! -e /usr/doc/tct -a -d /usr/share/doc/tct ]
		then
			ln -sf ../share/doc/tct /usr/doc/tct
		fi
		;;
	*)
		exit 0
		;;
esac