Revision: 75810
          http://sourceforge.net/p/brlcad/code/75810
Author:   starseeker
Date:     2020-05-15 02:07:10 +0000 (Fri, 15 May 2020)
Log Message:
-----------
Add the remainder of the bu_setprogname calls, enable the new 
regress-repository check.

Modified Paths:
--------------
    brlcad/trunk/regress/repository/repocheck.cpp
    brlcad/trunk/src/adrt/master/master.c
    brlcad/trunk/src/adrt/slave/slave.c
    brlcad/trunk/src/external/Cubit/g-sat.cpp
    brlcad/trunk/src/external/Unigraphics/ug-g.c
    brlcad/trunk/src/mged/cad_boundp.c
    brlcad/trunk/src/mged/cad_parea.c
    brlcad/trunk/src/remrt/remrt.c
    brlcad/trunk/src/remrt/rtsrv.c
    brlcad/trunk/src/util/alias-pix.c
    brlcad/trunk/src/util/ap-pix.c
    brlcad/trunk/src/util/asc-plot3.c
    brlcad/trunk/src/util/bombardier.c
    brlcad/trunk/src/util/bw-a.c
    brlcad/trunk/src/util/bw-pix.c
    brlcad/trunk/src/util/bw-png.c
    brlcad/trunk/src/util/bw-ps.c
    brlcad/trunk/src/util/bwcrop.c
    brlcad/trunk/src/util/bwdiff.c
    brlcad/trunk/src/util/bwfilter.c
    brlcad/trunk/src/util/bwhist.c
    brlcad/trunk/src/util/bwhisteq.c
    brlcad/trunk/src/util/bwmod.c
    brlcad/trunk/src/util/bwrect.c
    brlcad/trunk/src/util/bwscale.c
    brlcad/trunk/src/util/bwstat.c
    brlcad/trunk/src/util/bwthresh.c
    brlcad/trunk/src/util/cv.c
    brlcad/trunk/src/util/decimate.c
    brlcad/trunk/src/util/double-asc.c
    brlcad/trunk/src/util/dpix-pix.c
    brlcad/trunk/src/util/gencolor.c
    brlcad/trunk/src/util/icv.cpp
    brlcad/trunk/src/util/imgdims.c
    brlcad/trunk/src/util/loop.c
    brlcad/trunk/src/util/lowp.c
    brlcad/trunk/src/util/mac-pix.c
    brlcad/trunk/src/util/pc_test.c
    brlcad/trunk/src/util/pix-alias.c
    brlcad/trunk/src/util/pix-bw.c
    brlcad/trunk/src/util/pix-ps.c
    brlcad/trunk/src/util/pix-spm.c
    brlcad/trunk/src/util/pix-sun.c
    brlcad/trunk/src/util/pix3filter.c
    brlcad/trunk/src/util/pixbackgnd.c
    brlcad/trunk/src/util/pixbgstrip.c
    brlcad/trunk/src/util/pixblend.c
    brlcad/trunk/src/util/pixborder.c
    brlcad/trunk/src/util/pixbustup.c
    brlcad/trunk/src/util/pixclump.c
    brlcad/trunk/src/util/pixcolors.c
    brlcad/trunk/src/util/pixcount.cpp
    brlcad/trunk/src/util/pixcrop.c
    brlcad/trunk/src/util/pixdiff.c
    brlcad/trunk/src/util/pixembed.c
    brlcad/trunk/src/util/pixfade.c
    brlcad/trunk/src/util/pixfilter.c
    brlcad/trunk/src/util/pixhalve.c
    brlcad/trunk/src/util/pixhist.c
    brlcad/trunk/src/util/pixhist3d-plot3.c
    brlcad/trunk/src/util/pixhist3d.c
    brlcad/trunk/src/util/pixinterp2x.c
    brlcad/trunk/src/util/pixmatte.c
    brlcad/trunk/src/util/pixmerge.c
    brlcad/trunk/src/util/pixmorph.c
    brlcad/trunk/src/util/pixrect.c
    brlcad/trunk/src/util/pixrot.c
    brlcad/trunk/src/util/pixsaturate.c
    brlcad/trunk/src/util/pixscale.c
    brlcad/trunk/src/util/pixstat.c
    brlcad/trunk/src/util/pixsubst.c
    brlcad/trunk/src/util/pixtile.c
    brlcad/trunk/src/util/pixuntile.c
    brlcad/trunk/src/util/plot3-asc.c
    brlcad/trunk/src/util/plot3-plot3.c
    brlcad/trunk/src/util/plot3-ps.c
    brlcad/trunk/src/util/plot3color.c
    brlcad/trunk/src/util/plot3getframe.c
    brlcad/trunk/src/util/plot3line2.c
    brlcad/trunk/src/util/plot3rot.c
    brlcad/trunk/src/util/plot3stat.c
    brlcad/trunk/src/util/png-bw.c
    brlcad/trunk/src/util/png-pix.c
    brlcad/trunk/src/util/random.c
    brlcad/trunk/src/util/roots_example.c
    brlcad/trunk/src/util/sun-pix.c
    brlcad/trunk/src/util/terrain.c
    brlcad/trunk/src/util/wavelet.c

Modified: brlcad/trunk/regress/repository/repocheck.cpp
===================================================================
--- brlcad/trunk/regress/repository/repocheck.cpp       2020-05-15 01:35:14 UTC 
(rev 75809)
+++ brlcad/trunk/regress/repository/repocheck.cpp       2020-05-15 02:07:10 UTC 
(rev 75810)
@@ -53,6 +53,7 @@
 #include <sstream>
 #include <string>
 
+#include "bu/app.h"
 #include "bu/mapped_file.h"
 
 #define MAX_LINES_CHECK 500
@@ -176,7 +177,7 @@
        r.setprogname_regex = 
std::regex("[[:space:]]*bu_setprogname[[:space:]]*[(].*");
        const char *setprogname_exempt_filter_strs[] {
            "mt19937ar.c", "stb_truetype.h", "misc/", "sha1.c",
-               "licenses_check.cpp", "fftc.c", "ifftc.c", "fftest.c",
+               "licenses_check.cpp", "fftc.c", "ifftc.c", "fftest.c", "ttcp.c",
                NULL
        };
        cnt = 0;
@@ -705,6 +706,8 @@
        return -1;
     }
 
+    bu_setprogname(argv[0]);
+
     repo_info_t repo_info;
     repo_info.path_root = std::string(argv[2]);
     regex_init(repo_info);
@@ -783,9 +786,8 @@
     ret += bnetwork_redundant_check(repo_info, src_files);
     ret += common_include_first(repo_info, src_files);
     ret += api_usage(repo_info, src_files);
+    ret += setprogname(repo_info, src_files);
 
-    //ret += setprogname(repo_info, src_files);
-
     int h_cnt = platform_symbols(repo_info, repo_info.symbol_inc_log, 
inc_files);
     int s_cnt = platform_symbols(repo_info, repo_info.symbol_src_log, 
src_files);
     int b_cnt = platform_symbols(repo_info, repo_info.symbol_bld_log, 
build_files);

Modified: brlcad/trunk/src/adrt/master/master.c
===================================================================
--- brlcad/trunk/src/adrt/master/master.c       2020-05-15 01:35:14 UTC (rev 
75809)
+++ brlcad/trunk/src/adrt/master/master.c       2020-05-15 02:07:10 UTC (rev 
75810)
@@ -43,6 +43,7 @@
 #include "bnetwork.h"
 #include "bio.h"
 
+#include "bu/app.h"
 #include "bu/log.h"
 #include "bu/malloc.h"
 #include "bu/debug.h"
@@ -651,6 +652,8 @@
     char exec[64], list[64], comp_host[64];
     int verbose = 0;
 
+    bu_setprogname(argv[0]);
+
     signal(SIGINT, finish);
 
     /* Initialize strings */

Modified: brlcad/trunk/src/adrt/slave/slave.c
===================================================================
--- brlcad/trunk/src/adrt/slave/slave.c 2020-05-15 01:35:14 UTC (rev 75809)
+++ brlcad/trunk/src/adrt/slave/slave.c 2020-05-15 02:07:10 UTC (rev 75810)
@@ -35,6 +35,7 @@
 #  include <getopt.h>
 #endif
 
+#include "bu/app.h"
 #include "rt/tie.h"
 #include "adrt.h"
 #include "camera.h"
@@ -457,6 +458,7 @@
     int                port = 0, c = 0, threads = 0;
     char               host[64], temp[64];
 
+    bu_setprogname(argv[0]);
 
     /* Default Port */
     signal(SIGINT, finish);

Modified: brlcad/trunk/src/external/Cubit/g-sat.cpp
===================================================================
--- brlcad/trunk/src/external/Cubit/g-sat.cpp   2020-05-15 01:35:14 UTC (rev 
75809)
+++ brlcad/trunk/src/external/Cubit/g-sat.cpp   2020-05-15 02:07:10 UTC (rev 
75810)
@@ -61,6 +61,7 @@
 
 // interface headers
 #include "vmath.h"
+#include "bu/app.h"
 #include "bu/getopt.h"
 #include "bu/avs.h"
 #include "bu/bitv.h"
@@ -1119,6 +1120,7 @@
     int arg_count;
     const int MIN_NUM_OF_ARGS = 2;
 
+    bu_setprogname(argv[0]);
     bu_setlinebuf(stderr);
 
     rt_i *rtip;

