diff options
author | Baptiste Daroussin <bapt@FreeBSD.org> | 2021-03-27 22:18:28 +0000 |
---|---|---|
committer | Baptiste Daroussin <bapt@FreeBSD.org> | 2021-03-27 22:18:28 +0000 |
commit | 0c5383c3b0965c6a5296d49f25dfbcfce20282ac (patch) | |
tree | da5afe24046247a5378ea9aaf4ff035942bbbefe /Keywords | |
parent | 0d7758a45b84705574470441d20fe52ebcb14f7f (diff) | |
download | ports-0c5383c3b0965c6a5296d49f25dfbcfce20282ac.tar.gz ports-0c5383c3b0965c6a5296d49f25dfbcfce20282ac.zip |
Add a new @touch keyword
it takes 1 pr N arguments, it creates each of the said files
if they do not exist yet
As it is using lua, it means it has the bonus of being cross installable,
rootdir friendly and sandboxed.
Reviewed by: mat, manu
Differential Revision: https://reviews.freebsd.org/D29426
Notes
Notes:
svn path=/head/; revision=569361
Diffstat (limited to 'Keywords')
-rw-r--r-- | Keywords/touch.ucl | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/Keywords/touch.ucl b/Keywords/touch.ucl new file mode 100644 index 000000000000..8fdb6e090e62 --- /dev/null +++ b/Keywords/touch.ucl @@ -0,0 +1,10 @@ +# $FreeBSD$ +# +# MAINTAINER: portmgr@FreeBSD.org +actions: [] +arguments: true +post-install-lua: <<EOD + for i=1, #arg do + assert(io.open(pkg.prefixed_path(arg[i]), "a"):close()) + end +EOD |