From: Keith Vetter Date: Fri, 26 May 1995 23:49:02 +0000 (+0000) Subject: Windows makefile file configuration excludes lines beginning with '@' X-Git-Tag: krb5-1.0-beta6~1899 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=0f30c97b9cb1a1e0d8437d65ff557116346b6a50;p=krb5.git Windows makefile file configuration excludes lines beginning with '@' git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5902 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/ChangeLog b/src/ChangeLog index d247f76a1..a5714c670 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,23 +1,11 @@ -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 - - * 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. diff --git a/src/wconfig.c b/src/wconfig.c index cd7829326..9081f1d43 100644 --- a/src/wconfig.c +++ b/src/wconfig.c @@ -27,24 +27,23 @@ * 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 [] output + * Syntax: wconfig [config_directory] output_file * */ - #include -static char buf [1024]; +#include + +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 */ @@ -52,6 +51,9 @@ int main(argc, argv) 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); }