diff options
author | Sergey Poznyakoff <gray@gnu.org> | 2016-10-11 17:20:38 +0300 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org> | 2016-10-11 17:36:10 +0300 |
commit | bc73fc65600b6021dfe7a9fa1fba7e9b823993e2 (patch) | |
tree | 934b239ddd68b1bc91a42b66ddccfe3bcf01accf /libmailutils/Makefile.am | |
parent | 6e8147334cf9ffe36367760c06002a1e5b7ae0d5 (diff) | |
download | mailutils-bc73fc65600b6021dfe7a9fa1fba7e9b823993e2.tar.gz mailutils-bc73fc65600b6021dfe7a9fa1fba7e9b823993e2.tar.bz2 |
Introduce new CLI/configuration code for mailutils applications.
The new API is to replace libmu_cfg and libmu_argp. A smooth transition
is scheduled, during which the two APIs will coexist,
* configure.ac: Build libmailutils/cli/Makefile
* include/mailutils/cli.h: New file.
* include/mailutils/Makefile.am: Add cli.h
* libmailutils/cli/Makefile.am: New file.
* libmailutils/cli/capa.c: New file.
* libmailutils/cli/cli.c: New file.
* libmailutils/cli/stdcapa.c: New file.
* libmailutils/Makefile.am (SUBDIRS): Add cli.
* include/mailutils/cfg.h (mu_cfg_parse_hints): New members: append_tree
and data.
(MU_PARSE_CONFIG_LINT): New flag.
* include/mailutils/diag.h (mu_program_name)
(mu_full_program_name): Remove const qualifier.
* include/mailutils/locker.h (mu_locker_set_default_external_program):
Argument is const.
* libmailutils/base/locker.c: Likewise.
* include/mailutils/opt.h (mu_progname, mu_absprogname): Replace
with mu_program_name and mu_full_program_name.
(mu_set_progname): Rename to mu_set_program_name.
(mu_parseopt) <po_data>: Change type to void *.
(po_help_hook, po_version_hook): Change signatures.
(mu_parseopt_error): New function.
* libmailutils/opt/progname.c (mu_progname, mu_absprogname): Replace
with mu_program_name and mu_full_program_name.
(mu_set_progname): Rename to mu_set_program_name.
* libmailutils/opt/help.c: Minor changes
* libmailutils/opt/opt.c (parse_error): Rename to mu_parse_error (extern).
(next_opt): Fix permutations.
* libmailutils/tests/parseopt.c: Reflect changes.
* libmailutils/tests/parseopt17.at: Improve test case
* libmailutils/tests/parseopt_help05.at: Reflect changes.
* libmailutils/tests/parseopt_help07.at: Reflect changes.
* include/mailutils/stdstream.h (mu_program_name): Remove qualifier.
* libmailutils/cfg/driver.c (mu_cfg_tree_reduce): Remove useless condition
* libmailutils/cfg/lexer.l (mu_cfg_parse_file): Additional info messages.
* libmailutils/cfg/parser.y (mu_cfg_parse_config): Join in
the append_tree.
* libmailutils/diag/diag.c (mu_program_name, mu_full_program_name)
(mu_set_program_name): Remove. Declared elsewhere.
* libmu_sieve/conf.c: Add new configuration code. Mark old text for
removal.
* libmailutils/tests/tcli.c: New program.
* libmailutils/tests/Makefile.am: Add tcli.c
Diffstat (limited to 'libmailutils/Makefile.am')
-rw-r--r-- | libmailutils/Makefile.am | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libmailutils/Makefile.am b/libmailutils/Makefile.am index 7a5270c4c..82550c23f 100644 --- a/libmailutils/Makefile.am +++ b/libmailutils/Makefile.am @@ -8,40 +8,41 @@ # version 3 of the License, or (at your option) any later version. # # This library is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # Lesser General Public License for more details. # # You should have received a copy of the GNU Lesser General # Public License along with this library. If not, see # <http://www.gnu.org/licenses/>. SUBDIRS = \ - auth base address list sockaddr cidr cfg diag\ + auth base address list sockaddr cidr cfg cli diag\ filter mailbox mailer mime msgset opt server string stream stdstream\ property url imapio datetime . tests lib_LTLIBRARIES = libmailutils.la libmailutils_la_SOURCES = libmailutils_la_LIBADD = \ @MU_COMMON_LIBRARIES@\ auth/libauth.la\ base/libbase.la\ address/libaddress.la\ sockaddr/libsockaddr.la\ cidr/libcidr.la\ cfg/libcfg.la\ + cli/libcli.la\ datetime/libdatetime.la\ diag/libdiag.la\ filter/libfilter.la\ imapio/libimapio.la\ list/liblist.la\ mailbox/libmailbox.la\ mailer/libmailer.la\ mime/libmime.la\ msgset/libmsgset.la\ opt/libopt.la\ property/libproperty.la\ server/libserver.la\ |