-Fri May 26 13:41:46 1995 Ezra Peisach (epeisach@kangaroo.mit.edu)
+Fri May 26 15:33:12 1995 Keith Vetter (keithv@fusion.com)
- * configure.in: For Alphs OSF/1, prime a local shared library
- registry with system installed registry file.
+ * wconfig.c: extended so it ignores lines beginning with '@'.
Fri May 26 10:16:02 1995 Keith Vetter (keithv@fusion.com)
* Makefile.in: added lib/kadm and deleted lib/krb425 from PC stuff.
-Fri May 26 12:44:31 1995 Ezra Peisach <epeisach@kangaroo.mit.edu>
-
- * configure.in: Added shared library support for Alpha OSF.
-
-Thu May 25 22:01:39 1995 Theodore Y. Ts'o (tytso@dcl)
-
- * aclocal.m4(V5_MAKE_SHARED_LIB, V5_SHARED_LIB_OBJS): Added autoconf
- rules for creating shared libraries.
-
- * configure.in: Add support for --enable-shared
-
Thu May 25 11:30:00 1995 Keith Vetter (keithv@fusion.com)
* Makefile.in: don't copy profile.h here but do it in include/makefile.
* first 5 characters of the line. This will allow lines like:
* ##DOS!include windows.in to become: !include windows.in
*
+ * We also turn any line beginning with '@' into a blank line.
+ *
* If a config directory is specified, then the output will be start with
* config\pre.in, then the filtered stdin text, and will end with
* config\post.in.
*
- * Syntax: wconfig [<config directory>] <input >output
+ * Syntax: wconfig [config_directory] <input_file >output_file
*
*/
-
#include <stdio.h>
-static char buf [1024];
+#include <string.h>
+
+static char buf [1024]; /* Holds line from a file */
static int copy_file (char *path, char *fname);
-int main(argc, argv)
- int argc;
- char *argv[];
-{
- int l;
- char *ptr;
+int main(int argc, char *argv[]) {
+ char *ptr; /* For parsing the input */
if (argc == 2) /* Config directory given */
copy_file (argv[1], "\\pre.in"); /* Send out prefix */
while ((ptr = gets(buf)) != NULL) { /* Filter stdin */
if (memcmp ("##DOS", buf, 5) == 0)
ptr += 5;
+ else if (*ptr == '@') /* Lines starting w/ '@'... */
+ *ptr = '\0'; /* ...turn into blank lines */
+
puts (ptr);
}