aboutsummaryrefslogtreecommitdiffstats
path: root/Keywords/xmlcatmgr.ucl
blob: a4532775f47f68e84a32af073226ece35c5354ed (plain) (blame)
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
# $FreeBSD$

actions: [file]
post-install: <<EOD
  case "%@" in
  /*) cat="%@" ;;
  *) cat="%D/%@" ;;
  esac
  case "%@" in
  *.xml)
    xmlcatmgr_cmd="xmlcatmgr -c ${PKG_ROOTDIR}%D/share/xml/catalog.ports add nextCatalog"
  ;;
  *)
    xmlcatmgr_cmd="xmlcatmgr -sc ${PKG_ROOTDIR}%D/share/sgml/catalog.ports add CATALOG"
  ;;
  esac
  ${xmlcatmgr_cmd} ${cat}
EOD
post-deinstall: <<EOD
  case "%@" in
  /*) cat="%@" ;;
  *) cat="%D/%@" ;;
  esac
  case "%@" in
  *.xml)
    xmlcatmgr_cmd="xmlcatmgr -c ${PKG_ROOTDIR}%D/share/xml/catalog.ports remove nextCatalog"
  ;;
  *)
    xmlcatmgr_cmd="xmlcatmgr -sc ${PKG_ROOTDIR}%D/share/sgml/catalog.ports remove CATALOG"
  ;;
  esac
  ${xmlcatmgr_cmd} ${cat}
EOD