diff options
author | Baptiste Daroussin <bapt@FreeBSD.org> | 2013-03-14 10:11:19 +0000 |
---|---|---|
committer | Baptiste Daroussin <bapt@FreeBSD.org> | 2013-03-14 10:11:19 +0000 |
commit | 5285b348d3f8ef6dce0f4cde4e800f56fa3192e9 (patch) | |
tree | 24a0c14a0913d29f7a5b5f8475bb9c240cd75e41 /Keywords | |
parent | 98d451887b5744daee140068ba1ea22fa8004bb1 (diff) | |
download | ports-5285b348d3f8ef6dce0f4cde4e800f56fa3192e9.tar.gz ports-5285b348d3f8ef6dce0f4cde4e800f56fa3192e9.zip |
Notes
Diffstat (limited to 'Keywords')
-rw-r--r-- | Keywords/info.yaml | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/Keywords/info.yaml b/Keywords/info.yaml new file mode 100644 index 000000000000..5cdb789f499c --- /dev/null +++ b/Keywords/info.yaml @@ -0,0 +1,14 @@ +# $FreeBSD$ +# +# MAINTAINER: portmgr@FreeBSD.org + +actions: [file] +post-install: | + file=%D/%@ + install-info --quiet %D/%@ ${file%/*}/dir +post-deinstall: | + file=%D/%@ + install-info --quiet --delete %D/%@ ${file%/*}/dir + if [ $(info -d ${file%/*} --output - 2>/dev/null | grep -c '^*') -eq 1 ]; then + rm -f ${file%/*}/dir + fi |