BSD 4_3_Tahoe release
[unix-history] / usr / src / ucb / dbx / mkdate.c
index 29d86a4..59a603c 100644 (file)
@@ -5,13 +5,17 @@
  */
 
 #ifndef lint
  */
 
 #ifndef lint
-static char sccsid[] = "@(#)mkdate.c   5.1 (Berkeley) 5/31/85";
+static char sccsid[] = "@(#)mkdate.c   5.3 (Berkeley) 1/12/88";
 #endif not lint
 
 #endif not lint
 
-static char rcsid[] = "$Header: mkdate.c,v 1.5 84/12/26 10:40:30 linton Exp $";
+static char rcsid[] = "$Header: mkdate.c,v 1.2 87/03/26 19:56:22 donn Exp $";
 
 #include <stdio.h>
 
 #include <stdio.h>
-#include <sys/time.h>
+#ifdef IRIS
+#   include <time.h>
+#else
+#   include <sys/time.h>
+#endif
 
 main()
 {
 
 main()
 {
@@ -25,29 +29,10 @@ main()
     t = localtime(&clock);
     printf("%d/%d/%d ", t->tm_mon + 1, t->tm_mday, t->tm_year % 100);
     printf("%d:%02d", t->tm_hour, t->tm_min);
     t = localtime(&clock);
     printf("%d/%d/%d ", t->tm_mon + 1, t->tm_mday, t->tm_year % 100);
     printf("%d:%02d", t->tm_hour, t->tm_min);
-    gethostname(name, &namelen);
-    printf(" (%s)", name);
+#   ifndef IRIS
+       gethostname(name, &namelen);
+       printf(" (%s)", name);
+#   endif
     printf("\";\n");
     printf("\";\n");
-    DoVersionNumber();
-}
-
-DoVersionNumber()
-{
-    FILE *f;
-    int n;
-
-    f = fopen("version", "r");
-    if (f == NULL) {
-       n = 1;
-    } else {
-       fscanf(f, "%d", &n);
-       n = n + 1;
-       fclose(f);
-    }
-    f = fopen("version", "w");
-    if (f != NULL) {
-       fprintf(f, "%d\n", n);
-       fclose(f);
-    }
-    printf("int versionNumber = %d;\n", n);
+    exit(0);
 }
 }