[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gnuastro-commits] master 92d51f2 1/2: Programs reporting their versions
From: |
Mohammad Akhlaghi |
Subject: |
[gnuastro-commits] master 92d51f2 1/2: Programs reporting their versions in verbose mode also |
Date: |
Thu, 6 Sep 2018 05:26:12 -0400 (EDT) |
branch: master
commit 92d51f28387a48db21410aa23fd2540232495f29
Author: Mohammad Akhlaghi <address@hidden>
Commit: Mohammad Akhlaghi <address@hidden>
Programs reporting their versions in verbose mode also
Those programs that report the status of their progress when `--quiet'
isn't called, now also report their version number.
---
bin/crop/ui.c | 3 ++-
bin/mkcatalog/ui.c | 3 ++-
bin/mknoise/ui.c | 3 ++-
bin/mkprof/ui.c | 2 +-
bin/noisechisel/ui.c | 3 ++-
bin/segment/ui.c | 3 ++-
bin/warp/ui.c | 3 ++-
7 files changed, 13 insertions(+), 7 deletions(-)
diff --git a/bin/crop/ui.c b/bin/crop/ui.c
index 62507d4..f7afc41 100644
--- a/bin/crop/ui.c
+++ b/bin/crop/ui.c
@@ -1030,7 +1030,8 @@ ui_read_check_inputs_setup(int argc, char *argv[], struct
cropparams *p)
/* Report timing: */
if(!p->cp.quiet)
{
- printf(PROGRAM_NAME" started on %s", ctime(&p->rawtime));
+ printf(PROGRAM_NAME" "PACKAGE_VERSION" started on %s",
+ ctime(&p->rawtime));
if(p->cp.numthreads>1)
printf(" - Using %zu CPU thread%s\n", p->cp.numthreads,
p->cp.numthreads==1 ? "." : "s.");
diff --git a/bin/mkcatalog/ui.c b/bin/mkcatalog/ui.c
index 80b6c83..0298562 100644
--- a/bin/mkcatalog/ui.c
+++ b/bin/mkcatalog/ui.c
@@ -1513,7 +1513,8 @@ ui_read_check_inputs_setup(int argc, char *argv[], struct
mkcatalogparams *p)
if(!p->cp.quiet)
{
/* Write the information. */
- printf(PROGRAM_NAME" started on %s", ctime(&p->rawtime));
+ printf(PROGRAM_NAME" "PACKAGE_VERSION" started on %s",
+ ctime(&p->rawtime));
printf(" - Using %zu CPU thread%s\n", p->cp.numthreads,
p->cp.numthreads==1 ? "." : "s.");
printf(" - Objects: %s (hdu: %s)\n", p->objectsfile, p->cp.hdu);
diff --git a/bin/mknoise/ui.c b/bin/mknoise/ui.c
index 301d3f6..2ab9849 100644
--- a/bin/mknoise/ui.c
+++ b/bin/mknoise/ui.c
@@ -402,7 +402,8 @@ ui_read_check_inputs_setup(int argc, char *argv[], struct
mknoiseparams *p)
/* Everything is ready, notify the user of the program starting. */
if(!p->cp.quiet)
{
- printf(PROGRAM_NAME" started on %s", ctime(&p->rawtime));
+ printf(PROGRAM_NAME" "PACKAGE_VERSION" started on %s",
+ ctime(&p->rawtime));
sprintf(message, "Random number generator type: %s",
gsl_rng_name(p->rng));
gal_timing_report(NULL, message, 1);
diff --git a/bin/mkprof/ui.c b/bin/mkprof/ui.c
index 36daec8..391146a 100644
--- a/bin/mkprof/ui.c
+++ b/bin/mkprof/ui.c
@@ -1401,7 +1401,7 @@ ui_print_intro(struct mkprofparams *p)
if(p->cp.quiet) return;
- printf(PROGRAM_NAME" started on %s", ctime(&p->rawtime));
+ printf(PROGRAM_NAME" "PACKAGE_VERSION" started on %s", ctime(&p->rawtime));
if(p->kernel)
{
diff --git a/bin/noisechisel/ui.c b/bin/noisechisel/ui.c
index f72e38a..8e31aec 100644
--- a/bin/noisechisel/ui.c
+++ b/bin/noisechisel/ui.c
@@ -708,7 +708,8 @@ ui_read_check_inputs_setup(int argc, char *argv[],
/* Let the user know that processing has started. */
if(!p->cp.quiet)
{
- printf(PROGRAM_NAME" started on %s", ctime(&p->rawtime));
+ printf(PROGRAM_NAME" "PACKAGE_VERSION" started on %s",
+ ctime(&p->rawtime));
printf(" - Using %zu CPU thread%s\n", p->cp.numthreads,
p->cp.numthreads==1 ? "." : "s.");
printf(" - Input: %s (hdu: %s)\n", p->inputname, p->cp.hdu);
diff --git a/bin/segment/ui.c b/bin/segment/ui.c
index 1cd006b..eb4a752 100644
--- a/bin/segment/ui.c
+++ b/bin/segment/ui.c
@@ -914,7 +914,8 @@ ui_read_check_inputs_setup(int argc, char *argv[], struct
segmentparams *p)
if(!p->cp.quiet)
{
/* Basic inputs. */
- printf(PROGRAM_NAME" started on %s", ctime(&p->rawtime));
+ printf(PROGRAM_NAME" "PACKAGE_VERSION" started on %s",
+ ctime(&p->rawtime));
printf(" - Using %zu CPU thread%s\n", p->cp.numthreads,
p->cp.numthreads==1 ? "." : "s.");
printf(" - Input: %s (hdu: %s)\n", p->inputname, p->cp.hdu);
diff --git a/bin/warp/ui.c b/bin/warp/ui.c
index 8c79754..d767db8 100644
--- a/bin/warp/ui.c
+++ b/bin/warp/ui.c
@@ -947,7 +947,8 @@ ui_read_check_inputs_setup(int argc, char *argv[], struct
warpparams *p)
if(!p->cp.quiet)
{
matrix=p->matrix->array;
- printf(PROGRAM_NAME" started on %s", ctime(&p->rawtime));
+ printf(PROGRAM_NAME" "PACKAGE_VERSION" started on %s",
+ ctime(&p->rawtime));
printf(" Using %zu CPU thread%s\n", p->cp.numthreads,
p->cp.numthreads==1 ? "." : "s.");
printf(" Input: %s (hdu: %s)\n", p->inputname, p->cp.hdu);