Modified: brlcad/trunk/src/external/Unigraphics/ug-g.c
===================================================================
--- brlcad/trunk/src/external/Unigraphics/ug-g.c        2020-05-15 01:35:14 UTC 
(rev 75809)
+++ brlcad/trunk/src/external/Unigraphics/ug-g.c        2020-05-15 02:07:10 UTC 
(rev 75810)
@@ -5354,6 +5354,8 @@
     UF_ASSEM_options_t assem_options;
     time_t elapsed_time, end_time;
 
+    bu_setprogname(av[0]);
+
     time( &start_time );
 
     tol_dist_sq = tol_dist * tol_dist;

Modified: brlcad/trunk/src/mged/cad_boundp.c
===================================================================
--- brlcad/trunk/src/mged/cad_boundp.c  2020-05-15 01:35:14 UTC (rev 75809)
+++ brlcad/trunk/src/mged/cad_boundp.c  2020-05-15 02:07:10 UTC (rev 75810)
@@ -42,6 +42,7 @@
 #include <stdarg.h>
 
 #include "vmath.h"
+#include "bu/app.h"
 #include "bu/getopt.h"
 #include "bu/str.h"
 #include "bu/exit.h"
@@ -110,6 +111,8 @@
     /* argument count */
     /* argument strings */
 {
+    bu_setprogname(argv[0]);
+
     if (!GetArgs(argc, argv))  /* process command arguments */
        return 1;
 

Modified: brlcad/trunk/src/mged/cad_parea.c
===================================================================
--- brlcad/trunk/src/mged/cad_parea.c   2020-05-15 01:35:14 UTC (rev 75809)
+++ brlcad/trunk/src/mged/cad_parea.c   2020-05-15 02:07:10 UTC (rev 75810)
@@ -29,6 +29,7 @@
 #include <string.h>
 #include "bio.h"
 
+#include "bu/app.h"
 #include "bu/getopt.h"
 #include "bu/str.h"
 #include "bu/exit.h"
@@ -63,6 +64,8 @@
     int saved; /* "`first' valid" flag */
     double sum; /* accumulator */
 
+    bu_setprogname(argv[0]);
+
     if (!GetArgs(argc, argv)) {
        /* process command arguments */
        return 1;

Modified: brlcad/trunk/src/remrt/remrt.c
===================================================================
--- brlcad/trunk/src/remrt/remrt.c      2020-05-15 01:35:14 UTC (rev 75809)
+++ brlcad/trunk/src/remrt/remrt.c      2020-05-15 02:07:10 UTC (rev 75810)
@@ -49,6 +49,7 @@
 #include "bio.h"
 #include "bresource.h"
 #include "bsocket.h"
+#include "bu/app.h"
 
 /* decls for strict c90 */
 
@@ -3534,6 +3535,8 @@
     struct servers *sp;
     int i, done;
 
+    bu_setprogname(argv[0]);
+
     /* Random inits */
     our_hostname = get_our_hostname();
     fprintf(stderr, "%s %s %s\n", stamp(), our_hostname, 
brlcad_ident("Network-Distributed RT (REMRT)"));

Modified: brlcad/trunk/src/remrt/rtsrv.c
===================================================================
--- brlcad/trunk/src/remrt/rtsrv.c      2020-05-15 01:35:14 UTC (rev 75809)
+++ brlcad/trunk/src/remrt/rtsrv.c      2020-05-15 02:07:10 UTC (rev 75810)
@@ -49,6 +49,7 @@
 #  undef VMIN
 #endif
 
+#include "bu/app.h"
 #include "bu/str.h"
 #include "bu/process.h"
 #include "bu/snooze.h"
@@ -162,6 +163,8 @@
 {
     int n;
 
+    bu_setprogname(argv[0]);
+
     if (argc < 2) {
        fprintf(stderr, "%s", srv_usage);
        return 1;

Modified: brlcad/trunk/src/util/alias-pix.c
===================================================================
--- brlcad/trunk/src/util/alias-pix.c   2020-05-15 01:35:14 UTC (rev 75809)
+++ brlcad/trunk/src/util/alias-pix.c   2020-05-15 02:07:10 UTC (rev 75810)
@@ -28,6 +28,7 @@
 #include <stdlib.h>
 #include <ctype.h>
 #include "bio.h"
+#include "bu/app.h"
 #include "bu/malloc.h"
 #include "bu/exit.h"
 
@@ -63,6 +64,7 @@
     int pixcnt, i;
     char *p;
 
+    bu_setprogname(av[0]);
     progname = *av;
 
     if (ac > 2 || isatty(fileno(stdin))) usage();

Modified: brlcad/trunk/src/util/ap-pix.c
===================================================================
--- brlcad/trunk/src/util/ap-pix.c      2020-05-15 01:35:14 UTC (rev 75809)
+++ brlcad/trunk/src/util/ap-pix.c      2020-05-15 02:07:10 UTC (rev 75810)
@@ -29,6 +29,7 @@
 #include <stdlib.h>
 #include <string.h>
 
+#include "bu/app.h"
 #include "bu/file.h"
 #include "bu/str.h"
 #include "bu/exit.h"
@@ -62,6 +63,8 @@
     const char *argv0 = argv[0];
     int verbose = 0;
 
+    bu_setprogname(argv[0]);
+
     if (argc > 1) {
        if (BU_STR_EQUAL(argv[1], "-h") ||  BU_STR_EQUAL(argv[1], "-?"))
            usage(argv0);

Modified: brlcad/trunk/src/util/asc-plot3.c
===================================================================
--- brlcad/trunk/src/util/asc-plot3.c   2020-05-15 01:35:14 UTC (rev 75809)
+++ brlcad/trunk/src/util/asc-plot3.c   2020-05-15 02:07:10 UTC (rev 75810)
@@ -33,6 +33,7 @@
 
 #include "bn/plot3.h"
 
+#include "bu/app.h"
 #include "bu/log.h"
 #include "bu/str.h"
 
@@ -72,6 +73,7 @@
     int line_nm;
     int nm_args = 0;
 
+    bu_setprogname(argv[0]);
 
     if (BU_STR_EQUAL(argv[1], "-h") || BU_STR_EQUAL(argv[1], "-?")) {
        printusage();

Modified: brlcad/trunk/src/util/bombardier.c
===================================================================
--- brlcad/trunk/src/util/bombardier.c  2020-05-15 01:35:14 UTC (rev 75809)
+++ brlcad/trunk/src/util/bombardier.c  2020-05-15 02:07:10 UTC (rev 75810)
@@ -36,6 +36,7 @@
 #include "tcl.h"
 #include "tk.h"
 
+#include "bu/app.h"
 #include "tclcad.h"
 
 #include "./bombardier.h"
@@ -285,6 +286,8 @@
     int tkargc = 1;
     char *tkargv[2] = {NULL, NULL};
 
+    bu_setprogname(argv[0]);
+
     if (argc > 1) {
        if (BU_STR_EQUAL(argv[1],"-h") || BU_STR_EQUAL(argv[1],"-?")) {
                bu_exit(1, "Usage: %s logfile(s)\n", argv[0]);

Modified: brlcad/trunk/src/util/bw-a.c
===================================================================
--- brlcad/trunk/src/util/bw-a.c        2020-05-15 01:35:14 UTC (rev 75809)
+++ brlcad/trunk/src/util/bw-a.c        2020-05-15 02:07:10 UTC (rev 75810)
@@ -41,6 +41,7 @@
 #include "bio.h"
 
 #include "vmath.h"
+#include "bu/app.h"
 #include "bu/getopt.h"
 #include "bu/exit.h"
 #include "bn.h"
@@ -115,6 +116,8 @@
     long int cur_width = 0;
     long int cur_height = 0;
 
+    bu_setprogname(argv[0]);
+
     if (!get_args(argc, argv)) {
        (void) fputs(usage, stderr);
        bu_exit (1, NULL);

Modified: brlcad/trunk/src/util/bw-pix.c
===================================================================
--- brlcad/trunk/src/util/bw-pix.c      2020-05-15 01:35:14 UTC (rev 75809)
+++ brlcad/trunk/src/util/bw-pix.c      2020-05-15 02:07:10 UTC (rev 75810)
@@ -31,6 +31,7 @@
 #include <string.h>
 #include "bio.h"
 
+#include "bu/app.h"
 #include "bu/getopt.h"
 #include "bu/str.h"
 #include "bu/opt.h"
@@ -68,6 +69,8 @@
     const char *bfile = NULL;
     char usage[] = "Usage: bw-pix [-o out_file.pix] [file.bw] [file_green.bw 
file_blue.bw] [ > out_file.pix]\n";
 
+    bu_setprogname(argv[0]);
+
     struct bu_opt_desc d[3];
     BU_OPT(d[0], "h", "help",        "",         NULL,        &need_help, 
"Print help and exit");
     BU_OPT(d[1], "o", "output-file", "filename", &bu_opt_vls, &out_fname, "PIX 
output file name");

Modified: brlcad/trunk/src/util/bw-png.c
===================================================================
--- brlcad/trunk/src/util/bw-png.c      2020-05-15 01:35:14 UTC (rev 75809)
+++ brlcad/trunk/src/util/bw-png.c      2020-05-15 02:07:10 UTC (rev 75810)
@@ -32,6 +32,7 @@
 #include "bio.h"
 
 #include "vmath.h"
+#include "bu/app.h"
 #include "bu/getopt.h"
 #include "bu/malloc.h"
 #include "bu/exit.h"
@@ -116,6 +117,8 @@
     png_infop info_p;
     FILE *outfp = stdout;
 
+    bu_setprogname(argv[0]);
+
     if (!get_args(argc, argv)) {
        (void)fputs(usage, stderr);
        bu_exit (1, NULL);

Modified: brlcad/trunk/src/util/bw-ps.c
===================================================================
--- brlcad/trunk/src/util/bw-ps.c       2020-05-15 01:35:14 UTC (rev 75809)
+++ brlcad/trunk/src/util/bw-ps.c       2020-05-15 02:07:10 UTC (rev 75810)
@@ -29,6 +29,7 @@
 #include <math.h>
 #include <time.h> /* for ctime() */
 #include "bio.h"
+#include "bu/app.h"
 #include "bu/getopt.h"
 #include "bu/exit.h"
 
@@ -186,6 +187,8 @@
     size_t scans_per_patch, bytes_per_patch;
     size_t y;
 
+    bu_setprogname(argv[0]);
+
     if (!get_args(argc, argv)) {
        (void)fputs(usage, stderr);
        bu_exit (1, NULL);

Modified: brlcad/trunk/src/util/bwcrop.c
===================================================================
--- brlcad/trunk/src/util/bwcrop.c      2020-05-15 01:35:14 UTC (rev 75809)
+++ brlcad/trunk/src/util/bwcrop.c      2020-05-15 02:07:10 UTC (rev 75810)
@@ -39,6 +39,7 @@
 
 #include "bio.h" /* for b_off_t */
 
+#include "bu/app.h"
 #include "bu/file.h"
 #include "bu/malloc.h"
 #include "bu/exit.h"
@@ -122,6 +123,8 @@
 
     int atoival;
 
+    bu_setprogname(argv[0]);
+
     if (argc < 3) {
        bu_exit(1, "%s", usage);
     }

Modified: brlcad/trunk/src/util/bwdiff.c
===================================================================
--- brlcad/trunk/src/util/bwdiff.c      2020-05-15 01:35:14 UTC (rev 75809)
+++ brlcad/trunk/src/util/bwdiff.c      2020-05-15 02:07:10 UTC (rev 75810)
@@ -32,6 +32,7 @@
 #include <string.h>
 #include "bio.h"
 
+#include "bu/app.h"
 #include "bu/str.h"
 #include "bu/exit.h"
 
@@ -73,6 +74,8 @@
     size_t i, n, m;
     size_t ret;
 
+    bu_setprogname(argv[0]);
+
     while (argc > 3) {
        if (BU_STR_EQUAL(argv[1], "-m")) {
            mode = MAG;

Modified: brlcad/trunk/src/util/bwfilter.c
===================================================================
--- brlcad/trunk/src/util/bwfilter.c    2020-05-15 01:35:14 UTC (rev 75809)
+++ brlcad/trunk/src/util/bwfilter.c    2020-05-15 02:07:10 UTC (rev 75810)
@@ -31,6 +31,7 @@
 #include <string.h>
 #include "bio.h"
 
+#include "bu/app.h"
 #include "bu/getopt.h"
 #include "bu/malloc.h"
 #include "bu/mime.h"
@@ -185,6 +186,9 @@
     double *max_d = NULL, *min_d = NULL; /* return values from min and max */
     int max, min;
     int x;
+
+    bu_setprogname(argv[0]);
+
     /* Select Default Filter (low pass) */
     select_filter("low");
 

Modified: brlcad/trunk/src/util/bwhist.c
===================================================================
--- brlcad/trunk/src/util/bwhist.c      2020-05-15 01:35:14 UTC (rev 75809)
+++ brlcad/trunk/src/util/bwhist.c      2020-05-15 02:07:10 UTC (rev 75810)
@@ -32,6 +32,7 @@
 
 #include "bio.h"
 
+#include "bu/app.h"
 #include "bu/str.h"
 #include "bu/exit.h"
 #include "fb.h"
@@ -56,6 +57,8 @@
     unsigned char white[3*512];
     FILE *fp;
 
+    bu_setprogname(argv[0]);
+
     if (BU_STR_EQUAL(argv[1], "-h") || BU_STR_EQUAL(argv[1], "-?"))
        bu_exit(1, "%s", Usage);
 

Modified: brlcad/trunk/src/util/bwhisteq.c
===================================================================
--- brlcad/trunk/src/util/bwhisteq.c    2020-05-15 01:35:14 UTC (rev 75809)
+++ brlcad/trunk/src/util/bwhisteq.c    2020-05-15 02:07:10 UTC (rev 75810)
@@ -32,6 +32,7 @@
 
 #include "bio.h"
 
+#include "bu/app.h"
 #include "bu/file.h"
 #include "bu/str.h"
 #include "bu/exit.h"
@@ -63,6 +64,8 @@
     int left[BINSIZE];
     int right[BINSIZE];
 
+    bu_setprogname(argv[0]);
+
     if (argc > 1 && BU_STR_EQUAL(argv[1], "-v")) {
        verbose++;
        argc--;

Modified: brlcad/trunk/src/util/bwmod.c
===================================================================
--- brlcad/trunk/src/util/bwmod.c       2020-05-15 01:35:14 UTC (rev 75809)
+++ brlcad/trunk/src/util/bwmod.c       2020-05-15 02:07:10 UTC (rev 75810)
@@ -41,6 +41,7 @@
 #include "bio.h"
 
 #include "vmath.h"
+#include "bu/app.h"
 #include "bu/file.h"
 #include "bu/malloc.h"
 #include "bu/getopt.h"
@@ -366,6 +367,8 @@
     int n;
     unsigned long clip_high = 0L , clip_low = 0L ;
 
+    bu_setprogname(argv[0]);
+
     setmode(fileno(stdin), O_BINARY);
     setmode(fileno(stdout), O_BINARY);
     setmode(fileno(stderr), O_BINARY);

Modified: brlcad/trunk/src/util/bwrect.c
===================================================================
--- brlcad/trunk/src/util/bwrect.c      2020-05-15 01:35:14 UTC (rev 75809)
+++ brlcad/trunk/src/util/bwrect.c      2020-05-15 02:07:10 UTC (rev 75810)
@@ -28,6 +28,7 @@
 #include <stdlib.h>
 #include "bio.h"
 
+#include "bu/app.h"
 #include "bu/getopt.h"
 #include "bu/log.h"
 #include "bu/mime.h"
@@ -112,6 +113,8 @@
 {
     icv_image_t *img;
 
+    bu_setprogname(argv[0]);
+
     if (!get_args(argc, argv)) {
        bu_log("%s", usage);
        return 1;

Modified: brlcad/trunk/src/util/bwscale.c
===================================================================
--- brlcad/trunk/src/util/bwscale.c     2020-05-15 01:35:14 UTC (rev 75809)
+++ brlcad/trunk/src/util/bwscale.c     2020-05-15 02:07:10 UTC (rev 75810)
@@ -37,6 +37,7 @@
 #include <string.h>
 #include "bio.h"
 
+#include "bu/app.h"
 #include "bu/getopt.h"
 #include "bu/malloc.h"
 #include "bu/log.h"
@@ -393,6 +394,8 @@
 {
     int i;
 
+    bu_setprogname(argv[0]);
+
     if (!get_args(argc, argv) || isatty(fileno(stdout)))
        bu_exit(1, "%s", usage);
 

Modified: brlcad/trunk/src/util/bwstat.c
===================================================================
--- brlcad/trunk/src/util/bwstat.c      2020-05-15 01:35:14 UTC (rev 75809)
+++ brlcad/trunk/src/util/bwstat.c      2020-05-15 02:07:10 UTC (rev 75810)
@@ -39,6 +39,7 @@
 #include <math.h>
 #include "bio.h"
 
+#include "bu/app.h"
 #include "bu/str.h"
 #include "bu/exit.h"
 
@@ -80,6 +81,8 @@
     double mean, var = 0.0 , skew = 0.0 ;
     FILE *fp;
 
+    bu_setprogname(argv[0]);
+
     if (BU_STR_EQUAL(argv[1], "-h") || BU_STR_EQUAL(argv[1], "-?"))
        bu_exit(1, "%s", Usage);
 

Modified: brlcad/trunk/src/util/bwthresh.c
===================================================================
--- brlcad/trunk/src/util/bwthresh.c    2020-05-15 01:35:14 UTC (rev 75809)
+++ brlcad/trunk/src/util/bwthresh.c    2020-05-15 02:07:10 UTC (rev 75810)
@@ -34,6 +34,7 @@
 #include <stdlib.h>
 #include <string.h>
 
+#include "bu/app.h"
 #include "bu/log.h"
 #include "bu/malloc.h"
 #include "bu/str.h"
@@ -51,6 +52,8 @@
     int i;
     unsigned char *bin_color = (unsigned char *)0;/* resultant pixel values */
 
+    bu_setprogname(argv[0]);
+
     if ((BU_STR_EQUAL(argv[1],"-h") || BU_STR_EQUAL(argv[1],"-?")) && argc == 
2)
        bu_exit(1, "%s", USAGE);
     if ((nm_threshs = argc - 1) < 1)

Modified: brlcad/trunk/src/util/cv.c
===================================================================
--- brlcad/trunk/src/util/cv.c  2020-05-15 01:35:14 UTC (rev 75809)
+++ brlcad/trunk/src/util/cv.c  2020-05-15 02:07:10 UTC (rev 75810)
@@ -29,6 +29,7 @@
 #include "bio.h"
 
 #include "vmath.h"
+#include "bu/app.h"
 #include "bu/cv.h"
 #include "raytrace.h"
 
@@ -66,6 +67,8 @@
     size_t m;
     size_t n;
 
+    bu_setprogname(argv[0]);
+
     if (argc < 3 || argc > 5) {
        fputs(usage, stderr);
        return 1;

Modified: brlcad/trunk/src/util/decimate.c
===================================================================
--- brlcad/trunk/src/util/decimate.c    2020-05-15 01:35:14 UTC (rev 75809)
+++ brlcad/trunk/src/util/decimate.c    2020-05-15 02:07:10 UTC (rev 75810)
@@ -38,6 +38,7 @@
 #include <stdio.h>
 #include <limits.h> /* for INT_MAX */
 
+#include "bu/app.h"
 #include "bu/log.h"
 #include "bu/malloc.h"
 
@@ -68,6 +69,8 @@
 
     int failure;
 
+    bu_setprogname(argv[0]);
+
     if (argc < 4) {
        bu_exit (1, "%s", usage);
     }

Modified: brlcad/trunk/src/util/double-asc.c
===================================================================
--- brlcad/trunk/src/util/double-asc.c  2020-05-15 01:35:14 UTC (rev 75809)
+++ brlcad/trunk/src/util/double-asc.c  2020-05-15 02:07:10 UTC (rev 75810)
@@ -31,6 +31,7 @@
 #include "bio.h"
 
 #include "vmath.h"
+#include "bu/app.h"
 #include "bu/getopt.h"
 #include "bu/malloc.h"
 #include "bu/file.h"
@@ -160,6 +161,8 @@
     int i;
     int row, col;      /* coords within input stream */
 
+    bu_setprogname(argv[0]);
+
     bu_log("DEPRECATION WARNING:  This command is scheduled for removal.  
Please contact the developers if you use this command.\n\n");
     bu_snooze(BU_SEC2USEC(1));
 

Modified: brlcad/trunk/src/util/dpix-pix.c
===================================================================
--- brlcad/trunk/src/util/dpix-pix.c    2020-05-15 01:35:14 UTC (rev 75809)
+++ brlcad/trunk/src/util/dpix-pix.c    2020-05-15 02:07:10 UTC (rev 75810)
@@ -35,6 +35,7 @@
 #include "bio.h"
 
 #include "vmath.h"
+#include "bu/app.h"
 #include "bu/file.h"
 #include "bu/malloc.h"
 #include "bu/exit.h"
@@ -60,6 +61,8 @@
 
     double min, max;           /* high usage items */
 
+    bu_setprogname(argv[0]);
+
     if (argc < 2) {
        bu_exit(1, "Usage: dpix-pix file.dpix > file.pix\n");
     }

Modified: brlcad/trunk/src/util/gencolor.c
===================================================================
--- brlcad/trunk/src/util/gencolor.c    2020-05-15 01:35:14 UTC (rev 75809)
+++ brlcad/trunk/src/util/gencolor.c    2020-05-15 02:07:10 UTC (rev 75810)
@@ -31,6 +31,7 @@
 #include <ctype.h>
 #include <string.h>
 #include "bio.h"
+#include "bu/app.h"
 #include "bu/log.h"
 #include "bu/str.h"
 #include "bu/getopt.h"
@@ -119,6 +120,8 @@
     int remainder = 0;
     unsigned char *bp;
 
+    bu_setprogname(argv[0]);
+
     get_args(argc, argv);
     argc = argc - bu_optind + 1;
     argv = argv + bu_optind - 1;

Modified: brlcad/trunk/src/util/icv.cpp
===================================================================
--- brlcad/trunk/src/util/icv.cpp       2020-05-15 01:35:14 UTC (rev 75809)
+++ brlcad/trunk/src/util/icv.cpp       2020-05-15 02:07:10 UTC (rev 75810)
@@ -104,6 +104,8 @@
     int skip_out = 0;
     icv_image_t *img = NULL;
 
+    bu_setprogname(av[0]);
+
     struct bu_vls parse_msgs = BU_VLS_INIT_ZERO;
     struct bu_vls in_format = BU_VLS_INIT_ZERO;
     struct bu_vls in_path = BU_VLS_INIT_ZERO;

Modified: brlcad/trunk/src/util/imgdims.c
===================================================================
--- brlcad/trunk/src/util/imgdims.c     2020-05-15 01:35:14 UTC (rev 75809)
+++ brlcad/trunk/src/util/imgdims.c     2020-05-15 02:07:10 UTC (rev 75810)
@@ -33,6 +33,7 @@
 
 #include "vmath.h"
 
+#include "bu/app.h"
 #include "bu/getopt.h"
 #include "bu/file.h"
 #include "bu/malloc.h"
@@ -111,6 +112,8 @@
     size_t height;
     struct stat stat_buf;
 
+    bu_setprogname(argv[0]);
+
     /*
      * Process the command line
      */

Modified: brlcad/trunk/src/util/loop.c
===================================================================
--- brlcad/trunk/src/util/loop.c        2020-05-15 01:35:14 UTC (rev 75809)
+++ brlcad/trunk/src/util/loop.c        2020-05-15 02:07:10 UTC (rev 75810)
@@ -43,6 +43,7 @@
 
 #include "vmath.h"
 
+#include "bu/app.h"
 #include "bu/log.h"
 #include "bu/str.h"
 
@@ -74,6 +75,8 @@
 
     int oneone;
 
+    bu_setprogname(argv[0]);
+
     if (argc < 3 || argc > 5) {
        usage();
        return 9;

Modified: brlcad/trunk/src/util/lowp.c
===================================================================
--- brlcad/trunk/src/util/lowp.c        2020-05-15 01:35:14 UTC (rev 75809)
+++ brlcad/trunk/src/util/lowp.c        2020-05-15 02:07:10 UTC (rev 75810)
@@ -29,6 +29,7 @@
 #include <string.h>
 #include "bio.h"
 
+#include "bu/app.h"
 #include "bu/file.h"
 #include "bu/malloc.h"
 #include "bu/exit.h"
@@ -68,6 +69,8 @@
     ssize_t ret;
     char *ifname;
 
+    bu_setprogname(argv[0]);
+
     if (argc < 2) {
        fprintf(stderr, "%s", usage);
        bu_exit (1, NULL);

Modified: brlcad/trunk/src/util/mac-pix.c
===================================================================
--- brlcad/trunk/src/util/mac-pix.c     2020-05-15 01:35:14 UTC (rev 75809)
+++ brlcad/trunk/src/util/mac-pix.c     2020-05-15 02:07:10 UTC (rev 75810)
@@ -43,6 +43,7 @@
 #include <stdlib.h>
 #include "bio.h"
 
+#include "bu/app.h"
 #include "bu/getopt.h"
 #include "bu/exit.h"
 
@@ -226,6 +227,8 @@
     int first_y;               /* y: first pixel to be output in pix[] */
     size_t ret;
 
+    bu_setprogname(argv[0]);
+
     if (!get_args(argc, argv) || isatty(fileno(stdout))) {
        (void)fputs(usage, stderr);
        bu_exit (1, NULL);

Modified: brlcad/trunk/src/util/pc_test.c
===================================================================
--- brlcad/trunk/src/util/pc_test.c     2020-05-15 01:35:14 UTC (rev 75809)
+++ brlcad/trunk/src/util/pc_test.c     2020-05-15 02:07:10 UTC (rev 75810)
@@ -36,6 +36,7 @@
 #include "bio.h"
 
 #include "rt/db4.h"
+#include "bu/app.h"
 #include "raytrace.h"
 #include "wdb.h"
 #include "rt/geom.h"
@@ -52,6 +53,9 @@
     point_t cent;
     fastf_t rad;
     char solnam[9];
+
+    bu_setprogname(argv[0]);
+
     /* Set up solid name */
     solnam[0] = 's';
     solnam[1] = '.';

Modified: brlcad/trunk/src/util/pix-alias.c
===================================================================
--- brlcad/trunk/src/util/pix-alias.c   2020-05-15 01:35:14 UTC (rev 75809)
+++ brlcad/trunk/src/util/pix-alias.c   2020-05-15 02:07:10 UTC (rev 75810)
@@ -42,6 +42,7 @@
 #include <string.h>
 #include "bio.h"
 
+#include "bu/app.h"
 #include "bu/getopt.h"
 #include "bu/malloc.h"
 #include "bu/exit.h"
@@ -143,6 +144,7 @@
 {
     int c, optlen;
 
+    bu_setprogname(av[0]);
     progname = *av;
     if (isatty(fileno(stdin))) usage();
 

Modified: brlcad/trunk/src/util/pix-bw.c
===================================================================
--- brlcad/trunk/src/util/pix-bw.c      2020-05-15 01:35:14 UTC (rev 75809)
+++ brlcad/trunk/src/util/pix-bw.c      2020-05-15 02:07:10 UTC (rev 75810)
@@ -37,6 +37,7 @@
 #include "bio.h"
 
 #include "vmath.h"
+#include "bu/app.h"
 #include "bu/getopt.h"
 #include "bu/str.h"
 #include "bu/log.h"
@@ -159,6 +160,8 @@
        return 1;
     }
 
+    bu_setprogname(argv[0]);
+
     setmode(fileno(stdin), O_BINARY);
     setmode(fileno(stdout), O_BINARY);
     setmode(fileno(stderr), O_BINARY);

Modified: brlcad/trunk/src/util/pix-ps.c
===================================================================
--- brlcad/trunk/src/util/pix-ps.c      2020-05-15 01:35:14 UTC (rev 75809)
+++ brlcad/trunk/src/util/pix-ps.c      2020-05-15 02:07:10 UTC (rev 75810)
@@ -29,6 +29,7 @@
 #include <math.h>
 #include <time.h> /* for ctime() */
 #include "bio.h"
+#include "bu/app.h"
 #include "bu/getopt.h"
 #include "bu/exit.h"
 
@@ -214,6 +215,8 @@
     size_t scans_per_patch, bytes_per_patch;
     size_t y;
 
+    bu_setprogname(argv[0]);
+
     if (argc == 1 && isatty(fileno(stdin)) && isatty(fileno(stdout)) )
        printusage();
     if (!get_args(argc, argv))

Modified: brlcad/trunk/src/util/pix-spm.c
===================================================================
--- brlcad/trunk/src/util/pix-spm.c     2020-05-15 01:35:14 UTC (rev 75809)
+++ brlcad/trunk/src/util/pix-spm.c     2020-05-15 02:07:10 UTC (rev 75810)
@@ -28,6 +28,7 @@
 #include <stdio.h>
 #include <stdlib.h>
 
+#include "bu/app.h"
 #include "bu/exit.h"
 #include "bn/spm.h"
 #include "fb.h"
@@ -39,6 +40,8 @@
     int size;
     bn_spm_map_t *mp;
 
+    bu_setprogname(argv[0]);
+
     if (argc != 3) {
        bu_exit(1, "Usage: pix-spm file.pix size > file.spm\n");
     }

Modified: brlcad/trunk/src/util/pix-sun.c
===================================================================
--- brlcad/trunk/src/util/pix-sun.c     2020-05-15 01:35:14 UTC (rev 75809)
+++ brlcad/trunk/src/util/pix-sun.c     2020-05-15 02:07:10 UTC (rev 75810)
@@ -32,6 +32,7 @@
 #include <string.h>
 #include "bio.h"
 
+#include "bu/app.h"
 #include "bu/getopt.h"
 #include "bu/exit.h"
 
@@ -318,6 +319,7 @@
 {
     int c, optlen;
 
+    bu_setprogname(av[0]);
     progname = *av;
     if (isatty(fileno(stdin))) usage();
 

Modified: brlcad/trunk/src/util/pix3filter.c
===================================================================
--- brlcad/trunk/src/util/pix3filter.c  2020-05-15 01:35:14 UTC (rev 75809)
+++ brlcad/trunk/src/util/pix3filter.c  2020-05-15 02:07:10 UTC (rev 75810)
@@ -31,6 +31,7 @@
 #include <string.h>
 #include "bio.h"
 
+#include "bu/app.h"
 #include "bu/getopt.h"
 #include "bu/malloc.h"
 #include "bu/str.h"
@@ -229,6 +230,8 @@
     int value, r1, r2, r3, r4, r5, r6, r7, r8, r9;
     int max, min;
 
+    bu_setprogname(argv[0]);
+
     /* Select Default Filter (low pass) */
     select_filter("low");
 

Modified: brlcad/trunk/src/util/pixbackgnd.c
===================================================================
--- brlcad/trunk/src/util/pixbackgnd.c  2020-05-15 01:35:14 UTC (rev 75809)
+++ brlcad/trunk/src/util/pixbackgnd.c  2020-05-15 02:07:10 UTC (rev 75810)
@@ -33,6 +33,7 @@
 #include "bio.h"
 
 #include "vmath.h"
+#include "bu/app.h"
 #include "bu/getopt.h"
 #include "bu/malloc.h"
 #include "bu/exit.h"
@@ -255,6 +256,8 @@
     unsigned char *vert_buf;
     unsigned char *vp;
 
+    bu_setprogname(argv[0]);
+
     if (!get_args(argc, argv) || isatty(fileno(stdout))) {
        (void)fputs(usage, stderr);
        bu_exit(1, NULL);

Modified: brlcad/trunk/src/util/pixbgstrip.c
===================================================================
--- brlcad/trunk/src/util/pixbgstrip.c  2020-05-15 01:35:14 UTC (rev 75809)
+++ brlcad/trunk/src/util/pixbgstrip.c  2020-05-15 02:07:10 UTC (rev 75810)
@@ -30,6 +30,7 @@
 #include "bio.h"
 
 #include "vmath.h"
+#include "bu/app.h"
 #include "bu/getopt.h"
 #include "bu/malloc.h"
 #include "bu/exit.h"
@@ -120,6 +121,8 @@
     int r, g, b;
     size_t i;
 
+    bu_setprogname(argv[0]);
+
     if (!get_args(argc, argv)) {
        (void)fputs(usage, stderr);
        bu_exit (1, NULL);

Modified: brlcad/trunk/src/util/pixblend.c
===================================================================
--- brlcad/trunk/src/util/pixblend.c    2020-05-15 01:35:14 UTC (rev 75809)
+++ brlcad/trunk/src/util/pixblend.c    2020-05-15 02:07:10 UTC (rev 75810)
@@ -42,6 +42,7 @@
 #include <time.h>
 #include "bio.h"
 
+#include "bu/app.h"
 #include "bu/getopt.h"
 #include "bu/str.h"
 #include "bu/exit.h"
@@ -162,6 +163,8 @@
     int c = 0;
     size_t ret;
 
+    bu_setprogname(argv[0]);
+
     if (!get_args(argc, argv) || isatty(fileno(stdout))) {
        (void)fputs(usage, stderr);
        bu_exit (1, NULL);

Modified: brlcad/trunk/src/util/pixborder.c
===================================================================
--- brlcad/trunk/src/util/pixborder.c   2020-05-15 01:35:14 UTC (rev 75809)
+++ brlcad/trunk/src/util/pixborder.c   2020-05-15 02:07:10 UTC (rev 75810)
@@ -32,6 +32,7 @@
 #include "bio.h"
 
 #include "vmath.h"
+#include "bu/app.h"
 #include "bu/color.h"
 #include "bu/getopt.h"
 #include "bu/malloc.h"
@@ -480,6 +481,8 @@
     size_t col_nm;
     size_t row_nm;
 
+    bu_setprogname(argv[0]);
+
     VSETALL(border_rgb,     1);
     rgb_to_hsv(border_rgb, border_hsv);
     VSETALL(exterior_rgb,   1);

Modified: brlcad/trunk/src/util/pixbustup.c
===================================================================
--- brlcad/trunk/src/util/pixbustup.c   2020-05-15 01:35:14 UTC (rev 75809)
+++ brlcad/trunk/src/util/pixbustup.c   2020-05-15 02:07:10 UTC (rev 75810)
@@ -30,6 +30,7 @@
 #include <stdlib.h>
 #include "bio.h"
 
+#include "bu/app.h"
 #include "bu/malloc.h"
 #include "bu/log.h"
 #include "bu/file.h"
@@ -56,6 +57,8 @@
     char *base_name;
     char name[128];
 
+    bu_setprogname(argv[0]);
+
     if (argc < 3) {
        printUsage();
        return 1;

Modified: brlcad/trunk/src/util/pixclump.c
===================================================================
--- brlcad/trunk/src/util/pixclump.c    2020-05-15 01:35:14 UTC (rev 75809)
+++ brlcad/trunk/src/util/pixclump.c    2020-05-15 02:07:10 UTC (rev 75810)
@@ -32,6 +32,7 @@
 
 #include "vmath.h"
 
+#include "bu/app.h"
 #include "bu/color.h"
 #include "bu/getopt.h"
 #include "bu/malloc.h"
@@ -174,6 +175,8 @@
     int best_diff;     /* error in best match */
     int this_diff;     /* pixel-color_tbl difference */
 
+    bu_setprogname(argv[0]);
+
     /*
      * Initialize the color table
      */

Modified: brlcad/trunk/src/util/pixcolors.c
===================================================================
--- brlcad/trunk/src/util/pixcolors.c   2020-05-15 01:35:14 UTC (rev 75809)
+++ brlcad/trunk/src/util/pixcolors.c   2020-05-15 02:07:10 UTC (rev 75810)
@@ -123,9 +123,9 @@
 int main(int ac, char **av)
 {
     int c, isatty(int);
- 
+
     bu_setprogname(av[0]);
- 
+
     progname = *av;
 
     /* Get # of options & turn all the option flags off

Modified: brlcad/trunk/src/util/pixcount.cpp
===================================================================
--- brlcad/trunk/src/util/pixcount.cpp  2020-05-15 01:35:14 UTC (rev 75809)
+++ brlcad/trunk/src/util/pixcount.cpp  2020-05-15 02:07:10 UTC (rev 75810)
@@ -29,6 +29,7 @@
 #include <math.h>
 #include "bio.h"
 
+#include "bu/app.h"
 #include "bu/color.h"
 #include "bu/getopt.h"
 #include "bu/log.h"
@@ -173,6 +174,7 @@
     bu_rb_cmp_t farray[1];
     farray[0] = &compare_pixels;
 
+    bu_setprogname(argv[0]);
 
     /*
      * Process the command line

Modified: brlcad/trunk/src/util/pixcrop.c
===================================================================
--- brlcad/trunk/src/util/pixcrop.c     2020-05-15 01:35:14 UTC (rev 75809)
+++ brlcad/trunk/src/util/pixcrop.c     2020-05-15 02:07:10 UTC (rev 75810)
@@ -39,6 +39,7 @@
 
 #include "bio.h" /* for b_off_t */
 
+#include "bu/app.h"
 #include "bu/file.h"
 #include "bu/malloc.h"
 #include "bu/exit.h"
@@ -122,6 +123,8 @@
 
     int atoival;
 
+    bu_setprogname(argv[0]);
+
     if (argc < 3) {
        bu_exit(1, "%s", usage);
     }

Modified: brlcad/trunk/src/util/pixdiff.c
===================================================================
--- brlcad/trunk/src/util/pixdiff.c     2020-05-15 01:35:14 UTC (rev 75809)
+++ brlcad/trunk/src/util/pixdiff.c     2020-05-15 02:07:10 UTC (rev 75810)
@@ -38,6 +38,7 @@
 #endif
 #include "bio.h"
 
+#include "bu/app.h"
 #include "bu/str.h"
 #include "bu/exit.h"
 
@@ -69,6 +70,8 @@
     FILE *f1, *f2;
     struct stat sf1, sf2;
 
+    bu_setprogname(argv[0]);
+
     if (argc != 3 || isatty(fileno(stdout))) {
        bu_exit(1, "Usage: pixdiff f1.pix f2.pix >file.pix\n");
     }

Modified: brlcad/trunk/src/util/pixembed.c
===================================================================
--- brlcad/trunk/src/util/pixembed.c    2020-05-15 01:35:14 UTC (rev 75809)
+++ brlcad/trunk/src/util/pixembed.c    2020-05-15 02:07:10 UTC (rev 75810)
@@ -29,6 +29,7 @@
 #include <stdlib.h>
 #include "bio.h"
 
+#include "bu/app.h"
 #include "bu/getopt.h"
 #include "bu/malloc.h"
 #include "bu/exit.h"
@@ -124,6 +125,8 @@
     size_t i;
     size_t y;
 
+    bu_setprogname(argv[0]);
+
     if (!get_args(argc, argv) || isatty(fileno(stdout))) {
        (void)fputs(usage, stderr);
        bu_exit (1, NULL);

Modified: brlcad/trunk/src/util/pixfade.c
===================================================================
--- brlcad/trunk/src/util/pixfade.c     2020-05-15 01:35:14 UTC (rev 75809)
+++ brlcad/trunk/src/util/pixfade.c     2020-05-15 02:07:10 UTC (rev 75810)
@@ -51,6 +51,7 @@
 
 #include "bio.h"
 
+#include "bu/app.h"
 #include "bu/getopt.h"
 #include "bu/log.h"
 #include "bu/mime.h"
@@ -153,6 +154,9 @@
 main(int argc, char **argv)
 {
     icv_image_t *img;
+
+    bu_setprogname(argv[0]);
+
     if (!get_args(argc, argv)) {
         bu_log("%s", usage);
         return 1;

Modified: brlcad/trunk/src/util/pixfilter.c
===================================================================
--- brlcad/trunk/src/util/pixfilter.c   2020-05-15 01:35:14 UTC (rev 75809)
+++ brlcad/trunk/src/util/pixfilter.c   2020-05-15 02:07:10 UTC (rev 75810)
@@ -31,6 +31,7 @@
 #include <string.h>
 #include "bio.h"
 
+#include "bu/app.h"
 #include "bu/getopt.h"
 #include "bu/str.h"
 #include "bu/exit.h"
@@ -147,6 +148,8 @@
     int max, min;
     size_t ret;
 
+    bu_setprogname(argv[0]);
+
     /* Select Default Filter (low pass) */
     select_filter("low");
 

Modified: brlcad/trunk/src/util/pixhalve.c
===================================================================
--- brlcad/trunk/src/util/pixhalve.c    2020-05-15 01:35:14 UTC (rev 75809)
+++ brlcad/trunk/src/util/pixhalve.c    2020-05-15 02:07:10 UTC (rev 75810)
@@ -35,6 +35,7 @@
 #include "bio.h"
 
 #include "vmath.h"
+#include "bu/app.h"
 #include "bu/getopt.h"
 #include "bu/malloc.h"
 #include "bu/exit.h"
@@ -318,6 +319,8 @@
     size_t i;
     int eof_seen;
 
+    bu_setprogname(argv[0]);
+
     if (!get_args(argc, argv)) {
        (void)fputs(usage, stderr);
        bu_exit (1, NULL);

Modified: brlcad/trunk/src/util/pixhist.c
===================================================================
--- brlcad/trunk/src/util/pixhist.c     2020-05-15 01:35:14 UTC (rev 75809)
+++ brlcad/trunk/src/util/pixhist.c     2020-05-15 02:07:10 UTC (rev 75810)
@@ -31,6 +31,7 @@
 
 #include "bio.h"
 
+#include "bu/app.h"
 #include "bu/color.h"
 #include "bu/log.h"
 #include "bu/str.h"
@@ -58,6 +59,8 @@
 {
     int i;
 
+    bu_setprogname(argv[0]);
+
     /* check for verbose flag */
     if (argc > 1 && BU_STR_EQUAL(argv[1], "-v")) {
        verbose++;

Modified: brlcad/trunk/src/util/pixhist3d-plot3.c
===================================================================
--- brlcad/trunk/src/util/pixhist3d-plot3.c     2020-05-15 01:35:14 UTC (rev 
75809)
+++ brlcad/trunk/src/util/pixhist3d-plot3.c     2020-05-15 02:07:10 UTC (rev 
75810)
@@ -31,6 +31,7 @@
 #include <stdlib.h>
 #include "bio.h"
 
+#include "bu/app.h"
 #include "bu/exit.h"
 #include "vmath.h"
 #include "bn.h"
@@ -55,6 +56,8 @@
     struct pix_element scan[512];
     unsigned char bmask;
 
+    bu_setprogname(argv[0]);
+
     if (argc > 1) {
        if ((fp = fopen(argv[1], "r")) == NULL) {
            fprintf(stderr, "%s", Usage);

Modified: brlcad/trunk/src/util/pixhist3d.c
===================================================================
--- brlcad/trunk/src/util/pixhist3d.c   2020-05-15 01:35:14 UTC (rev 75809)
+++ brlcad/trunk/src/util/pixhist3d.c   2020-05-15 02:07:10 UTC (rev 75810)
@@ -36,6 +36,7 @@
 
 #include "bio.h"
 
+#include "bu/app.h"
 #include "bu/color.h"
 #include "bu/str.h"
 #include "bu/exit.h"
@@ -67,6 +68,8 @@
 {
     int n;
 
+    bu_setprogname(argv[0]);
+
     if (argc > 1) {
        if ( BU_STR_EQUAL(argv[1],"-h") || BU_STR_EQUAL(argv[1],"-?"))
            bu_exit(2, "%s", Usage);

Modified: brlcad/trunk/src/util/pixinterp2x.c
===================================================================
--- brlcad/trunk/src/util/pixinterp2x.c 2020-05-15 01:35:14 UTC (rev 75809)
+++ brlcad/trunk/src/util/pixinterp2x.c 2020-05-15 02:07:10 UTC (rev 75810)
@@ -29,6 +29,7 @@
 #include <stdlib.h>
 #include "bio.h"
 
+#include "bu/app.h"
 #include "bu/getopt.h"
 #include "bu/malloc.h"
 #include "bu/exit.h"
@@ -94,6 +95,8 @@
     unsigned char *inbuf;
     size_t ret;
 
+    bu_setprogname(argv[0]);
+
     infp = stdin;
     if (!get_args(argc, argv)) {
        (void)fputs(usage, stderr);

Modified: brlcad/trunk/src/util/pixmatte.c
===================================================================
--- brlcad/trunk/src/util/pixmatte.c    2020-05-15 01:35:14 UTC (rev 75809)
+++ brlcad/trunk/src/util/pixmatte.c    2020-05-15 02:07:10 UTC (rev 75810)
@@ -46,6 +46,7 @@
 #include <string.h>
 #include "bio.h"
 
+#include "bu/app.h"
 #include "bu/getopt.h"
 #include "bu/log.h"
 #include "bu/str.h"
@@ -212,6 +213,8 @@
 
     int chunkcount = 0;
 
+    bu_setprogname(argv[0]);
+
     get_args(argc, argv);
 
     if (isatty(fileno(stdout)))

Modified: brlcad/trunk/src/util/pixmerge.c
===================================================================
--- brlcad/trunk/src/util/pixmerge.c    2020-05-15 01:35:14 UTC (rev 75809)
+++ brlcad/trunk/src/util/pixmerge.c    2020-05-15 02:07:10 UTC (rev 75810)
@@ -36,6 +36,7 @@
 #include <string.h>
 #include "bio.h"
 
+#include "bu/app.h"
 #include "bu/getopt.h"
 #include "bu/str.h"
 #include "bu/exit.h"
@@ -172,6 +173,8 @@
 {
     size_t ret;
 
+    bu_setprogname(argv[0]);
+
     if (!get_args(argc, argv) || isatty(fileno(stdout))) {
        (void)fputs(usage, stderr);
        bu_exit (1, NULL);

Modified: brlcad/trunk/src/util/pixmorph.c
===================================================================
--- brlcad/trunk/src/util/pixmorph.c    2020-05-15 01:35:14 UTC (rev 75809)
+++ brlcad/trunk/src/util/pixmorph.c    2020-05-15 02:07:10 UTC (rev 75810)
@@ -45,6 +45,7 @@
 #include "bio.h"
 
 #include "vmath.h"
+#include "bu/app.h"
 #include "bu/color.h"
 #include "bu/getopt.h"
 #include "bu/malloc.h"
@@ -414,6 +415,8 @@
     long int i;
     long int autosize;
 
+    bu_setprogname(argv[0]);
+
     autosize = 1L;
     pa_width = pa_height = 0;
     if (get_args(argc, argv, &picAname, &picBname, &linesfilename,

Modified: brlcad/trunk/src/util/pixrect.c
===================================================================
--- brlcad/trunk/src/util/pixrect.c     2020-05-15 01:35:14 UTC (rev 75809)
+++ brlcad/trunk/src/util/pixrect.c     2020-05-15 02:07:10 UTC (rev 75810)
@@ -28,6 +28,7 @@
 #include <stdlib.h>
 #include "bio.h"
 
+#include "bu/app.h"
 #include "bu/getopt.h"
 #include "bu/log.h"
 #include "bu/mime.h"
@@ -112,6 +113,8 @@
 {
     icv_image_t *img;
 
+    bu_setprogname(argv[0]);
+
     if (!get_args(argc, argv)) {
        bu_log("%s", usage);
        return 1;

Modified: brlcad/trunk/src/util/pixrot.c
===================================================================
--- brlcad/trunk/src/util/pixrot.c      2020-05-15 01:35:14 UTC (rev 75809)
+++ brlcad/trunk/src/util/pixrot.c      2020-05-15 02:07:10 UTC (rev 75810)
@@ -37,6 +37,7 @@
 #include <stdlib.h>
 #include "bio.h"
 
+#include "bu/app.h"
 #include "bu/getopt.h"
 #include "bu/log.h"
 #include "bu/file.h"
@@ -145,6 +146,8 @@
     b_off_t outbyte, outplace;
     size_t ret;
 
+    bu_setprogname(argv[0]);
+
     if (!get_args(argc, argv) || isatty(fileno(stdout))) {
        bu_exit(1, "%s", usage);
     }

Modified: brlcad/trunk/src/util/pixsaturate.c
===================================================================
--- brlcad/trunk/src/util/pixsaturate.c 2020-05-15 01:35:14 UTC (rev 75809)
+++ brlcad/trunk/src/util/pixsaturate.c 2020-05-15 02:07:10 UTC (rev 75810)
@@ -36,6 +36,7 @@
 #include <math.h>
 #include "bio.h"
 
+#include "bu/app.h"
 #include "bu/str.h"
 #include "bu/exit.h"
 
@@ -64,6 +65,8 @@
     unsigned char *cp;
     size_t ret;
 
+    bu_setprogname(argv[0]);
+
     if (argc != 2)
        printusage ();
     if ( BU_STR_EQUAL(argv[1], "-h") || BU_STR_EQUAL(argv[1], "-?") )

Modified: brlcad/trunk/src/util/pixscale.c
===================================================================
--- brlcad/trunk/src/util/pixscale.c    2020-05-15 01:35:14 UTC (rev 75809)
+++ brlcad/trunk/src/util/pixscale.c    2020-05-15 02:07:10 UTC (rev 75810)
@@ -38,6 +38,7 @@
 #include <stdlib.h>
 #include "bio.h"
 
+#include "bu/app.h"
 #include "bu/getopt.h"
 #include "bu/malloc.h"
 #include "bu/log.h"
@@ -417,6 +418,8 @@
 {
     int i;
 
+    bu_setprogname(argv[0]);
+
     if (argc == 1 && isatty(fileno(stdin)) && isatty(fileno(stdout)))
        bu_exit(1, "%s", usage);
     if (!get_args(argc, argv) || isatty(fileno(stdout)))

Modified: brlcad/trunk/src/util/pixstat.c
===================================================================
--- brlcad/trunk/src/util/pixstat.c     2020-05-15 01:35:14 UTC (rev 75809)
+++ brlcad/trunk/src/util/pixstat.c     2020-05-15 02:07:10 UTC (rev 75810)
@@ -40,6 +40,7 @@
 #include <math.h>
 #include "bio.h"
 
+#include "bu/app.h"
 #include "bu/str.h"
 #include "bu/exit.h"
 
@@ -84,6 +85,8 @@
     unsigned char *bp;
     FILE *fp;
 
+    bu_setprogname(argv[0]);
+
     /* check for verbose flag */
     if (argc > 1 && BU_STR_EQUAL(argv[1], "-v")) {
        verbose++;

Modified: brlcad/trunk/src/util/pixsubst.c
===================================================================
--- brlcad/trunk/src/util/pixsubst.c    2020-05-15 01:35:14 UTC (rev 75809)
+++ brlcad/trunk/src/util/pixsubst.c    2020-05-15 02:07:10 UTC (rev 75810)
@@ -27,6 +27,7 @@
 #include <stdlib.h>
 #include <errno.h>
 
+#include "bu/app.h"
 #include "bu/log.h"
 
 
@@ -38,6 +39,8 @@
     int npixels;
     size_t ret;
 
+    bu_setprogname(argv[0]);
+
     if (argc != 4 && argc != 7) {
        bu_log("Usage: %s [R_in G_in B_in] R_out G_out B_out < pix_in > 
pix_out\n", argv[0]);
        bu_log("\t\tRGB_in is changed to RGB_out .\n");

Modified: brlcad/trunk/src/util/pixtile.c
===================================================================
--- brlcad/trunk/src/util/pixtile.c     2020-05-15 01:35:14 UTC (rev 75809)
+++ brlcad/trunk/src/util/pixtile.c     2020-05-15 02:07:10 UTC (rev 75810)
@@ -31,6 +31,7 @@
 #include <string.h>
 #include "bio.h"
 
+#include "bu/app.h"
 #include "bu/getopt.h"
 #include "bu/file.h"
 #include "bu/malloc.h"
@@ -116,6 +117,8 @@
     char name[256] = {0};
     ssize_t ret;
 
+    bu_setprogname(argv[0]);
+
     if (!get_args(argc, argv)) {
        (void)fputs(usage, stderr);
        bu_exit (1, NULL);

Modified: brlcad/trunk/src/util/pixuntile.c
===================================================================
--- brlcad/trunk/src/util/pixuntile.c   2020-05-15 01:35:14 UTC (rev 75809)
+++ brlcad/trunk/src/util/pixuntile.c   2020-05-15 02:07:10 UTC (rev 75810)
@@ -31,6 +31,7 @@
 #include <string.h>
 #include "bio.h"
 
+#include "bu/app.h"
 #include "bu/getopt.h"
 #include "bu/str.h"
 #include "bu/exit.h"
@@ -109,6 +110,8 @@
     FILE *f[8] = {NULL};
     size_t ret;
 
+    bu_setprogname(argv[0]);
+
     if (!get_args(argc, argv)) {
        (void)fputs(usage, stderr);
        bu_exit (1, NULL);

Modified: brlcad/trunk/src/util/plot3-asc.c
===================================================================
--- brlcad/trunk/src/util/plot3-asc.c   2020-05-15 01:35:14 UTC (rev 75809)
+++ brlcad/trunk/src/util/plot3-asc.c   2020-05-15 02:07:10 UTC (rev 75810)
@@ -30,6 +30,7 @@
 #include <string.h>
 #include "bio.h"
 
+#include "bu/app.h"
 #include "bu/cv.h"
 #include "bu/str.h"
 #include "bu/exit.h"
@@ -129,6 +130,8 @@
     struct uplot *up;
     int i;
 
+    bu_setprogname(argv[0]);
+
     while (argc > 1) {
        if (BU_STR_EQUAL(argv[1], "-v")) {
            verbose++;

Modified: brlcad/trunk/src/util/plot3-plot3.c
===================================================================
--- brlcad/trunk/src/util/plot3-plot3.c 2020-05-15 01:35:14 UTC (rev 75809)
+++ brlcad/trunk/src/util/plot3-plot3.c 2020-05-15 02:07:10 UTC (rev 75810)
@@ -31,6 +31,7 @@
 #include <string.h>
 #include "bio.h"
 
+#include "bu/app.h"
 #include "bu/str.h"
 #include "bu/cv.h"
 #include "bu/exit.h"
@@ -144,6 +145,8 @@
     int c;
     struct uplot *up;
 
+    bu_setprogname(argv[0]);
+
     while (argc > 1) {
        if (BU_STR_EQUAL(argv[1], "-v")) {
            verbose++;

Modified: brlcad/trunk/src/util/plot3-ps.c
===================================================================
--- brlcad/trunk/src/util/plot3-ps.c    2020-05-15 01:35:14 UTC (rev 75809)
+++ brlcad/trunk/src/util/plot3-ps.c    2020-05-15 02:07:10 UTC (rev 75810)
@@ -33,6 +33,7 @@
 #include "bio.h"
 
 #include "vmath.h"
+#include "bu/app.h"
 #include "bu/getopt.h"
 #include "bu/cv.h"
 #include "bu/str.h"
@@ -421,6 +422,8 @@
     int c;
     struct uplot *up;
 
+    bu_setprogname(argv[0]);
+
     if (!get_args(argc, argv)) {
        (void)fputs(usage, stderr);
        bu_exit (1, NULL);

Modified: brlcad/trunk/src/util/plot3color.c
===================================================================
--- brlcad/trunk/src/util/plot3color.c  2020-05-15 01:35:14 UTC (rev 75809)
+++ brlcad/trunk/src/util/plot3color.c  2020-05-15 02:07:10 UTC (rev 75810)
@@ -28,6 +28,7 @@
 #include <stdlib.h>
 #include "bio.h"
 
+#include "bu/app.h"
 #include "bu/exit.h"
 #include "vmath.h"
 #include "bn/plot3.h"
@@ -41,6 +42,8 @@
     int c;
     int r, g, b;
 
+    bu_setprogname(argv[0]);
+
     if (argc != 4 || isatty(fileno(stdout))) {
        bu_exit(1, "%s", usage);
     }

Modified: brlcad/trunk/src/util/plot3getframe.c
===================================================================
--- brlcad/trunk/src/util/plot3getframe.c       2020-05-15 01:35:14 UTC (rev 
75809)
+++ brlcad/trunk/src/util/plot3getframe.c       2020-05-15 02:07:10 UTC (rev 
75810)
@@ -30,6 +30,7 @@
 #include <stdlib.h>
 #include "bio.h"
 
+#include "bu/app.h"
 #include "bu/str.h"
 #include "bu/log.h"
 
@@ -121,6 +122,8 @@
     int current_frame = 0;
     size_t ret;
 
+    bu_setprogname(argv[0]);
+
     while (argc > 1) {
        if (BU_STR_EQUAL(argv[1], "-v")) {
            verbose++;

Modified: brlcad/trunk/src/util/plot3line2.c
===================================================================
--- brlcad/trunk/src/util/plot3line2.c  2020-05-15 01:35:14 UTC (rev 75809)
+++ brlcad/trunk/src/util/plot3line2.c  2020-05-15 02:07:10 UTC (rev 75810)
@@ -30,6 +30,7 @@
 #include <string.h>
 #include "bio.h"
 
+#include "bu/app.h"
 #include "bu/exit.h"
 #include "vmath.h"
 #include "bn/plot3.h"
@@ -46,6 +47,8 @@
     int g = 0;
     int b = 0;
 
+    bu_setprogname(argv[0]);
+
     if (argc < 5 || isatty(fileno(stdout))) {
        bu_exit(1, "%s", usage);
     }

Modified: brlcad/trunk/src/util/plot3rot.c
===================================================================
--- brlcad/trunk/src/util/plot3rot.c    2020-05-15 01:35:14 UTC (rev 75809)
+++ brlcad/trunk/src/util/plot3rot.c    2020-05-15 02:07:10 UTC (rev 75810)
@@ -31,6 +31,7 @@
 #include <math.h>
 
 #include "bio.h"   /* for isatty */
+#include "bu/app.h"
 #include "bu/getopt.h"
 #include "bu/str.h"
 #include "bu/log.h"
@@ -322,6 +323,8 @@
    -v             Verbose\n\
    -S#            Space: takes a quoted string of six floats\n";
 
+    bu_setprogname(argv[0]);
+
     if (!get_args(argc, argv)) {
        fputs("Usage: plot3rot [options] [file1 ... fileN] > file.plot3\n", 
stderr);
 

Modified: brlcad/trunk/src/util/plot3stat.c
===================================================================
--- brlcad/trunk/src/util/plot3stat.c   2020-05-15 01:35:14 UTC (rev 75809)
+++ brlcad/trunk/src/util/plot3stat.c   2020-05-15 02:07:10 UTC (rev 75810)
@@ -29,6 +29,7 @@
 #include <string.h>
 #include "bio.h"
 
+#include "bu/app.h"
 #include "bu/cv.h"
 #include "bu/str.h"
 #include "bu/exit.h"
@@ -144,6 +145,8 @@
     struct uplot *up;
     int i;
 
+    bu_setprogname(argv[0]);
+
     while (argc > 1) {
        if (BU_STR_EQUAL(argv[1], "-v")) {
            verbose++;

Modified: brlcad/trunk/src/util/png-bw.c
===================================================================
--- brlcad/trunk/src/util/png-bw.c      2020-05-15 01:35:14 UTC (rev 75809)
+++ brlcad/trunk/src/util/png-bw.c      2020-05-15 02:07:10 UTC (rev 75810)
@@ -31,6 +31,7 @@
 #include "png.h"
 #include "bio.h"
 
+#include "bu/app.h"
 #include "bu/log.h"
 #include "bu/malloc.h"
 #include "bu/str.h"
@@ -73,6 +74,8 @@
     double value;
     size_t ret;
 
+    bu_setprogname(argv[0]);
+
     while (argc > 1 && argv[1][0] == '-') {
        if (BU_STR_EQUAL(argv[1], "-v"))
            verbose = 1;

Modified: brlcad/trunk/src/util/png-pix.c
===================================================================
--- brlcad/trunk/src/util/png-pix.c     2020-05-15 01:35:14 UTC (rev 75809)
+++ brlcad/trunk/src/util/png-pix.c     2020-05-15 02:07:10 UTC (rev 75810)
@@ -31,6 +31,7 @@
 #include "bio.h"
 
 #include "vmath.h"
+#include "bu/app.h"
 #include "bu/getopt.h"
 #include "bu/log.h"
 #include "bu/malloc.h"
@@ -60,6 +61,8 @@
     unsigned char **rows;
     size_t ret;
 
+    bu_setprogname(argv[0]);
+
     while ((c=bu_getopt(argc, argv, "v")) != -1) {
        switch (c) {
            case 'v':

Modified: brlcad/trunk/src/util/random.c
===================================================================
--- brlcad/trunk/src/util/random.c      2020-05-15 01:35:14 UTC (rev 75809)
+++ brlcad/trunk/src/util/random.c      2020-05-15 02:07:10 UTC (rev 75810)
@@ -32,6 +32,7 @@
 #include "bio.h"
 
 #include "vmath.h"
+#include "bu/app.h"
 #include "bu/getopt.h"
 #include "bu/process.h"
 #include "bu/log.h"
@@ -60,6 +61,8 @@
     int cdone = 0;
     int c;
 
+    bu_setprogname(argv[0]);
+
     while ((c = bu_getopt(argc, argv, "vugs:c:h?")) != -1) {
        switch (c) {
            case 's':

Modified: brlcad/trunk/src/util/roots_example.c
===================================================================
--- brlcad/trunk/src/util/roots_example.c       2020-05-15 01:35:14 UTC (rev 
75809)
+++ brlcad/trunk/src/util/roots_example.c       2020-05-15 02:07:10 UTC (rev 
75810)
@@ -28,6 +28,7 @@
 #include "common.h"
 
 #include "vmath.h"
+#include "bu/app.h"
 #include "bn.h"
 #include "raytrace.h"
 
@@ -38,6 +39,8 @@
     bn_complex_t roots[BN_MAX_POLY_DEGREE]; /* stash up to four roots */
     int num_roots;
 
+    bu_setprogname(argv[0]);
+
     if (argc > 1)
        bu_exit(1, "%s: unexpected argument(s)\n", argv[0]);
 

Modified: brlcad/trunk/src/util/sun-pix.c
===================================================================
--- brlcad/trunk/src/util/sun-pix.c     2020-05-15 01:35:14 UTC (rev 75809)
+++ brlcad/trunk/src/util/sun-pix.c     2020-05-15 02:07:10 UTC (rev 75810)
@@ -32,6 +32,7 @@
 
 #include "vmath.h"
 
+#include "bu/app.h"
 #include "bu/malloc.h"
 #include "bu/getopt.h"
 #include "bu/log.h"
@@ -265,6 +266,8 @@
     int scanbytes;             /* bytes/line (padded to 16 bits) */
     unsigned char c, cmap_idx, buf[BU_PAGE_SIZE];
 
+    bu_setprogname(argv[0]);
+
     fp = stdin;
     if (!get_args(argc, argv) || (isatty(fileno(stdout)) && (hflag == 0))) {
        (void)fputs(usage, stderr);

Modified: brlcad/trunk/src/util/terrain.c
===================================================================
--- brlcad/trunk/src/util/terrain.c     2020-05-15 01:35:14 UTC (rev 75809)
+++ brlcad/trunk/src/util/terrain.c     2020-05-15 02:07:10 UTC (rev 75810)
@@ -43,6 +43,7 @@
 #include "bio.h"
 
 #include "vmath.h"
+#include "bu/app.h"
 #include "bu/cv.h"
 #include "bu/getopt.h"
 #include "bu/malloc.h"
@@ -681,6 +682,8 @@
     /* function to call to generate the terrain.  Default noise pattern is fbm 
*/
     void (*terrain_func)(unsigned short *);
 
+    bu_setprogname(av[0]);
+
     terrain_func = NULL;
     arg_count = parse_args(ac, av, &terrain_func);
 

Modified: brlcad/trunk/src/util/wavelet.c
===================================================================
--- brlcad/trunk/src/util/wavelet.c     2020-05-15 01:35:14 UTC (rev 75809)
+++ brlcad/trunk/src/util/wavelet.c     2020-05-15 02:07:10 UTC (rev 75810)
@@ -47,6 +47,7 @@
 #include "bio.h"
 
 #include "vmath.h"
+#include "bu/app.h"
 #include "bu/getopt.h"
 #include "bu/malloc.h"
 #include "bu/exit.h"
@@ -393,6 +394,7 @@
 int
 main(int ac, char **av)
 {
+    bu_setprogname(av[0]);
 
     /* parse command flags, and make sure there are arguments
      * left over for processing.

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.



_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits

Reply via email to