[go: up one dir, main page]

File: tk8.3.preinst

package info (click to toggle)
tk8.3 8.3.5-6
  • links: PTS
  • area: main
  • in suites: etch-m68k
  • size: 12,372 kB
  • ctags: 12,469
  • sloc: ansic: 120,878; tcl: 13,236; makefile: 1,282; sh: 1,228
file content (18 lines) | stat: -rw-r--r-- 372 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/sh

set -e

# remove the images directory so we can replace it with a symlink
if [ -d /usr/lib/tk8.3/images -a ! -L /usr/lib/tk8.3/images ]; then
    rm -rf /usr/lib/tk8.3/images
fi

# clean up after old mistake
if [ "$1" = "upgrade" -o "$1" = "install" ]; then
	if [ -d /usr/lib/tk8.3/demos ]; then
		# brokenness
		rm -rf /usr/lib/tk8.3/demos
	fi
fi

#DEBHELPER#