File: postinst

package info (click to toggle)
groff 1.11a-2
  • links: PTS
  • area: main
  • in suites: hamm
  • size: 5,520 kB
  • ctags: 6,883
  • sloc: cpp: 55,133; ansic: 5,228; yacc: 2,954; asm: 1,866; makefile: 1,097; sh: 403; perl: 397; sed: 46
file content (20 lines) | stat: -rw-r--r-- 394 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#! /bin/sh

# 1.09-12 removed these in postrm, so upgrading from these versions
# may delete them
for j in eqn tbl pic
do
	if	[ ! -s /usr/bin/g$j ]
	then	echo "  fixing broken symlink g$j --> $j"
		ln -s $j /usr/bin/g$j
	fi
done

#
# Fix bug #623
# Previous versions may have set the permissions of /usr/doc/groff 
# wrongly. Set permissions here to be sure.
#
chmod 755 /usr/doc/groff
exit 0