diff options
author | Alex Kozlov <ak@FreeBSD.org> | 2014-10-08 21:39:47 +0000 |
---|---|---|
committer | Alex Kozlov <ak@FreeBSD.org> | 2014-10-08 21:39:47 +0000 |
commit | 6107ede2acbd504ee76b021601bd5308bd3d937d (patch) | |
tree | 4d3d5098fd8dcd3548442a6ea294205afbd6bc95 /Keywords/shell.ucl | |
parent | fe37bb79589ccb5d6a08d4c151a53862a604e65b (diff) | |
download | ports-6107ede2acbd504ee76b021601bd5308bd3d937d.tar.gz ports-6107ede2acbd504ee76b021601bd5308bd3d937d.zip |
Notes
Diffstat (limited to 'Keywords/shell.ucl')
-rw-r--r-- | Keywords/shell.ucl | 12 |
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 |