From c9df70bb8bd1cfbc683deab1b0e517c73d445b87 Mon Sep 17 00:00:00 2001 From: Thomas Bushnell Date: Thu, 5 Sep 1996 16:59:37 +0000 Subject: *** empty log message *** --- ufs-fsck/ChangeLog | 5 +++++ ufs-fsck/main.c | 3 ++- ufs-utils/ChangeLog | 5 +++++ ufs-utils/mkfs.c | 5 +++-- version.h | 30 ++++++++++++++++++++++++++++++ 5 files changed, 45 insertions(+), 3 deletions(-) create mode 100644 version.h diff --git a/ufs-fsck/ChangeLog b/ufs-fsck/ChangeLog index c8def0d7..d4e404b2 100644 --- a/ufs-fsck/ChangeLog +++ b/ufs-fsck/ChangeLog @@ -1,3 +1,8 @@ +Thu Sep 5 11:42:21 1996 Thomas Bushnell, n/BSG + + * main.c: Include . + (argp_program_version): Define with STANDARD_HURD_VERSION. + Fri Aug 16 10:25:37 1996 Thomas Bushnell, n/BSG * dir.c (record_directory): Maximum number of block pointers to diff --git a/ufs-fsck/main.c b/ufs-fsck/main.c index b5af2d88..c159b170 100644 --- a/ufs-fsck/main.c +++ b/ufs-fsck/main.c @@ -21,10 +21,11 @@ #include #include #include +#include #include "fsck.h" -char *argp_program_version = "fsck.ufs 1.0 (GNU " HURD_RELEASE ")"; +char *argp_program_version = STANDARD_HURD_VERSION (fsck.ufs) char *lfname = "lost+found"; mode_t lfmode = 0755; diff --git a/ufs-utils/ChangeLog b/ufs-utils/ChangeLog index 201a2958..7f892351 100644 --- a/ufs-utils/ChangeLog +++ b/ufs-utils/ChangeLog @@ -1,3 +1,8 @@ +Thu Sep 5 11:44:38 1996 Thomas Bushnell, n/BSG + + * mkfs.c: Include . + (argp_program_version): Define with STANDARD_HURD_VERSION. + Mon Aug 19 15:18:30 1996 Miles Bader * mkfs.c (doc): Supply a useful value. diff --git a/ufs-utils/mkfs.c b/ufs-utils/mkfs.c index 48a5a688..de8c712e 100644 --- a/ufs-utils/mkfs.c +++ b/ufs-utils/mkfs.c @@ -33,7 +33,7 @@ #ifndef lint /*static char sccsid[] = "from: @(#)mkfs.c 8.3 (Berkeley) 2/3/94";*/ -static char *rcsid = "$Id: mkfs.c,v 1.14 1996/08/27 18:24:31 miles Exp $"; +static char *rcsid = "$Id: mkfs.c,v 1.15 1996/09/05 16:59:14 thomas Exp $"; #endif /* not lint */ #include @@ -54,6 +54,7 @@ static char *rcsid = "$Id: mkfs.c,v 1.14 1996/08/27 18:24:31 miles Exp $"; #include #include #include +#include #include #include @@ -163,7 +164,7 @@ struct dinode zino[MAXBSIZE / sizeof(struct dinode)]; int fsi, fso; daddr_t alloc(); -char *argp_program_version = "mkfs.ufs 1.0 (GNU " HURD_RELEASE ")"; +char *argp_program_version = STANDARD_HURD_VERSION (mkfs.ufs); #define _STRINGIFY(arg) #arg #define STRINGIFY(arg) _STRINGIFY (arg) diff --git a/version.h b/version.h new file mode 100644 index 00000000..b8f63ac0 --- /dev/null +++ b/version.h @@ -0,0 +1,30 @@ +/* Hurd version + Copyright (C) 1996 Free Software Foundation, Inc. + Written by Thomas Bushnell, n/BSG. + + This file is part of the GNU Hurd. + + The GNU Hurd is free software; you can redistribute it and/or + modify it under the terms of the GNU General Public License as + published by the Free Software Foundation; either version 2, or (at + your option) any later version. + + The GNU Hurd is distributed in the hope that it will be useful, but + WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software + Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA. */ + +/* See sh-version.sed for duplicates of this information. */ + +#ifndef HURD_VERSION +#define HURD_VERSION "0.1" +#endif + +/* The standard way to print versions for --version */ +#define STANDARD_HURD_VERSION(s) #s " - GNU Hurd-" HURD_VERSION + + -- cgit v1.2.3