diff options
author | Robb Matzke <matzke@llnl.gov> | 1998-07-20 16:05:43 (GMT) |
---|---|---|
committer | Robb Matzke <matzke@llnl.gov> | 1998-07-20 16:05:43 (GMT) |
commit | 1dbacc8377754e33e8088ad6c7895a5f68bf7dfb (patch) | |
tree | fcf26adf4ac525bd2fe2d519c084f9accb78bfe0 /tools | |
parent | 29bf0662db641fde339ff9237bd1277509a047f1 (diff) | |
download | hdf5-1dbacc8377754e33e8088ad6c7895a5f68bf7dfb.zip hdf5-1dbacc8377754e33e8088ad6c7895a5f68bf7dfb.tar.gz hdf5-1dbacc8377754e33e8088ad6c7895a5f68bf7dfb.tar.bz2 |
[svn-r517] Changes since 19980720
----------------------
./bin/release
The archive names have only three parts to a version number.
Instead of `hdf5-1.2.3d.tar.gz' they will be named like
`hdf5-1.2.3.tar.gz'.
./src/H5public.h
./src/H5.c
Dropped the patch level from the version number. The version
number is now a major number, a minor number, and a release
number.
./doc/html/Version.html
Updated to get rid of patch numbers.
./tools/h5repart.c
Added a `-V' flag like for `h5ls' that prints the version number.
Diffstat (limited to 'tools')
-rw-r--r-- | tools/h5ls.c | 2 | ||||
-rw-r--r-- | tools/h5repart.c | 25 |
2 files changed, 17 insertions, 10 deletions
diff --git a/tools/h5ls.c b/tools/h5ls.c index f6e3de7..f7e9b76 100644 --- a/tools/h5ls.c +++ b/tools/h5ls.c @@ -45,7 +45,7 @@ usage: %s [OPTIONS] FILE [GROUP]\n\ OPTIONS\n\ -h, -?, --help Print a usage message and exit\n\ -v, --verbose Generate more verbose output\n\ - --version Print version number and exit\n\ + -V, --version Print version number and exit\n\ FILE\n\ The file name may include a printf(3C) integer format such as\n\ \"%%05d\" to open a file family.\n\ diff --git a/tools/h5repart.c b/tools/h5repart.c index 8faa9ea..75dae80 100644 --- a/tools/h5repart.c +++ b/tools/h5repart.c @@ -47,15 +47,18 @@ static void usage (const char *progname) { - fprintf (stderr, "usage: %s [-[b|m] N[g|m|k]] SRC DST\n", progname); - fprintf (stderr, " -b N The I/O block size, defaults to 1kB\n"); - fprintf (stderr, " -m N The destination member size or 1GB\n"); - fprintf (stderr, " SRC The name of the source file\n"); - fprintf (stderr, " DST The name of the destination files\n"); - fprintf (stderr, "Sizes may be suffixed with `g' for GB, `m' for MB or " - "`k' for kB.\n"); - fprintf (stderr, "File family names include an integer printf " - "format such as `%%d'\n"); + fprintf(stderr, "usage: %s [-v] [-V] [-[b|m] N[g|m|k]] SRC DST\n", + progname); + fprintf(stderr, " -v Produce verbose output\n"); + fprintf(stderr, " -V Print a version number and exit\n"); + fprintf(stderr, " -b N The I/O block size, defaults to 1kB\n"); + fprintf(stderr, " -m N The destination member size or 1GB\n"); + fprintf(stderr, " SRC The name of the source file\n"); + fprintf(stderr, " DST The name of the destination files\n"); + fprintf(stderr, "Sizes may be suffixed with `g' for GB, `m' for MB or " + "`k' for kB.\n"); + fprintf(stderr, "File family names include an integer printf " + "format such as `%%d'\n"); exit (1); } @@ -184,6 +187,10 @@ main (int argc, char *argv[]) if (!strcmp (argv[argno], "-v")) { verbose = TRUE; argno++; + } else if (!strcmp(argv[argno], "-V")) { + printf("This is %s version %u.%u release %u\n", + prog_name, H5_VERS_MAJOR, H5_VERS_MINOR, H5_VERS_RELEASE); + exit(0); } else if ('b'==argv[argno][1]) { blk_size = get_size (prog_name, &argno, argc, argv); } else if ('m'==argv[argno][1]) { |