aboutsummaryrefslogtreecommitdiff
path: root/src/wydawca.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/wydawca.c')
-rw-r--r--src/wydawca.c75
1 files changed, 5 insertions, 70 deletions
diff --git a/src/wydawca.c b/src/wydawca.c
index 36201ca..4e6e635 100644
--- a/src/wydawca.c
+++ b/src/wydawca.c
@@ -31,6 +31,7 @@ time_t file_sweep_time = 0;
char *tar_command_name = "tar";
int enable_sendfile = 1; /* Use sendfile by default */
int archive_signatures = 1; /* Archive sig files by default */
+int lint_mode = 0;
unsigned wydawca_stat[MAX_STAT];
@@ -265,83 +266,17 @@ gconf_print_diag (gconf_locus_t *locus, int err, int errcode, const char *msg)
}
}
-const char version_etc_copyright[] =
- /* Do *not* mark this string for translation. %s is a copyright
- symbol suitable for this locale, and %d is the copyright
- year. */
- "Copyright %s %d Sergey Poznyakoff, Inc.";
-
-
+#include "cmdline.h"
+
int
main (int argc, char **argv)
{
- int c;
- int lint_mode = 0;
-
program_name = argv[0];
mu_register_all_mailer_formats ();
config_init ();
- while ((c = getopt_long (argc, argv, "c:dehI::ntv", options, NULL)) != EOF)
- {
- switch (c)
- {
- case 'c':
- conffile = optarg;
- break;
-
- case 'd':
- debug_level++;
- break;
-
- case 'e':
- log_to_stderr = 1;
- break;
-
- case SYSLOG_OPTION:
- log_to_stderr = 0;
- break;
-
- case 'h':
- usage ();
- exit (0);
-
- case 'I':
- gconf_preproc_add_include_dir (optarg);
- break;
-
- case 'n':
- log_to_stderr = 1;
- debug_level = 1;
- dry_run_mode = 1;
- break;
-
- case CONFIG_HELP_OPTION:
- config_help ();
- exit (0);
-
- case DUMP_GRAMMAR_TRACE_OPTION:
- gconf_gram_trace (1);
- break;
-
- case DUMP_LEX_TRACE_OPTION:
- gconf_lex_trace (1);
- break;
-
- case 't':
- lint_mode = 1;
- log_to_stderr = 1;
- break;
-
- case 'v':
- version_etc (stdout, argv[0], PACKAGE_NAME,
- PACKAGE_VERSION, "Sergey Poznyakoff", NULL);
- exit (0);
-
- default:
- error (1, 0, "unknown option: %c", c);
- }
- }
+ parse_options (argc, argv);
+
if (argc != optind)
error (1, 0, "extra command line arguments");

Return to:

Send suggestions and report system problems to the System administrator.