File: prerm

package info (click to toggle)
cpio 2.4.2-39woody1
  • links: PTS
  • area: main
  • in suites: woody
  • size: 848 kB
  • ctags: 726
  • sloc: ansic: 8,183; sh: 226; makefile: 212
file content (20 lines) | stat: -rw-r--r-- 411 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 -e

# movedoc - function to make the transition /usr/doc -> /usr/share/doc
movedoc()
{
    PKG=cpio
    OLD=/usr/doc/$PKG
    if test -h $OLD; then
	rm -f $OLD
    fi
}

if [ "$1" = remove ]; then 
    update-alternatives --remove mt /bin/mt-gnu
    install-info --quiet --remove /usr/info/cpio.info
    if test -L /sbin/rmt -a /sbin/rmt -ef /usr/sbin/rmt; then
	rm -f /sbin/rmt
    fi
    movedoc
fi