~thopiekar/pacman-pm/pacman

Viewing all changes in revision 5577.

  • Committer: Allan McRae
  • Author(s): Eli Schwartz
  • Date: 2019-05-28 01:28:30 UTC
  • Revision ID: git-v1:a00615bfdad628299352b94e0f44d211a758fd17
makepkg: move config loading into libmakepkg

When scripting/automating around makepkg, it is sometimes desirable to
know how makepkg will be configured to operate. One example is the
archlinux devtools, which must forward select makepkg.conf variables
into a build chroot (for example PACKAGER) or use those variables itself
(for example {SRC,PKG,LOG}DEST).

The configuration file can be in up to 3 places, and should be capable
of being overridden via environment variables. It is sufficiently
complex to represent distinct functionality, and sufficiently useful to
merit easy accessibility in other scripts, therefore, let us move it
into a publicly exposed utility library.

Signed-off-by: Eli Schwartz <eschwartz@archlinux.org>
Signed-off-by: Allan McRae <allan@archlinux.org>

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: