summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKeith Vetter <keithv@fusion.com>1995-05-26 23:49:02 +0000
committerKeith Vetter <keithv@fusion.com>1995-05-26 23:49:02 +0000
commit0f30c97b9cb1a1e0d8437d65ff557116346b6a50 (patch)
tree20b2baf874ca25b30579bfbd4d7bd602824b580c /src
parent7b506824f7df591fb264fe888ce57cfeedad6e38 (diff)
Windows makefile file configuration excludes lines beginning with '@'
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5902 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog16
-rw-r--r--src/wconfig.c20
2 files changed, 13 insertions, 23 deletions
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 <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.
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 [<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 */
@@ -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);
}