--- ./xearth.man.org Tue Feb 14 04:14:27 1995 +++ ./xearth.man Tue Feb 14 04:19:17 1995 @@ -231,10 +231,17 @@ surface. Markers are enabled by default. At present, the list of locations for which markers are placed -consists of some three dozen major cities; no hooks (beyond editing +consists of some three dozen major cities or a dozen or so notable +FreeBSD sites (see the \fB\-freebsd\fP option below); +no hooks (beyond editing the source code and recompiling!) are provided for adding to or changing this list. This limitation will likely be addressed in a future version of \fIxearth\fP. + +.TP +.B \-freebsd \fP|\fB \-nofreebsd +Change marked locations from cities to FreeBSD sites, which include +mirror sites, FreeBSD machines and where notable FreeBSD people work. .TP .B \-stars \fP|\fB \-nostars --- ./xearth.c.org Tue May 24 23:04:06 1994 +++ ./xearth.c Tue Feb 14 04:20:26 1995 @@ -76,6 +76,7 @@ int grid_small; /* dot spacing along grids */ int do_label; /* label image */ int do_markers; /* display markers (X only) */ +int freebsd_markers; /* display markers for FreeBSD sites (X only) */ int wait_time; /* wait time between redraw */ double time_warp; /* passage of time multiplier */ int fixed_time; /* fixed viewing time (ssue) */ @@ -386,6 +387,7 @@ do_shade = 1; do_label = 0; do_markers = 1; + freebsd_markers = 0; wait_time = 300; time_warp = 1; day = 100; @@ -471,10 +473,19 @@ do_markers = 1; warning("markers not supported with GIF and PPM output"); } + else if (strcmp(argv[i], "-freebsd") == 0) + { + freebsd_markers = 1; + warning("markers not supported with GIF and PPM output"); + } else if (strcmp(argv[i], "-nomarkers") == 0) { do_markers = 0; } + else if (strcmp(argv[i], "-nofreebsd") == 0) + { + freebsd_markers = 0; + } else if (strcmp(argv[i], "-stars") == 0) { do_stars = 1; @@ -930,7 +941,7 @@ fprintf(stderr, " [-timewarp timewarp_factor] [-time fixed_time] [-onepix|-twopix]\n"); fprintf(stderr, " [-mono|-nomono] [-ncolors num_colors] [-font font_name]\n"); fprintf(stderr, " [-fork|-nofork] [-nice priority] [-gif] [-ppm] [-display dpyname]\n"); - fprintf(stderr, " [-version]\n"); + fprintf(stderr, " [-version] [-freebsd|-nofreebsd]\n"); fprintf(stderr, "\n"); exit(1); } --- ./x11.c.org Wed Jun 1 11:04:10 1994 +++ ./x11.c Tue Feb 14 04:20:26 1995 @@ -106,6 +106,8 @@ { 0, 0, NULL }, }; +#include "freebsd.h" + static u_char *dith; static u_char *xbuf; static int idx; @@ -150,6 +152,7 @@ "*shade: on", "*label: off", "*markers: on", + "*freebsd: off", "*wait: 300", "*timewarp: 1", "*day: 100", @@ -181,6 +184,8 @@ { "-nolabel", ".label", XrmoptionNoArg, "off" }, { "-markers", ".markers", XrmoptionNoArg, "on" }, { "-nomarkers", ".markers", XrmoptionNoArg, "off" }, +{ "-freebsd", ".freebsd", XrmoptionNoArg, "on" }, +{ "-nofreebsd", ".freebsd", XrmoptionNoArg, "off" }, { "-wait", ".wait", XrmoptionSepArg, 0 }, { "-timewarp", ".timewarp", XrmoptionSepArg, 0 }, { "-day", ".day", XrmoptionSepArg, 0 }, @@ -254,6 +259,7 @@ do_shade = get_boolean_resource("shade", "Shade"); do_label = get_boolean_resource("label", "Label"); do_markers = get_boolean_resource("markers", "Markers"); + freebsd_markers = get_boolean_resource("freebsd", "FreeBSD"); wait_time = get_integer_resource("wait", "Wait"); time_warp = get_float_resource("timewarp", "Timewarp"); day = get_integer_resource("day", "Day"); @@ -638,7 +644,10 @@ if (do_markers) { - minfo = marker_info; + if (freebsd_markers) + minfo = freebsd_info; + else + minfo = marker_info; while (minfo->label != NULL) { mark_location(dpy, minfo->lat, minfo->lon, minfo->label); --- ./xearth.h.org Wed Jun 1 11:04:42 1994 +++ ./xearth.h Tue Feb 14 04:20:26 1995 @@ -171,6 +171,7 @@ extern int grid_small; extern int do_label; extern int do_markers; +extern int freebsd_markers; extern int wait_time; extern double time_warp; extern int fixed_time;