summaryrefslogtreecommitdiff
path: root/Keywords/shell.ucl
diff options
context:
space:
mode:
authorAlex Kozlov <ak@FreeBSD.org>2014-10-08 21:39:47 +0000
committerAlex Kozlov <ak@FreeBSD.org>2014-10-08 21:39:47 +0000
commit6107ede2acbd504ee76b021601bd5308bd3d937d (patch)
tree4d3d5098fd8dcd3548442a6ea294205afbd6bc95 /Keywords/shell.ucl
parentUpdate to 0.09 (diff)
- Accept absolute path for @fc, @fontsdir, @fcfontsdir, @shell keywords
Approved by: portmgr (antoine, bapt) Differential Revision: https://reviews.freebsd.org/D721
Notes
Notes: svn path=/head/; revision=370490
Diffstat (limited to 'Keywords/shell.ucl')
-rw-r--r--Keywords/shell.ucl12
1 files changed, 10 insertions, 2 deletions
diff --git a/Keywords/shell.ucl b/Keywords/shell.ucl
index 70a21ad4fd4b..16a094eaca95 100644
--- a/Keywords/shell.ucl
+++ b/Keywords/shell.ucl
@@ -13,12 +13,20 @@
actions: [file]
post-install: <<EOD
+ case "%@" in
+ /*) file="%@" ;;
+ *) file="%D/%@" ;;
+ esac
cp /etc/shells /etc/shells.bak
- (grep -v %D/%@ /etc/shells.bak; echo %D/%@) > /etc/shells
+ (grep -v ${file} /etc/shells.bak; echo ${file}) > /etc/shells
rm -f /etc/shells.bak
EOD
pre-deinstall: <<EOD
+ case "%@" in
+ /*) file="%@" ;;
+ *) file="%D/%@" ;;
+ esac
cp /etc/shells /etc/shells.bak
- grep -v %D/%@ /etc/shells.bak > /etc/shells
+ grep -v ${file} /etc/shells.bak > /etc/shells
rm -f /etc/shells.bak
EOD