aboutsummaryrefslogtreecommitdiffstats
path: root/Keywords/info.yaml
blob: e571d3a1e7a5a948608b5586569328b807741146 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# $FreeBSD$
#
# MAINTAINER: portmgr@FreeBSD.org

actions: [file]
post-install: |
  file=%D/%@
  install-info --quiet %D/%@ %D/info/dir
post-deinstall: |
  file=%D/%@
  install-info --quiet --delete %D/%@ %D/info/dir
  if [ $(info -d ${file%/*}  --output - 2>/dev/null | grep -c '^*') -eq 1 ]; then
    rm -f ${file%/*}/dir
  fi
  if [ ${file%/*} != "%D/info" ]; then
     rmdir ${file%/*} 2> /dev/null || true
  fi