1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-13 03:03:15 +00:00
freebsd-ports/Keywords/info.yaml

18 lines
415 B
YAML
Raw Normal View History

# $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
2013-11-18 10:16:27 +00:00
if [ ${file%/*} != "%D/info" ]; then
rmdir ${file%/*} 2> /dev/null || true
fi