Radish alpha
H
rad:z3QDZAW2FAfuLvihrhiyDC9fAD8G9
HardenedBSD Package Manager
Radicle
Git
Document the new lua functions
Baptiste Daroussin committed 5 years ago
commit 3f7d9e50d4706a050c22cc617fc469161a350725
parent 694301e
1 file changed +13 -1
modified docs/pkg-lua-script.5
@@ -11,7 +11,7 @@
.\"    notice, this list of conditions and the following disclaimer in the
.\"    documentation and/or other materials provided with the distribution.
.\"
-
.Dd January 28, 2020
+
.Dd July 17, 2020
.Dt PKG-LUA-SCRIPT 5
.Os
.Sh NAME
@@ -106,6 +106,18 @@ if needed and returns it as
send messages to the user that will be shown at the end of the
.Xr pkg 8
process.
+
.It Fn pkg_filecmp "file1" "file2"
+
Compare 2 files, return
+
.Va 0
+
if the files are identical,
+
.Va 1
+
if the files are different and
+
.Va >1
+
if an error occured
+
.It Fn pkg_filecopy "source" "destination"
+
Copy a file preserving its attributes. return
+
.Va -1
+
if an error occured
.El
.Sh SEE ALSO
.Xr pkg_printf 3 ,