summaryrefslogtreecommitdiff
path: root/extra/bluefish/bluefish.install
blob: c5464fa9dba692e4fec674e3d45296ad7766982f (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
post_install() {
  if [ ! -d etc/xml ]; then
    mkdir -p etc/xml
  fi
  if [ ! -e etc/xml/catalog ]; then
    xmlcatalog --noout --create etc/xml/catalog
  fi
  xmlcatalog --noout --add 'delegateURI' \
    'http://bluefish.openoffice.nl/ns/bflang/2.0/' /usr/share/xml/bluefish \
    etc/xml/catalog

  update-desktop-database -q
  update-mime-database usr/share/mime > /dev/null
  gtk-update-icon-cache -q -t -f usr/share/icons/hicolor	
}

pre_upgrade() {
  post_remove
}

post_upgrade() {
  post_install
}

post_remove() {
  xmlcatalog --noout --del \
    /usr/share/xml/bluefish etc/xml/catalog
}