Skip to content
  • Eli Schwartz's avatar
    makepkg: move config loading into libmakepkg · a00615bf
    Eli Schwartz authored and Allan McRae's avatar Allan McRae committed
    
    
    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: default avatarEli Schwartz <eschwartz@archlinux.org>
    Signed-off-by: default avatarAllan McRae <allan@archlinux.org>
    a00615bf