File: preinst

package info (click to toggle)
viewcvs 0.9.2%2Bcvs.1.0.dev.2004.07.28-4.1etch1
  • links: PTS
  • area: main
  • in suites: etch
  • size: 1,452 kB
  • ctags: 1,355
  • sloc: python: 10,100; cpp: 840; ansic: 763; yacc: 526; sh: 163; makefile: 115
file content (17 lines) | stat: -rw-r--r-- 417 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/sh -e

if [ -e /etc/viewcvs.conf ]; then
	if [ ! -d /etc/viewcvs ]; then
        # make missing config directory
		mkdir -p /etc/viewcvs
	fi
	if [ -e /etc/viewcvs/viewcvs.conf ]; then
        # move old config file to backup
		mv /etc/viewcvs.conf /etc/viewcvs/viewcvs.conf.old
	else
        # move old config file into new config directory
		mv /etc/viewcvs.conf /etc/viewcvs/viewcvs.conf
	fi
fi

#DEBHELPER#