BSD 4_3 release
[unix-history] / usr / src / etc / config / main.c
index 5f2f362..c37edd7 100644 (file)
@@ -1,4 +1,18 @@
-/*     main.c  1.8     82/12/09        */
+/*
+ * Copyright (c) 1980 Regents of the University of California.
+ * All rights reserved.  The Berkeley software License Agreement
+ * specifies the terms and conditions for redistribution.
+ */
+
+#ifndef lint
+char copyright[] =
+"@(#) Copyright (c) 1980 Regents of the University of California.\n\
+ All rights reserved.\n";
+#endif not lint
+
+#ifndef lint
+static char sccsid[] = "@(#)main.c     5.2 (Berkeley) 1/11/86";
+#endif not lint
 
 #include <stdio.h>
 #include <ctype.h>
 
 #include <stdio.h>
 #include <ctype.h>
@@ -28,6 +42,7 @@ main(argc, argv)
                exit(2);
        }
        dtab = NULL;
                exit(2);
        }
        dtab = NULL;
+       confp = &conf_list;
        if (yyparse())
                exit(3);
        switch (machine) {
        if (yyparse())
                exit(3);
        switch (machine) {
@@ -45,8 +60,10 @@ main(argc, argv)
                printf("Specify machine type, e.g. ``machine vax''\n");
                exit(1);
        }
                printf("Specify machine type, e.g. ``machine vax''\n");
                exit(1);
        }
+       symlink("../h", path("sys"));   /* make genassym.c work */
        makefile();                     /* build Makefile */
        headers();                      /* make a lot of .h files */
        makefile();                     /* build Makefile */
        headers();                      /* make a lot of .h files */
+       swapconf();                     /* swap config files */
        printf("Don't forget to run \"make depend\"\n");
 }
 
        printf("Don't forget to run \"make depend\"\n");
 }