Commit a8f39253 a8f392538912cf21e5b40cb826fa09aef8a3ca79 by Sergey Poznyakoff

* mh/folder.c, mh/mh_argp.c, mh/mh_getopt.c, mh/mh_init.c,

mh/rmf.c: Use mu_program_name instead of program_invocation_short_name.
1 parent 5277448c
1 2008-03-01 Sergey Poznyakoff <gray@gnu.org.ua>
2
3 * mh/folder.c, mh/mh_argp.c, mh/mh_getopt.c, mh/mh_init.c,
4 mh/rmf.c: Use mu_program_name instead of
5 program_invocation_short_name.
6
1 2008-02-29 Sergey Poznyakoff <gray@gnu.org.ua> 7 2008-02-29 Sergey Poznyakoff <gray@gnu.org.ua>
2 8
3 * mh/mh_ctx.c (mh_context_read): Allow for header continuation 9 * mh/mh_ctx.c (mh_context_read): Allow for header continuation
......
...@@ -943,7 +943,7 @@ main (int argc, char **argv) ...@@ -943,7 +943,7 @@ main (int argc, char **argv)
943 943
944 /* If folder is invoked by a name ending with "s" (e.g., folders), 944 /* If folder is invoked by a name ending with "s" (e.g., folders),
945 `-all' is assumed */ 945 `-all' is assumed */
946 if (program_invocation_short_name[strlen (program_invocation_short_name) - 1] == 's') 946 if (mu_program_name[strlen (mu_program_name) - 1] == 's')
947 show_all = 1; 947 show_all = 1;
948 948
949 if (has_folder) 949 if (has_folder)
......
...@@ -129,7 +129,7 @@ mh_argp_parse (int *pargc, char **pargv[], ...@@ -129,7 +129,7 @@ mh_argp_parse (int *pargc, char **pargv[],
129 data.doc = argp_doc; 129 data.doc = argp_doc;
130 data.errind = -1; 130 data.errind = -1;
131 131
132 val = mh_global_profile_get (program_invocation_short_name, NULL); 132 val = mh_global_profile_get (mu_program_name, NULL);
133 if (val) 133 if (val)
134 { 134 {
135 int argc; 135 int argc;
......
...@@ -123,7 +123,7 @@ mh_help (struct mh_option *mh_opt, const char *doc) ...@@ -123,7 +123,7 @@ mh_help (struct mh_option *mh_opt, const char *doc)
123 struct mh_option *p; 123 struct mh_option *p;
124 124
125 printf (_("Compatibility syntax:\n")); 125 printf (_("Compatibility syntax:\n"));
126 printf (_("%s [switches] %s\n"), program_invocation_short_name, doc); 126 printf (_("%s [switches] %s\n"), mu_program_name, doc);
127 printf (_(" switches are:\n")); 127 printf (_(" switches are:\n"));
128 128
129 for (p = mh_opt; p->opt; p++) 129 for (p = mh_opt; p->opt; p++)
...@@ -148,5 +148,5 @@ mh_help (struct mh_option *mh_opt, const char *doc) ...@@ -148,5 +148,5 @@ mh_help (struct mh_option *mh_opt, const char *doc)
148 printf (" -version\n"); 148 printf (" -version\n");
149 printf (_("\nPlease use GNU long options instead.\n" 149 printf (_("\nPlease use GNU long options instead.\n"
150 "Run %s --help for more info on these.\n"), 150 "Run %s --help for more info on these.\n"),
151 program_invocation_short_name); 151 mu_program_name);
152 } 152 }
......
...@@ -402,7 +402,7 @@ mh_audit_open (char *name, mu_mailbox_t mbox) ...@@ -402,7 +402,7 @@ mh_audit_open (char *name, mu_mailbox_t mbox)
402 mu_mailbox_get_url (mbox, &url); 402 mu_mailbox_get_url (mbox, &url);
403 403
404 fprintf (fp, "<<%s>> %s %s\n", 404 fprintf (fp, "<<%s>> %s %s\n",
405 program_invocation_short_name, 405 mu_program_name,
406 date, 406 date,
407 mu_url_to_string (url)); 407 mu_url_to_string (url));
408 return fp; 408 return fp;
......
...@@ -151,7 +151,7 @@ rmf (const char *name) ...@@ -151,7 +151,7 @@ rmf (const char *name)
151 else 151 else
152 { 152 {
153 printf ("%s: file `%s' not deleted, continuing...\n", 153 printf ("%s: file `%s' not deleted, continuing...\n",
154 program_invocation_short_name, p); 154 mu_program_name, p);
155 failures++; 155 failures++;
156 } 156 }
157 } 157 }
...@@ -171,7 +171,7 @@ rmf (const char *name) ...@@ -171,7 +171,7 @@ rmf (const char *name)
171 failures += rmdir (name); 171 failures += rmdir (name);
172 else 172 else
173 printf ("%s: folder `%s' not removed\n", 173 printf ("%s: folder `%s' not removed\n",
174 program_invocation_short_name, name); 174 mu_program_name, name);
175 175
176 if (failures == 0) 176 if (failures == 0)
177 { 177 {
......