Infrastructure changes to allow unsetting template vars/funcs.

xbps-src-112 does not unset those vars/funcs anymore, so it's a work
that must be done via common/environment/setup{,-subpkg}.
This commit is contained in:
Juan RP
2014-03-19 09:03:21 +01:00
parent 38c7494c9e
commit 0026342862
10 changed files with 89 additions and 12 deletions

View File

@@ -5,14 +5,14 @@ This directory contains shell files (must not be executable nor contain a sheban
that are read by xbps-src when building source packages. The shell files
are read in lexical order (as ordered by shell rules).
These files shall set environment variables for use in the xbps-src helpers
(libexec/xbps-src-*). Only files with the `.sh' extension are read, so this file
will be simply ignored.
These files shall set or unset environment variables while building packages.
Only files with the `.sh' extension are read, so this file will be simply ignored.
The following directories are used to set the order in which the shell snippets
should be read by xbps-src:
* setup (before reading template)
* setup-subpkg (before running the subpkg <pkgname>_package() function)
* fetch (before running fetch phase)
* extract (before running extract phase)
* configure (before running configure phase)
@@ -22,8 +22,5 @@ should be read by xbps-src:
NOTES
~~~~~
* All variables are exported to the environment, so please be careful when
declaring new variables in the shell snippets.
* Symlinks can be created (relative) to make a shell snippet available in
multiple phases.