summaryrefslogtreecommitdiff
path: root/community/lilypond/lilypond.install
blob: 934e7b4350c425eb1726b0fcff23cf09f999c2cf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
infodir=usr/share/info
filelist=(music-glossary.info
	lilypond-web.info
	lilypond-contributor.info
	lilypond-contributor.info-1
	lilypond-contributor.info-2
	lilypond-internals.info-1
	lilypond-internals.info-2
	lilypond-internals.info-3
	lilypond-internals.info-4
	lilypond-internals.info-5
	lilypond-notation.info-1
	lilypond-notation.info-2
	lilypond-notation.info-3
	lilypond-notation.info-4
	lilypond-notation.info-5
	lilypond-notation.info-6
	lilypond-usage.info
	lilypond-learning.info
	lilypond-web.info-1
	lilypond-web.info-2
	lilypond-internals.info
	lilypond-essay.info
	lilypond-notation.info
	lilypond-learning.info-1
	lilypond-learning.info-2
	lilypond-extending.info
	lilypond-changes.info)

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

post_upgrade() {
  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
}

# vim:set ts=2 sw=2 et: