diff options
author | Andrew Gregory <andrew.gregory.8@gmail.com> | 2018-01-13 11:49:59 -0500 |
---|---|---|
committer | Allan McRae <allan@archlinux.org> | 2018-01-19 12:02:07 +1000 |
commit | 170bb80a1f8a020595738c7febdb15c68574ce29 (patch) | |
tree | 4652653e5d5fab7e1ee5769d6c7388f1904e76ec /src/pacman/Makefile.am | |
parent | fa745fb4677c3de37aad93b180fe9475179eb7e6 (diff) | |
download | pacman-170bb80a1f8a020595738c7febdb15c68574ce29.tar.xz |
add pacman-conf utility
Parsing pacman's configuration file is non-trivial and extremely
difficult to do correctly from scripts; even our own do it incorrectly.
pacman-conf is a dedicated tool specifically to allow scripts to parse
config files, getting the same value that pacman itself would use.
Signed-off-by: Andrew Gregory <andrew.gregory.8@gmail.com>
Signed-off-by: Allan McRae <allan@archlinux.org>
Diffstat (limited to 'src/pacman/Makefile.am')
-rw-r--r-- | src/pacman/Makefile.am | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/src/pacman/Makefile.am b/src/pacman/Makefile.am index 8999f2b7..a1adfcaa 100644 --- a/src/pacman/Makefile.am +++ b/src/pacman/Makefile.am @@ -8,7 +8,7 @@ hookdir = ${sysconfdir}/pacman.d/hooks/ cachedir = ${localstatedir}/cache/pacman/pkg/ logfile = ${localstatedir}/log/pacman.log -bin_PROGRAMS = pacman +bin_PROGRAMS = pacman pacman-conf AM_CPPFLAGS = \ -imacros $(top_builddir)/config.h \ @@ -52,4 +52,19 @@ pacman_LDADD = \ $(top_builddir)/lib/libalpm/.libs/libalpm.la \ $(LIBARCHIVE_LIBS) +pacman_conf_SOURCES = pacman-conf.c \ + util.h \ + util.c \ + ini.h \ + ini.c \ + util-common.h \ + util-common.c \ + callback.h \ + callback.c \ + conf.h \ + conf.c + +pacman_conf_LDADD = $(top_builddir)/lib/libalpm/.libs/libalpm.la + + # vim:set noet: |