diff options
author | Miles Bader <miles@gnu.org> | 1996-08-12 20:34:14 +0000 |
---|---|---|
committer | Miles Bader <miles@gnu.org> | 1996-08-12 20:34:14 +0000 |
commit | fc95cdfe3fd373d08ea9febc79afcb08123f7688 (patch) | |
tree | 5e9fded4da3df59db3fbdfbd1c3641a4e79abdb9 | |
parent | 9474c6318ad2effa3e80246d1012cb111e726bf0 (diff) |
(_print_version): Print the edit version too if it's non-zero.
-rw-r--r-- | libdiskfs/opts-version.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/libdiskfs/opts-version.c b/libdiskfs/opts-version.c index 0e9d4098..06d1e0be 100644 --- a/libdiskfs/opts-version.c +++ b/libdiskfs/opts-version.c @@ -31,8 +31,14 @@ _print_version (FILE *stream, struct argp_state *state) fprintf (stream, "%s\n", argp_program_version); else /* Construct a version using the standard diskfs variables. */ - fprintf (stream, "%s %d.%d (GNU %s)\n", - diskfs_server_name, diskfs_major_version, diskfs_minor_version, + if (diskfs_edit_version) + fprintf (stream, "%s %d.%d%c (GNU %s)\n", + diskfs_server_name, diskfs_major_version, diskfs_minor_version, + diskfs_edit_version + 'a', HURD_RELEASE); + else + /* Construct a version using the standard diskfs variables. */ + fprintf (stream, "%s %d.%d (GNU %s)\n", + diskfs_server_name, diskfs_major_version, diskfs_minor_version, HURD_RELEASE); } |