projects
/
mmh
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
spost: Read profile and context now. Removed -library switch.
[mmh]
/
uip
/
spost.c
diff --git
a/uip/spost.c
b/uip/spost.c
index
ff1e80a
..
fe2e34b
100644
(file)
--- a/
uip/spost.c
+++ b/
uip/spost.c
@@
-36,8
+36,6
@@
static struct swit switches[] = {
{ "debug", -5 },
#define DISTSW 7
{ "dist", -4 }, /* interface from dist */
{ "debug", -5 },
#define DISTSW 7
{ "dist", -4 }, /* interface from dist */
-#define LIBSW 8
- { "library directory", -7 },
{ NULL, 0 }
};
{ NULL, 0 }
};
@@
-145,9
+143,7
@@
main(int argc, char **argv)
setlocale(LC_ALL, "");
invo_name = mhbasename(argv[0]);
setlocale(LC_ALL, "");
invo_name = mhbasename(argv[0]);
- /* foil search of user profile/context */
- if (context_foil(NULL) == -1)
- done(1);
+ context_read();
arguments = getarguments(invo_name, argc, argv, 0);
argp = arguments;
arguments = getarguments(invo_name, argc, argv, 0);
argp = arguments;
@@
-197,15
+193,6
@@
main(int argc, char **argv)
case NALIASW:
aliasflg = 0;
continue;
case NALIASW:
aliasflg = 0;
continue;
-
- case LIBSW:
- if (!(cp = *argp++) || *cp == '-')
- adios(NULL, "missing argument to %s",
- argp[-2]);
- /* create a minimal context */
- if (context_foil(cp) == -1)
- done(1);
- continue;
}
}
if (msg)
}
}
if (msg)