summaryrefslogtreecommitdiff
path: root/rmt
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2006-02-07 22:18:04 +0000
committerPaul Eggert <eggert@cs.ucla.edu>2006-02-07 22:18:04 +0000
commit816a1cf92921e78938299ce6cc83424ce2aa4e28 (patch)
tree094421f6c2953c82ee4cfaea8d84e27808edf92d /rmt
parenta5d9c7ca3e601f83330a1443763475f939b50c45 (diff)
downloadpaxutils-816a1cf92921e78938299ce6cc83424ce2aa4e28.tar.gz
* gnulib.modules: Add version-etc-fsf.
* rmt/rmt.c: Include <version-etc.h>. (main): Use version_etc rather than rolling our own.
Diffstat (limited to 'rmt')
-rw-r--r--rmt/rmt.c11
1 files changed, 3 insertions, 8 deletions
diff --git a/rmt/rmt.c b/rmt/rmt.c
index ac73464..4b51751 100644
--- a/rmt/rmt.c
+++ b/rmt/rmt.c
@@ -35,6 +35,7 @@
#include <localedir.h>
#include <safe-read.h>
#include <full-write.h>
+#include <version-etc.h>
#include <getopt.h>
#include <sys/socket.h>
@@ -560,14 +561,8 @@ main (int argc, char **argv)
usage (EXIT_SUCCESS);
case 'v':
- {
- printf ("rmt (%s) %s\n%s\n", PACKAGE_NAME, PACKAGE_VERSION,
- "Copyright (C) 2004 Free Software Foundation, Inc.");
- puts (_("\
-This program comes with NO WARRANTY, to the extent permitted by law.\n\
-You may redistribute it under the terms of the GNU General Public License;\n\
-see the file named COPYING for details."));
- }
+ version_etc (stdout, "rmt", PACKAGE_NAME, PACKAGE_VERSION,
+ "John Gilmore", "Jay Fenlason", (char *) NULL);
return EXIT_SUCCESS;
case -1: