aboutsummaryrefslogtreecommitdiffstats
path: root/Keywords
diff options
context:
space:
mode:
authorbapt <bapt@FreeBSD.org>2014-10-08 07:26:28 +0800
committerbapt <bapt@FreeBSD.org>2014-10-08 07:26:28 +0800
commit1ffa3fffd6be3ca02bba4177596428c3f66128a7 (patch)
treeee5b450487fd5b940b8c6c36031b36ac4b922c6f /Keywords
parent356dba270c9a47318e6717aff105e385df5b73a3 (diff)
downloadfreebsd-ports-gnome-1ffa3fffd6be3ca02bba4177596428c3f66128a7.tar.gz
freebsd-ports-gnome-1ffa3fffd6be3ca02bba4177596428c3f66128a7.tar.zst
freebsd-ports-gnome-1ffa3fffd6be3ca02bba4177596428c3f66128a7.zip
Accept absolute path for @info keyword
Diffstat (limited to 'Keywords')
-rw-r--r--Keywords/info.ucl10
1 files changed, 8 insertions, 2 deletions
diff --git a/Keywords/info.ucl b/Keywords/info.ucl
index b0d4b02ac4a4..956884330786 100644
--- a/Keywords/info.ucl
+++ b/Keywords/info.ucl
@@ -4,10 +4,16 @@
actions: [file]
post-install: <<EOD
- file=%D/%@
+ case "%@" in
+ /*) file="%@" ;;
+ *) file="%D/%@" ;;
+ esac
indexinfo ${file%/*}
EOD
post-deinstall: <<EOD
- file=%D/%@
+ case "%@" in
+ /*) file="%@" ;;
+ *) file="%D/%@" ;;
+ esac
indexinfo ${file%/*}
EOD