File: postinst

package info (click to toggle)
eazel-engine 0.3-4
  • links: PTS
  • area: main
  • in suites: woody
  • size: 1,236 kB
  • ctags: 404
  • sloc: sh: 9,807; ansic: 4,342; makefile: 250; perl: 76
file content (16 lines) | stat: -rw-r--r-- 252 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!	/bin/sh -e

# Generate the postinst
# Usage: postinst.sh packagename

cat << EOF
#!	/bin/sh -e

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

EOF