summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>1996-03-16 16:49:28 +0000
committerJim Meyering <jim@meyering.net>1996-03-16 16:49:28 +0000
commitca0246a4c13e8414a35263997b8a7b71ca28b71d (patch)
tree54bb074bf5f0d01ae6033095ddbaf90c136d30f4 /src
parentc1cdafa1b4e6fbbb083f811896a1be9ab90c0f50 (diff)
downloadcoreutils-ca0246a4c13e8414a35263997b8a7b71ca28b71d.tar.xz
Don't include version.h.
(main): Use PACKAGE_VERSION instead of version_string.
Diffstat (limited to 'src')
-rw-r--r--src/chgrp.c3
-rw-r--r--src/chmod.c3
-rw-r--r--src/chown.c3
-rw-r--r--src/cp.c3
-rw-r--r--src/dd.c3
-rw-r--r--src/df.c3
-rw-r--r--src/du.c3
-rw-r--r--src/install.c3
-rw-r--r--src/ln.c3
-rw-r--r--src/ls.c3
-rw-r--r--src/mkdir.c3
-rw-r--r--src/mkfifo.c3
-rw-r--r--src/mknod.c3
-rw-r--r--src/mv.c3
-rw-r--r--src/rm.c3
-rw-r--r--src/rmdir.c3
-rw-r--r--src/sync.c3
-rw-r--r--src/touch.c3
18 files changed, 18 insertions, 36 deletions
diff --git a/src/chgrp.c b/src/chgrp.c
index 1f7b49042..1c87fd492 100644
--- a/src/chgrp.c
+++ b/src/chgrp.c
@@ -36,7 +36,6 @@
#endif
#include "system.h"
-#include "version.h"
#include "xstrtoul.h"
#include "error.h"
@@ -298,7 +297,7 @@ main (int argc, char **argv)
if (show_version)
{
- printf ("chgrp - %s\n", version_string);
+ printf ("chgrp - %s\n", PACKAGE_VERSION);
exit (0);
}
diff --git a/src/chmod.c b/src/chmod.c
index 29510712c..2c8da0a2d 100644
--- a/src/chmod.c
+++ b/src/chmod.c
@@ -30,7 +30,6 @@
#include "modechange.h"
#include "system.h"
-#include "version.h"
#include "error.h"
void mode_string ();
@@ -297,7 +296,7 @@ main (int argc, char **argv)
if (show_version)
{
- printf ("chmod - %s\n", version_string);
+ printf ("chmod - %s\n", PACKAGE_VERSION);
exit (0);
}
diff --git a/src/chown.c b/src/chown.c
index 026309df2..227e40884 100644
--- a/src/chown.c
+++ b/src/chown.c
@@ -36,7 +36,6 @@
#include <getopt.h>
#include "system.h"
-#include "version.h"
#include "error.h"
#ifndef _POSIX_VERSION
@@ -277,7 +276,7 @@ main (int argc, char **argv)
if (show_version)
{
- printf ("chown - %s\n", version_string);
+ printf ("chown - %s\n", PACKAGE_VERSION);
exit (0);
}
diff --git a/src/cp.c b/src/cp.c
index 692a067f8..3000aa66a 100644
--- a/src/cp.c
+++ b/src/cp.c
@@ -26,7 +26,6 @@
#include <getopt.h>
#include "cp.h"
#include "backupfile.h"
-#include "version.h"
#include "argmatch.h"
#ifndef _POSIX_VERSION
@@ -324,7 +323,7 @@ main (int argc, char **argv)
if (show_version)
{
- printf ("cp - %s\n", version_string);
+ printf ("cp - %s\n", PACKAGE_VERSION);
exit (0);
}
diff --git a/src/dd.c b/src/dd.c
index 2c59bdaa2..df2d2dce4 100644
--- a/src/dd.c
+++ b/src/dd.c
@@ -63,7 +63,6 @@
#include <getopt.h>
#include "system.h"
-#include "version.h"
#include "error.h"
#define equal(p, q) (strcmp ((p),(q)) == 0)
@@ -340,7 +339,7 @@ main (int argc, char **argv)
if (show_version)
{
- printf ("dd - %s\n", version_string);
+ printf ("dd - %s\n", PACKAGE_VERSION);
exit (0);
}
diff --git a/src/df.c b/src/df.c
index 55d2b5905..12aca2ffb 100644
--- a/src/df.c
+++ b/src/df.c
@@ -27,7 +27,6 @@
#include "mountlist.h"
#include "fsusage.h"
#include "system.h"
-#include "version.h"
#include "error.h"
char *xmalloc ();
@@ -231,7 +230,7 @@ main (int argc, char **argv)
if (show_version)
{
- printf ("df - %s\n", version_string);
+ printf ("df - %s\n", PACKAGE_VERSION);
exit (0);
}
diff --git a/src/du.c b/src/du.c
index 8b586a009..a4c58a6c1 100644
--- a/src/du.c
+++ b/src/du.c
@@ -51,7 +51,6 @@
#include <assert.h>
#include "system.h"
-#include "version.h"
#include "save-cwd.h"
#include "error.h"
@@ -335,7 +334,7 @@ main (int argc, char **argv)
if (show_version)
{
- printf ("du - %s\n", version_string);
+ printf ("du - %s\n", PACKAGE_VERSION);
exit (0);
}
diff --git a/src/install.c b/src/install.c
index c25e30d5e..39584840b 100644
--- a/src/install.c
+++ b/src/install.c
@@ -60,7 +60,6 @@
#include <grp.h>
#include "system.h"
-#include "version.h"
#include "backupfile.h"
#include "modechange.h"
#include "makepath.h"
@@ -222,7 +221,7 @@ main (int argc, char **argv)
if (show_version)
{
- printf ("install - %s\n", version_string);
+ printf ("install - %s\n", PACKAGE_VERSION);
exit (0);
}
diff --git a/src/ln.c b/src/ln.c
index 83866a3f8..d60e369d9 100644
--- a/src/ln.c
+++ b/src/ln.c
@@ -28,7 +28,6 @@
#include "system.h"
#include "backupfile.h"
-#include "version.h"
#include "error.h"
int link (); /* Some systems don't declare this anywhere. */
@@ -371,7 +370,7 @@ main (int argc, char **argv)
if (show_version)
{
- printf ("ln - %s\n", version_string);
+ printf ("ln - %s\n", PACKAGE_VERSION);
exit (0);
}
diff --git a/src/ls.c b/src/ls.c
index 5b92a2bfb..8f9fc3c6c 100644
--- a/src/ls.c
+++ b/src/ls.c
@@ -60,7 +60,6 @@
#include "obstack.h"
#include "ls.h"
-#include "version.h"
#include "error.h"
#include "argmatch.h"
@@ -639,7 +638,7 @@ main (int argc, char **argv)
if (show_version)
{
- printf ("ls - %s\n", version_string);
+ printf ("ls - %s\n", PACKAGE_VERSION);
exit (0);
}
diff --git a/src/mkdir.c b/src/mkdir.c
index f5364f5c6..16455c133 100644
--- a/src/mkdir.c
+++ b/src/mkdir.c
@@ -35,7 +35,6 @@
#include "system.h"
#include "modechange.h"
#include "makepath.h"
-#include "version.h"
#include "error.h"
/* The name this program was run with. */
@@ -116,7 +115,7 @@ main (int argc, char **argv)
if (show_version)
{
- printf ("mkdir - %s\n", version_string);
+ printf ("mkdir - %s\n", PACKAGE_VERSION);
exit (0);
}
diff --git a/src/mkfifo.c b/src/mkfifo.c
index 89cbf1c90..ff5f40b7a 100644
--- a/src/mkfifo.c
+++ b/src/mkfifo.c
@@ -29,7 +29,6 @@
#include "system.h"
#include "modechange.h"
-#include "version.h"
#include "error.h"
/* The name this program was run with. */
@@ -105,7 +104,7 @@ main (int argc, char **argv)
if (show_version)
{
- printf ("mkfifo - %s\n", version_string);
+ printf ("mkfifo - %s\n", PACKAGE_VERSION);
exit (0);
}
diff --git a/src/mknod.c b/src/mknod.c
index 15eed96c7..4850cecb3 100644
--- a/src/mknod.c
+++ b/src/mknod.c
@@ -34,7 +34,6 @@
#include "system.h"
#include "modechange.h"
-#include "version.h"
#include "error.h"
#include "xstrtol.h"
@@ -114,7 +113,7 @@ main (int argc, char **argv)
if (show_version)
{
- printf ("mknod - %s\n", version_string);
+ printf ("mknod - %s\n", PACKAGE_VERSION);
exit (0);
}
diff --git a/src/mv.c b/src/mv.c
index 7db230302..65c5b48ed 100644
--- a/src/mv.c
+++ b/src/mv.c
@@ -48,7 +48,6 @@
#include "system.h"
#include "backupfile.h"
-#include "version.h"
#include "error.h"
#ifndef _POSIX_VERSION
@@ -459,7 +458,7 @@ main (int argc, char **argv)
if (show_version)
{
- printf ("mv - %s\n", version_string);
+ printf ("mv - %s\n", PACKAGE_VERSION);
exit (0);
}
diff --git a/src/rm.c b/src/rm.c
index e318d8d4c..3244c4927 100644
--- a/src/rm.c
+++ b/src/rm.c
@@ -23,7 +23,6 @@
#include <sys/types.h>
#include "system.h"
-#include "version.h"
#include "error.h"
#ifdef D_INO_IN_DIRENT
@@ -158,7 +157,7 @@ main (int argc, char **argv)
if (show_version)
{
- printf ("rm - %s\n", version_string);
+ printf ("rm - %s\n", PACKAGE_VERSION);
exit (0);
}
diff --git a/src/rmdir.c b/src/rmdir.c
index e091fd063..a23c166c8 100644
--- a/src/rmdir.c
+++ b/src/rmdir.c
@@ -28,7 +28,6 @@
#include <sys/types.h>
#include "system.h"
-#include "version.h"
#include "error.h"
void strip_trailing_slashes ();
@@ -124,7 +123,7 @@ main (int argc, char **argv)
if (show_version)
{
- printf ("rmdir - %s\n", version_string);
+ printf ("rmdir - %s\n", PACKAGE_VERSION);
exit (0);
}
diff --git a/src/sync.c b/src/sync.c
index 497fb6955..de0cd6d5d 100644
--- a/src/sync.c
+++ b/src/sync.c
@@ -23,7 +23,6 @@
#include "system.h"
#include "long-options.h"
-#include "version.h"
#include "error.h"
/* The name this program was run with. */
@@ -56,7 +55,7 @@ main (int argc, char **argv)
bindtextdomain (PACKAGE, LOCALEDIR);
textdomain (PACKAGE);
- parse_long_options (argc, argv, "sync", version_string, usage);
+ parse_long_options (argc, argv, "sync", PACKAGE_VERSION, usage);
if (argc != 1)
error (0, 0, _("ignoring all arguments"));
diff --git a/src/touch.c b/src/touch.c
index 0f547ce1b..53d1c32f7 100644
--- a/src/touch.c
+++ b/src/touch.c
@@ -38,7 +38,6 @@
#include <sys/types.h>
#include "system.h"
-#include "version.h"
#include "error.h"
#include "argmatch.h"
@@ -342,7 +341,7 @@ main (int argc, char **argv)
if (show_version)
{
- printf ("touch - %s\n", version_string);
+ printf ("touch - %s\n", PACKAGE_VERSION);
exit (0);
}