summarylogtreecommitdiffstats
path: root/fftw2-float.install
blob: dcefffc824970861ec77645ff2810f8118c7a62d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
infodir=usr/share/info
filelist=(fftw.info fftw.info-1  fftw.info-2  fftw.info-3  fftw.info-4  fftw.info-5)

post_install() {
	[ -x usr/bin/install-info ] || return 0
	install-info $infodir/fftw.info.gz $infodir/dir 2> /dev/null
}

post_upgrade() {
	pre_remove $1
	post_install $1
}

pre_remove() {
	[ -x usr/bin/install-info ] || return 0
	for file in ${filelist[@]}; do
		install-info --delete $infodir/$file.gz $infodir/dir 2> /dev/null
	done
}