From: <kin...@us...> - 2013-10-03 17:52:14
|
Revision: 6126 http://sourceforge.net/p/teem/code/6126 Author: kindlmann Date: 2013-10-03 17:52:12 +0000 (Thu, 03 Oct 2013) Log Message: ----------- using airTeemVersionSprint Modified Paths: -------------- teem/trunk/src/bin/nrrdSanity.c teem/trunk/src/bin/tend.c teem/trunk/src/bin/unu.c teem/trunk/src/hest/parseHest.c teem/trunk/src/limn/lpu_about.c teem/trunk/src/ten/tendAbout.c teem/trunk/src/unrrdu/about.c Modified: teem/trunk/src/bin/nrrdSanity.c =================================================================== --- teem/trunk/src/bin/nrrdSanity.c 2013-10-03 17:48:49 UTC (rev 6125) +++ teem/trunk/src/bin/nrrdSanity.c 2013-10-03 17:52:12 UTC (rev 6126) @@ -33,8 +33,9 @@ me = argv[0]; if (2 == argc) { if (!strcmp(argv[1], "--version")) { - printf("Teem version %s (%s)\n", - airTeemVersion, airTeemReleaseDate); + char vbuff[AIR_STRLEN_LARGE]; + airTeemVersionSprint(vbuff); + printf("%s\n", vbuff); exit(0); } else if (!strcmp(argv[1], "--help")) { char par1[] = "\n Usage: nrrdSanity\n "; Modified: teem/trunk/src/bin/tend.c =================================================================== --- teem/trunk/src/bin/tend.c 2013-10-03 17:48:49 UTC (rev 6125) +++ teem/trunk/src/bin/tend.c 2013-10-03 17:52:12 UTC (rev 6126) @@ -64,8 +64,9 @@ } /* else, we see if its --version */ if (!strcmp("--version", argv[1])) { - printf("Teem version %s (%s)\n", - airTeemVersion, airTeemReleaseDate); + char vbuff[AIR_STRLEN_LARGE]; + airTeemVersionSprint(vbuff); + printf("%s\n", vbuff); exit(0); } /* else, we should see if they're asking for a command we know about */ Modified: teem/trunk/src/bin/unu.c =================================================================== --- teem/trunk/src/bin/unu.c 2013-10-03 17:48:49 UTC (rev 6125) +++ teem/trunk/src/bin/unu.c 2013-10-03 17:52:12 UTC (rev 6126) @@ -88,8 +88,9 @@ } /* else, we see if its --version */ if (!strcmp("--version", argv[1])) { - printf("Teem version %s (%s)\n", - airTeemVersion, airTeemReleaseDate); + char vbuff[AIR_STRLEN_LARGE]; + airTeemVersionSprint(vbuff); + printf("%s\n", vbuff); exit(0); } /* else, we should see if they're asking for a command we know about */ Modified: teem/trunk/src/hest/parseHest.c =================================================================== --- teem/trunk/src/hest/parseHest.c 2013-10-03 17:48:49 UTC (rev 6125) +++ teem/trunk/src/hest/parseHest.c 2013-10-03 17:52:12 UTC (rev 6126) @@ -1367,8 +1367,9 @@ if (E) { if (argv[0] && !strcmp(argv[0], "--version")) { /* print version info and bail */ - printf("Teem version %s (%s)\n", - airTeemVersion, airTeemReleaseDate); + char vbuff[AIR_STRLEN_LARGE]; + airTeemVersionSprint(vbuff); + printf("%s\n", vbuff); hestParmFree(parm); hestOptFree(opt); exit(0); Modified: teem/trunk/src/limn/lpu_about.c =================================================================== --- teem/trunk/src/limn/lpu_about.c 2013-10-03 17:48:49 UTC (rev 6125) +++ teem/trunk/src/limn/lpu_about.c 2013-10-03 17:52:12 UTC (rev 6126) @@ -28,7 +28,7 @@ int limnpu_aboutMain(int argc, const char **argv, const char *me, hestParm *hparm) { - char buff[AIR_STRLEN_MED], fmt[AIR_STRLEN_MED]; + char buff[AIR_STRLEN_LARGE], fmt[AIR_STRLEN_MED]; char par1[] = "\t\t\t\t" "\"lpu\" is a complete hack.\n"; char par2[] = "\t\t\t\t" @@ -43,8 +43,7 @@ sprintf(fmt, "%%%ds\n", (int)((hparm->columns-strlen(buff))/2 + strlen(buff) - 1)); fprintf(stderr, fmt, buff); - sprintf(buff, "(Teem version %s, %s)", - airTeemVersion, airTeemReleaseDate); + airTeemVersionSprint(buff); sprintf(fmt, "%%%ds\n", (int)((hparm->columns-strlen(buff))/2 + strlen(buff) - 1)); fprintf(stderr, fmt, buff); Modified: teem/trunk/src/ten/tendAbout.c =================================================================== --- teem/trunk/src/ten/tendAbout.c 2013-10-03 17:48:49 UTC (rev 6125) +++ teem/trunk/src/ten/tendAbout.c 2013-10-03 17:52:12 UTC (rev 6126) @@ -29,7 +29,7 @@ int tend_aboutMain(int argc, const char **argv, const char *me, hestParm *hparm) { - char buff[AIR_STRLEN_MED], fmt[AIR_STRLEN_MED]; + char buff[AIR_STRLEN_LARGE], fmt[AIR_STRLEN_MED]; char par1[] = "\t\t\t\t" "\"tend\" is a command-line interface to much of the functionality " "in \"ten\", a C library for diffusion image processing. Ten is one " @@ -74,8 +74,7 @@ sprintf(fmt, "%%%ds\n", (int)((hparm->columns-strlen(buff))/2 + strlen(buff) - 1)); fprintf(stdout, fmt, buff); - sprintf(buff, "(Teem version %s, %s)", - airTeemVersion, airTeemReleaseDate); + airTeemVersionSprint(buff); sprintf(fmt, "%%%ds\n", (int)((hparm->columns-strlen(buff))/2 + strlen(buff) - 1)); fprintf(stdout, fmt, buff); Modified: teem/trunk/src/unrrdu/about.c =================================================================== --- teem/trunk/src/unrrdu/about.c 2013-10-03 17:48:49 UTC (rev 6125) +++ teem/trunk/src/unrrdu/about.c 2013-10-03 17:52:12 UTC (rev 6126) @@ -101,11 +101,7 @@ sprintf(fmt, "%%%ds\n", (int)((hparm->columns-strlen(buff))/2 + strlen(buff) - 1)); fprintf(stdout, fmt, buff); - sprintf(buff, "(Teem version %s, %s%s%s)", - airTeemVersion, - airTeemReleaseDone ? "released on " : "", - airTeemReleaseDate, - airTeemReleaseDone ? "" : " (not yet released)"); + airTeemVersionSprint(buff); sprintf(fmt, "%%%ds\n", (int)((hparm->columns-strlen(buff))/2 + strlen(buff) - 1)); fprintf(stdout, fmt, buff); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |