aboutsummaryrefslogtreecommitdiffhomepage
path: root/Manual.md
diff options
context:
space:
mode:
authorPiotr Wójcik <chocimier@tlen.pl>2019-01-28 12:45:18 +0100
committermaxice8 <thinkabit.ukim@gmail.com>2019-02-19 09:33:47 -0300
commitefe1a8beb068c79e4daae2b21f966d9df990e0dd (patch)
tree7a72a2a77efd95f6c6e7e6dfd4292849776d4a8a /Manual.md
parentManual.md: complete functions list (diff)
Manual.md: document working directory for functions
Diffstat (limited to 'Manual.md')
-rw-r--r--Manual.md11
1 files changed, 11 insertions, 0 deletions
diff --git a/Manual.md b/Manual.md
index 358cb22a032..cd18c7830c4 100644
--- a/Manual.md
+++ b/Manual.md
@@ -938,6 +938,17 @@ still be passed in if it's a GNU configure script.
> A function defined in a template has preference over the same function
defined by a `build_style` script.
+Current working directory for functions is set as follows:
+
+- For pre_fetch, pre_extract, do_clean: `<masterdir>`.
+
+- For do_fetch, post_fetch: `XBPS_BUILDDIR`.
+
+- For do_extract, post_extract: `wrksrc`.
+
+- For pre_configure through post_install: `build_wrksrc`
+if it is defined, otherwise `wrksrc`.
+
<a id="build_options"></a>
### Build options