File: postinst

package info (click to toggle)
jgroff 0.100-2
  • links: PTS
  • area: main
  • in suites: slink
  • size: 5,896 kB
  • ctags: 6,984
  • sloc: cpp: 55,956; ansic: 5,480; yacc: 2,957; asm: 1,866; makefile: 1,099; sh: 409; perl: 397; sed: 123
file content (20 lines) | stat: -rw-r--r-- 395 bytes parent folder | download | duplicates (2)
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/jgroff
exit 0