File: preinst

package info (click to toggle)
xcircuit 3.9.73%2Bdfsg.1-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, buster
  • size: 8,152 kB
  • sloc: ansic: 80,415; sh: 7,295; tcl: 5,891; python: 449; makefile: 300
file content (13 lines) | stat: -rw-r--r-- 295 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/sh
set -e

#DEBHELPER#

# Move the app-defaults conffile.
if [ "$1" = "install" -o "$1" = "upgrade" ]; then
	if dpkg --compare-versions "$2" lt-nl "2.2.2-3"; then
		if [ -f /etc/X11/Xresources/XCircuit ]; then
			mv /etc/X11/Xresources/XCircuit /etc/X11/app-defaults/XCircuit
		fi
	fi
fi