Don't include version.h.
authorJim Meyering <jim@meyering.net>
Sat, 16 Mar 1996 22:30:54 +0000 (22:30 +0000)
committerJim Meyering <jim@meyering.net>
Sat, 16 Mar 1996 22:30:54 +0000 (22:30 +0000)
(main): Use PACKAGE_VERSION instead of version_string.

24 files changed:
src/cat.c
src/cksum.c
src/comm.c
src/csplit.c
src/cut.c
src/expand.c
src/fmt.c
src/fold.c
src/head.c
src/join.c
src/md5sum.c
src/nl.c
src/od.c
src/paste.c
src/pr.c
src/sort.c
src/split.c
src/sum.c
src/tac.c
src/tail.c
src/tr.c
src/unexpand.c
src/uniq.c
src/wc.c

index 31eada9..390abc4 100644 (file)
--- a/src/cat.c
+++ b/src/cat.c
@@ -31,7 +31,6 @@
 #include <sys/ioctl.h>
 #endif
 #include "system.h"
-#include "version.h"
 #include "error.h"
 
 /* Undefine, to avoid warning about redefinition on some systems.  */
@@ -580,7 +579,7 @@ main (int argc, char **argv)
 
   if (show_version)
     {
-      printf ("cat - %s\n", version_string);
+      printf ("cat - %s\n", PACKAGE_VERSION);
       exit (0);
     }
 
index c3f3a81..d5b29ef 100644 (file)
@@ -108,7 +108,6 @@ main ()
 #include <getopt.h>
 #include <sys/types.h>
 #include "system.h"
-#include "version.h"
 #include "error.h"
 
 /* Number of bytes to read at once.  */
@@ -307,7 +306,7 @@ main (int argc, char **argv)
 
   if (show_version)
     {
-      printf ("cksum - %s\n", version_string);
+      printf ("cksum - %s\n", PACKAGE_VERSION);
       exit (0);
     }
 
index e9db888..a1b1f46 100644 (file)
@@ -24,7 +24,6 @@
 #include <sys/types.h>
 #include "system.h"
 #include "linebuffer.h"
-#include "version.h"
 #include "error.h"
 
 /* Undefine, to avoid warning about redefinition on some systems.  */
@@ -250,7 +249,7 @@ main (int argc, char **argv)
 
   if (show_version)
     {
-      printf ("comm - %s\n", version_string);
+      printf ("comm - %s\n", PACKAGE_VERSION);
       exit (0);
     }
 
index 508eadc..5045c7c 100644 (file)
@@ -42,7 +42,6 @@
 # include <rx.h>
 #endif
 #include "system.h"
-#include "version.h"
 #include "error.h"
 #include "xstrtoul.h"
 
@@ -1490,7 +1489,7 @@ main (int argc, char **argv)
 
   if (show_version)
     {
-      printf ("csplit - %s\n", version_string);
+      printf ("csplit - %s\n", PACKAGE_VERSION);
       exit (0);
     }
 
index d50ec71..a6ecdab 100644 (file)
--- a/src/cut.c
+++ b/src/cut.c
@@ -72,7 +72,6 @@
 #include <getopt.h>
 #include <sys/types.h>
 #include "system.h"
-#include "version.h"
 #include "error.h"
 
 #define FATAL_ERROR(s)                                                 \
@@ -737,7 +736,7 @@ main (int argc, char **argv)
 
   if (show_version)
     {
-      printf ("cut - %s\n", version_string);
+      printf ("cut - %s\n", PACKAGE_VERSION);
       exit (0);
     }
 
index 93ddee4..d77d1c8 100644 (file)
@@ -42,7 +42,6 @@
 #include <getopt.h>
 #include <sys/types.h>
 #include "system.h"
-#include "version.h"
 #include "error.h"
 
 /* The number of bytes added at a time to the amount of memory
@@ -368,7 +367,7 @@ main (int argc, char **argv)
 
   if (show_version)
     {
-      printf ("expand - %s\n", version_string);
+      printf ("expand - %s\n", PACKAGE_VERSION);
       exit (0);
     }
 
index faf975b..dc03b7a 100644 (file)
--- a/src/fmt.c
+++ b/src/fmt.c
@@ -40,7 +40,6 @@
 #define word unused_word_type
 
 #include "system.h"
-#include "version.h"
 #include "error.h"
 #include "xstrtol.h"
 
@@ -398,7 +397,7 @@ main (register int argc, register char **argv)
 
   if (show_version)
     {
-      printf ("fmt - %s\n", version_string);
+      printf ("fmt - %s\n", PACKAGE_VERSION);
       exit (0);
     }
 
index a23b637..747f786 100644 (file)
@@ -39,7 +39,6 @@
 #endif
 
 #include "system.h"
-#include "version.h"
 #include "xstrtol.h"
 #include "error.h"
 
@@ -309,7 +308,7 @@ main (int argc, char **argv)
 
   if (show_version)
     {
-      printf ("fold - %s\n", version_string);
+      printf ("fold - %s\n", PACKAGE_VERSION);
       exit (0);
     }
 
index a041580..244d9a8 100644 (file)
@@ -30,7 +30,6 @@
 #include <getopt.h>
 #include <sys/types.h>
 #include "system.h"
-#include "version.h"
 #include "error.h"
 
 /* Number of lines/chars/blocks to head. */
