From 0d32bbe56e2110e16c655a9c127be4934a2d769c Mon Sep 17 00:00:00 2001 From: classabbyamp Date: Wed, 3 Jan 2024 15:39:01 -0500 Subject: [PATCH] Manual.md: document vsrcextract, vsrccopy --- Manual.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/Manual.md b/Manual.md index e6a98551eee30..12797485d7a52 100644 --- a/Manual.md +++ b/Manual.md @@ -335,6 +335,22 @@ The following functions are defined by `xbps-src` and can be used on any templat it will default to `pkgname`. The `shell` argument can be one of `bash`, `fish` or `zsh`. +- *vsrcextract()* `[-C ] [--no-strip-components|--strip-components=] ` + + Extracts `$XBPS_SRCDISTDIR/$pkgname-$version/` to `target directory` + with `n` directory components stripped. If `target directory` not specified, + defaults to the working directory. If `--strip-components` or `--no-strip-components` + is not specified, defaults to `--strip-components=1`. + + This is useful when used in conjunction with `skip_extraction` and for submodule distfiles. + +- *vsrccopy()* `... ` + + Copies `file`s from `$XBPS_SRCDISTDIR/$pkgname-$version/` into the `target` directory, + creating `target` if it does not exist. + + This is useful when used in conjunction with `skip_extraction`. + > Shell wildcards must be properly quoted, Example: `vmove "usr/lib/*.a"`.