(main): Use PACKAGE_VERSION instead of version_string.
#include <sys/types.h>
#include "system.h"
-#include "version.h"
#include "long-options.h"
#include "error.h"
bindtextdomain (PACKAGE, LOCALEDIR);
textdomain (PACKAGE);
- parse_long_options (argc, argv, "basename", version_string, usage);
+ parse_long_options (argc, argv, "basename", PACKAGE_VERSION, usage);
if (argc == 1 || argc > 3)
{
#include <getopt.h>
#include <sys/types.h>
-#include "version.h"
#include "system.h"
#include "getline.h"
#include "error.h"
if (show_version)
{
- printf ("date - %s\n", version_string);
+ printf ("date - %s\n", PACKAGE_VERSION);
exit (0);
}
#include <sys/types.h>
#include "system.h"
-#include "version.h"
#include "long-options.h"
#include "error.h"
bindtextdomain (PACKAGE, LOCALEDIR);
textdomain (PACKAGE);
- parse_long_options (argc, argv, "dirname", version_string, usage);
+ parse_long_options (argc, argv, "dirname", PACKAGE_VERSION, usage);
if (argc != 2)
{
#include <stdio.h>
#include <sys/types.h>
#include "system.h"
-#include "version.h"
#include "long-options.h"
/* echo [-neE] [arg ...]
bindtextdomain (PACKAGE, LOCALEDIR);
textdomain (PACKAGE);
- parse_long_options (argc, argv, "echo", version_string, usage);
+ parse_long_options (argc, argv, "echo", PACKAGE_VERSION, usage);
/* System V machines already have a /bin/sh with a v9 behaviour. We
use the identical behaviour for these machines so that the
#include <sys/types.h>
#include <getopt.h>
-#include "version.h"
#include "system.h"
#include "error.h"
if (show_version)
{
- printf ("env - %s\n", version_string);
+ printf ("env - %s\n", PACKAGE_VERSION);
exit (0);
}
#include <regex.h>
#include "system.h"
-#include "version.h"
#include "long-options.h"
#include "error.h"
bindtextdomain (PACKAGE, LOCALEDIR);
textdomain (PACKAGE);
- parse_long_options (argc, argv, "expr", version_string, usage);
+ parse_long_options (argc, argv, "expr", PACKAGE_VERSION, usage);
if (argc == 1)
{
#endif
#include "system.h"
-#include "version.h"
#include "long-options.h"
#include "error.h"
#include "xstrtoul.h"
bindtextdomain (PACKAGE, LOCALEDIR);
textdomain (PACKAGE);
- parse_long_options (argc, argv, "factor", version_string, usage);
+ parse_long_options (argc, argv, "factor", PACKAGE_VERSION, usage);
fail = 0;
if (argc == 1)
#include <sys/types.h>
#include "system.h"
-#include "version.h"
#include "long-options.h"
#include "error.h"
bindtextdomain (PACKAGE, LOCALEDIR);
textdomain (PACKAGE);
- parse_long_options (argc, argv, "hostname", version_string, usage);
+ parse_long_options (argc, argv, "hostname", PACKAGE_VERSION, usage);
#ifdef HAVE_SETHOSTNAME
if (argc == 2)
#include <grp.h>
#include <getopt.h>
-#include "version.h"
#include "system.h"
#include "error.h"
if (show_version)
{
- printf ("id - %s\n", version_string);
+ printf ("id - %s\n", PACKAGE_VERSION);
exit (0);
}
#include <sys/types.h>
#include <getopt.h>
-#include "version.h"
#include "system.h"
/* The name this program was run with. */
if (show_version)
{
- printf ("logname - %s\n", version_string);
+ printf ("logname - %s\n", PACKAGE_VERSION);
exit (0);
}
#include <sys/resource.h>
#endif
-#include "version.h"
#include "system.h"
#include "long-options.h"
#include "error.h"
bindtextdomain (PACKAGE, LOCALEDIR);
textdomain (PACKAGE);
- parse_long_options (argc, argv, "nice", version_string, usage);
+ parse_long_options (argc, argv, "nice", PACKAGE_VERSION, usage);
for (optind = 1; optind < argc; /* empty */)
{
#include <getopt.h>
#include <sys/types.h>
-#include "version.h"
#include "system.h"
#include "error.h"
if (show_version)
{
- printf ("pathchk - %s\n", version_string);
+ printf ("pathchk - %s\n", PACKAGE_VERSION);
exit (0);
}
#include <sys/types.h>
#include <getopt.h>
-#include "version.h"
#include "system.h"
#include "error.h"
if (show_version)
{
- printf ("printenv - %s\n", version_string);
+ printf ("printenv - %s\n", PACKAGE_VERSION);
exit (0);
}
#include <getopt.h>
#include "system.h"
-#include "version.h"
#include "long-options.h"
#include "error.h"
exit_status = 0;
- parse_long_options (argc, argv, "printf", version_string, usage);
+ parse_long_options (argc, argv, "printf", PACKAGE_VERSION, usage);
if (argc == 1)
{
#include <sys/types.h>
#include "system.h"
-#include "version.h"
#include "long-options.h"
#include "error.h"
bindtextdomain (PACKAGE, LOCALEDIR);
textdomain (PACKAGE);
- parse_long_options (argc, argv, "pwd", version_string, usage);
+ parse_long_options (argc, argv, "pwd", PACKAGE_VERSION, usage);
if (argc != 1)
error (0, 0, _("ignoring non-option arguments"));
#include "system.h"
#include "error.h"
-#include "version.h"
static double scan_double_arg __P ((char *arg));
static int check_format __P ((char *format_string));
if (show_version)
{
- (void) printf ("seq - %s\n", version_string);
+ (void) printf ("seq - %s\n", PACKAGE_VERSION);
exit (0);
}
#include <sys/types.h>
#include <getopt.h>
-#include "version.h"
#include "system.h"
#include "error.h"
if (show_version)
{
- printf ("sleep - %s\n", version_string);
+ printf ("sleep - %s\n", PACKAGE_VERSION);
exit (0);
}
#endif
#include "system.h"
-#include "version.h"
#include "long-options.h"
#include "error.h"
#include "xstrtol.h"
bindtextdomain (PACKAGE, LOCALEDIR);
textdomain (PACKAGE);
- parse_long_options (argc, argv, "stty", version_string, usage);
+ parse_long_options (argc, argv, "stty", PACKAGE_VERSION, usage);
output_type = changed;
verbose_output = 0;
#include <shadow.h>
#endif
-#include "version.h"
#include "error.h"
/* The default PATH for simulated logins to non-superuser accounts. */
if (show_version)
{
- printf ("su - %s\n", version_string);
+ printf ("su - %s\n", PACKAGE_VERSION);
exit (0);
}
#include <getopt.h>
#include "system.h"
-#include "version.h"
#include "error.h"
char *xmalloc ();
if (show_version)
{
- printf ("tee - %s\n", version_string);
+ printf ("tee - %s\n", PACKAGE_VERSION);
exit (0);
}
# include "filecntl.h"
#else /* TEST_STANDALONE */
# include "system.h"
-# include "version.h"
# include "group-member.h"
# include "error.h"
# if !defined (S_IXUGO)
if (margv[0] && strcmp (margv[0], "[") == 0)
{
- parse_long_options (argc, argv, COMMAND_NAME, version_string, usage);
+ parse_long_options (argc, argv, COMMAND_NAME, PACKAGE_VERSION, usage);
--margc;
if (pos >= argc)
test_exit (SHELL_BOOLEAN (FALSE));
- parse_long_options (argc, argv, COMMAND_NAME, version_string, usage);
+ parse_long_options (argc, argv, COMMAND_NAME, PACKAGE_VERSION, usage);
value = posixtest ();
if (pos != argc)
#include <sys/types.h>
#include "system.h"
-#include "version.h"
#include "error.h"
static void usage __P ((int status));
if (show_version)
{
- printf ("tty - %s\n", version_string);
+ printf ("tty - %s\n", PACKAGE_VERSION);
exit (0);
}
#include <getopt.h>
#include "system.h"
-#include "version.h"
#include "error.h"
static void print_element __P ((unsigned int mask, char *element));
if (show_version)
{
- printf ("uname - %s\n", version_string);
+ printf ("uname - %s\n", PACKAGE_VERSION);
exit (0);
}
#endif
#include "system.h"
-#include "version.h"
#include "error.h"
#if !defined (UTMP_FILE) && defined (_PATH_UTMP) /* 4.4BSD. */
if (show_version)
{
- printf ("%s - %s\n", COMMAND_NAME, version_string);
+ printf ("%s - %s\n", COMMAND_NAME, PACKAGE_VERSION);
exit (0);
}
#include <pwd.h>
#include <getopt.h>
-#include "version.h"
#include "system.h"
/* The name this program was run with. */
if (show_version)
{
- printf ("whoami - %s\n", version_string);
+ printf ("whoami - %s\n", PACKAGE_VERSION);
exit (0);
}
#include "system.h"
#include "long-options.h"
-#include "version.h"
/* The name this program was run with. */
char *program_name;
bindtextdomain (PACKAGE, LOCALEDIR);
textdomain (PACKAGE);
- parse_long_options (argc, argv, "yes", version_string, usage);
+ parse_long_options (argc, argv, "yes", PACKAGE_VERSION, usage);
if (argc == 1)
while (1)