File: preinst

package info (click to toggle)
csh 5.26-9
  • links: PTS
  • area: main
  • in suites: hamm, slink
  • size: 756 kB
  • ctags: 1,249
  • sloc: ansic: 12,900; makefile: 104; sh: 18
file content (12 lines) | stat: -rw-r--r-- 392 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/bash

OUTPUT=`dpkg-divert --package csh --list csh | grep "by csh"`
if [ -n "$OUTPUT" ]
then
	cat <<EOT
Removing diversion of csh (which was created by an earlier version of this
package).  This package does now use update-alternatives.
EOT
	dpkg-divert --package csh --rename --remove /bin/csh >/dev/null
	dpkg-divert --package csh --rename --remove /usr/man/man1/csh.1 >/dev/null
fi