@@ -353,7 +352,7 @@ main (int argc, char **argv)
 
   if (show_version)
     {
-      printf ("head - %s\n", version_string);
+      printf ("head - %s\n", PACKAGE_VERSION);
       exit (0);
     }
 
index e9c5bb1..360684a 100644 (file)
@@ -61,7 +61,6 @@ char *alloca ();
 #endif
 
 #include "system.h"
-#include "version.h"
 #include "long-options.h"
 #include "xstrtol.h"
 #include "error.h"
@@ -782,7 +781,7 @@ main (int argc, char **argv)
      it may be increased.  */
   uni_blank.nfields = 1;
 
-  parse_long_options (argc, argv, "join", version_string, usage);
+  parse_long_options (argc, argv, "join", PACKAGE_VERSION, usage);
 
   nfiles = 0;
   print_pairables = 1;
index 2e2759d..07ad354 100644 (file)
@@ -31,7 +31,6 @@
 #include "getline.h"
 #include "system.h"
 #include "error.h"
-#include "version.h"
 
 /* Most systems do not distinguish between external and internal
    text representations.  */
@@ -403,7 +402,7 @@ main (int argc, char **argv)
   bindtextdomain (PACKAGE, LOCALEDIR);
   textdomain (PACKAGE);
 
-  parse_long_options (argc, argv, "md5sum", version_string, usage);
+  parse_long_options (argc, argv, "md5sum", PACKAGE_VERSION, usage);
 
   while ((opt = getopt_long (argc, argv, "bctw", long_options, NULL))
         != EOF)
@@ -444,7 +443,7 @@ main (int argc, char **argv)
 
   if (do_version)
     {
-      printf ("md5sum - %s\n", version_string);
+      printf ("md5sum - %s\n", PACKAGE_VERSION);
       exit (EXIT_SUCCESS);
     }
 
index 0ac3497..0450bda 100644 (file)
--- a/src/nl.c
+++ b/src/nl.c
@@ -44,7 +44,6 @@
 
 #include "linebuffer.h"
 #include "system.h"
-#include "version.h"
 #include "error.h"
 #include "xstrtol.h"
 
@@ -578,7 +577,7 @@ main (int argc, char **argv)
 
   if (show_version)
     {
-      printf ("nl - %s\n", version_string);
+      printf ("nl - %s\n", PACKAGE_VERSION);
       exit (0);
     }
 
index 8cca7b9..fb33039 100644 (file)
--- a/src/od.c
+++ b/src/od.c
@@ -44,7 +44,6 @@ char *alloca ();
 #include <getopt.h>
 #include <sys/types.h>
 #include "system.h"
-#include "version.h"
 #include "xstrtoul.h"
 #include "error.h"
 
@@ -1758,7 +1757,7 @@ the maximum\nrepresentable value of type off_t"), optarg);
 
   if (show_version)
     {
-      printf ("od - %s\n", version_string);
+      printf ("od - %s\n", PACKAGE_VERSION);
       exit (0);
     }
 
index 395c6bc..7ac4787 100644 (file)
@@ -44,7 +44,6 @@
 #include <getopt.h>
 #include <sys/types.h>
 #include "system.h"
-#include "version.h"
 #include "error.h"
 
 char *xmalloc ();
@@ -473,7 +472,7 @@ main (int argc, char **argv)
 
   if (show_version)
     {
-      printf ("paste - %s\n", version_string);
+      printf ("paste - %s\n", PACKAGE_VERSION);
       exit (0);
     }
 
index be9356d..954876e 100644 (file)
--- a/src/pr.c
+++ b/src/pr.c
 #include <sys/types.h>
 #include <time.h>
 #include "system.h"
-#include "version.h"
 #include "error.h"
 
 char *xmalloc ();
@@ -617,7 +616,7 @@ main (int argc, char **argv)
 
   if (show_version)
     {
-      printf ("pr - %s\n", version_string);
+      printf ("pr - %s\n", PACKAGE_VERSION);
       exit (0);
     }
 
index 8e27232..c1c6dc5 100644 (file)
@@ -28,7 +28,6 @@
 #include <signal.h>
 #include <stdio.h>
 #include "system.h"
-#include "version.h"
 #include "long-options.h"
 #include "error.h"
 #include "xstrtod.h"
@@ -1678,7 +1677,7 @@ main (int argc, char **argv)
   bindtextdomain (PACKAGE, LOCALEDIR);
   textdomain (PACKAGE);
 
-  parse_long_options (argc, argv, "sort", version_string, usage);
+  parse_long_options (argc, argv, "sort", PACKAGE_VERSION, usage);
 
   have_read_stdin = 0;
   inittables ();
index bdc89e5..fb6ec4e 100644 (file)
@@ -40,7 +40,6 @@
 #endif
 
 #include "system.h"
-#include "version.h"
 #include "error.h"
 #include "xstrtol.h"
 
@@ -454,7 +453,7 @@ main (int argc, char **argv)
 
   if (show_version)
     {
-      printf ("split - %s\n", version_string);
+      printf ("split - %s\n", PACKAGE_VERSION);
       exit (0);
     }
 
index df22ff8..bf04e62 100644 (file)
--- a/src/sum.c
+++ b/src/sum.c
@@ -25,7 +25,6 @@
 #include <sys/types.h>
 #include <getopt.h>
 #include "system.h"
-#include "version.h"
 #include "error.h"
 
 int safe_read ();
@@ -235,7 +234,7 @@ main (int argc, char **argv)
 
   if (show_version)
     {
-      printf ("sum - %s\n", version_string);
+      printf ("sum - %s\n", PACKAGE_VERSION);
       exit (0);
     }
 
index 54c10d0..88c688a 100644 (file)
--- a/src/tac.c
+++ b/src/tac.c
@@ -47,7 +47,6 @@ tac -r -s '.\|
 # include <rx.h>
 #endif
 #include "system.h"
-#include "version.h"
 #include "error.h"
 
 #ifndef STDC_HEADERS
@@ -622,7 +621,7 @@ main (int argc, char **argv)
 
   if (show_version)
     {
-      printf ("tac - %s\n", version_string);
+      printf ("tac - %s\n", PACKAGE_VERSION);
       exit (0);
     }
 
index c4c80ca..5ec27fc 100644 (file)
@@ -51,7 +51,6 @@
 #include <sys/types.h>
 
 #include "system.h"
-#include "version.h"
 #include "xstrtol.h"
 #include "error.h"
 
@@ -970,7 +969,7 @@ main (int argc, char **argv)
 
   if (show_version)
     {
-      printf ("tail - %s\n", version_string);
+      printf ("tail - %s\n", PACKAGE_VERSION);
       exit (0);
     }
 
index 2a97d81..d008607 100644 (file)
--- a/src/tr.c
+++ b/src/tr.c
@@ -34,7 +34,6 @@
 #endif
 
 #include "system.h"
-#include "version.h"
 #include "error.h"
 
 #ifndef ULONG_MAX
@@ -1832,7 +1831,7 @@ main (int argc, char **argv)
 
   if (show_version)
     {
-      printf ("tr - %s\n", version_string);
+      printf ("tr - %s\n", PACKAGE_VERSION);
       exit (0);
     }
 
index 0d09594..dddd577 100644 (file)
@@ -44,7 +44,6 @@
 #include <getopt.h>
 #include <sys/types.h>
 #include "system.h"
-#include "version.h"
 #include "error.h"
 
 /* The number of bytes added at a time to the amount of memory
@@ -425,7 +424,7 @@ main (int argc, char **argv)
 
   if (show_version)
     {
-      printf ("unexpand - %s\n", version_string);
+      printf ("unexpand - %s\n", PACKAGE_VERSION);
       exit (0);
     }
 
index d6900ce..2ba1aa4 100644 (file)
@@ -40,7 +40,6 @@
 
 #include "system.h"
 #include "linebuffer.h"
-#include "version.h"
 #include "error.h"
 #include "xstrtol.h"
 
@@ -363,7 +362,7 @@ main (int argc, char **argv)
 
   if (show_version)
     {
-      printf ("uniq - %s\n", version_string);
+      printf ("uniq - %s\n", PACKAGE_VERSION);
       exit (0);
     }
 
index 27db2a4..1087588 100644 (file)
--- a/src/wc.c
+++ b/src/wc.c
@@ -24,7 +24,6 @@
 #include <getopt.h>
 #include <sys/types.h>
 #include "system.h"
-#include "version.h"
 #include "error.h"
 
 /* Size of atomic reads. */
@@ -293,7 +292,7 @@ main (int argc, char **argv)
 
   if (show_version)
     {
-      printf ("wc - %s\n", version_string);
+      printf ("wc - %s\n", PACKAGE_VERSION);
       exit (0);
     }