diff options
author | Eric Blake <ebb9@byu.net> | 2007-08-30 17:11:59 +0200 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2007-08-30 17:12:56 +0200 |
commit | 4b11f24c64db5fc05acc4dd87c8733d3f6be1265 (patch) | |
tree | bb9006d0ac7aa0b787a2722f96ce95d935ff3c90 | |
parent | 58ddd2c5a1a80b1c3ef6d1717842d082d24409cf (diff) | |
download | coreutils-4b11f24c64db5fc05acc4dd87c8733d3f6be1265.tar.xz |
Use PACKAGE_NAME instead of GNU_PACKAGE.
* src/Makefile.am (.sh, uninstall-local): Adjust all users of
hand-rolled GNU_PACKAGE to instead use autoconf-provided
PACKAGE_NAME.
* src/basename.c (main): Likewise.
* src/chroot.c (main): Likewise.
* src/dirname.c (main): Likewise.
* src/echo.c (main): Likewise.
* src/expr.c (main): Likewise.
* src/factor.c (main): Likewise.
* src/groups.sh (version): Likewise. Also, reflect change in
--version output due to GPLv3.
* src/hostid.c (main): Likewise.
* src/hostname.c (main): Likewise.
* src/link.c (main): Likewise.
* src/logname.c (main): Likewise.
* src/nice.c (main): Likewise.
* src/nohup.c (main): Likewise.
* src/printenv.c (main): Likewise.
* src/printf.c (main): Likewise.
* src/pwd.c (main): Likewise.
* src/setuidgid.c (main): Likewise.
* src/sleep.c (main): Likewise.
* src/system.h (case_GETOPT_VERSION_CHAR): Likewise.
* src/test.c (main): Likewise.
* src/true.c (main): Likewise.
* src/unlink.c (main): Likewise.
* src/uptime.c (main): Likewise.
* src/users.c (main): Likewise.
* src/whoami.c (main): Likewise.
* src/yes.c (main): Likewise.
* configure.ac (AC_CHECK_DECLS): No need to check strtoimax,
strtoumax, since gnulib does this.
-rw-r--r-- | ChangeLog | 36 | ||||
-rw-r--r-- | configure.ac | 3 | ||||
-rw-r--r-- | m4/ChangeLog | 6 | ||||
-rw-r--r-- | m4/jm-macros.m4 | 5 | ||||
-rw-r--r-- | src/Makefile.am | 4 | ||||
-rw-r--r-- | src/basename.c | 4 | ||||
-rw-r--r-- | src/chroot.c | 4 | ||||
-rw-r--r-- | src/dirname.c | 4 | ||||
-rw-r--r-- | src/echo.c | 5 | ||||
-rw-r--r-- | src/expr.c | 2 | ||||
-rw-r--r-- | src/factor.c | 4 | ||||
-rwxr-xr-x | src/groups.sh | 6 | ||||
-rw-r--r-- | src/hostid.c | 4 | ||||
-rw-r--r-- | src/hostname.c | 4 | ||||
-rw-r--r-- | src/link.c | 4 | ||||
-rw-r--r-- | src/logname.c | 4 | ||||
-rw-r--r-- | src/nice.c | 4 | ||||
-rw-r--r-- | src/nohup.c | 4 | ||||
-rw-r--r-- | src/printenv.c | 4 | ||||
-rw-r--r-- | src/printf.c | 2 | ||||
-rw-r--r-- | src/pwd.c | 4 | ||||
-rw-r--r-- | src/setuidgid.c | 2 | ||||
-rw-r--r-- | src/sleep.c | 4 | ||||
-rw-r--r-- | src/system.h | 2 | ||||
-rw-r--r-- | src/test.c | 2 | ||||
-rw-r--r-- | src/true.c | 4 | ||||
-rw-r--r-- | src/unlink.c | 4 | ||||
-rw-r--r-- | src/uptime.c | 4 | ||||
-rw-r--r-- | src/users.c | 4 | ||||
-rw-r--r-- | src/whoami.c | 4 | ||||
-rw-r--r-- | src/yes.c | 4 |
31 files changed, 92 insertions, 59 deletions
@@ -1,3 +1,39 @@ +2007-08-30 Eric Blake <ebb9@byu.net> + + Use PACKAGE_NAME instead of GNU_PACKAGE. + * src/Makefile.am (.sh, uninstall-local): Adjust all users of + hand-rolled GNU_PACKAGE to instead use autoconf-provided + PACKAGE_NAME. + * src/basename.c (main): Likewise. + * src/chroot.c (main): Likewise. + * src/dirname.c (main): Likewise. + * src/echo.c (main): Likewise. + * src/expr.c (main): Likewise. + * src/factor.c (main): Likewise. + * src/groups.sh (version): Likewise. Also, reflect change in + --version output due to GPLv3. + * src/hostid.c (main): Likewise. + * src/hostname.c (main): Likewise. + * src/link.c (main): Likewise. + * src/logname.c (main): Likewise. + * src/nice.c (main): Likewise. + * src/nohup.c (main): Likewise. + * src/printenv.c (main): Likewise. + * src/printf.c (main): Likewise. + * src/pwd.c (main): Likewise. + * src/setuidgid.c (main): Likewise. + * src/sleep.c (main): Likewise. + * src/system.h (case_GETOPT_VERSION_CHAR): Likewise. + * src/test.c (main): Likewise. + * src/true.c (main): Likewise. + * src/unlink.c (main): Likewise. + * src/uptime.c (main): Likewise. + * src/users.c (main): Likewise. + * src/whoami.c (main): Likewise. + * src/yes.c (main): Likewise. + * configure.ac (AC_CHECK_DECLS): No need to check strtoimax, + strtoumax, since gnulib does this. + 2007-08-29 Jim Meyering <jim@meyering.net> Ensure that TMPDIR is valid. Otherwise, it would cause test failures. diff --git a/configure.ac b/configure.ac index 0e49370de..33088e84e 100644 --- a/configure.ac +++ b/configure.ac @@ -237,9 +237,6 @@ AC_CHECK_DECLS([strsignal, sys_siglist, _sys_siglist, __sys_siglist], , , [AC_INCLUDES_DEFAULT #include <signal.h>]) -# For src/kill.c and src/printf.c. -AC_CHECK_DECLS([strtoimax, strtoumax]) - cu_LIB_CHECK # Build df only if there's a point to it. diff --git a/m4/ChangeLog b/m4/ChangeLog index 8b350dfec..6829ab166 100644 --- a/m4/ChangeLog +++ b/m4/ChangeLog @@ -1,3 +1,7 @@ +2007-08-30 Eric Blake <ebb9@byu.net> + + * jm-macros.m4 (coreutils_MACROS): Remove GNU_PACKAGE. + 2007-04-25 Jim Meyering <jim@meyering.net> * autobuild.m4: Remove file. Now, provided by gnulib. @@ -553,7 +557,7 @@ Apply this change from gnulib: 2006-05-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> - Bruno Haible <bruno@clisp.org> + Bruno Haible <bruno@clisp.org> * strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a check for the declaration of strnlen and a run test that exposes the diff --git a/m4/jm-macros.m4 b/m4/jm-macros.m4 index c821c0994..416cc9c2b 100644 --- a/m4/jm-macros.m4 +++ b/m4/jm-macros.m4 @@ -21,11 +21,6 @@ dnl Misc type-related macros for coreutils. AC_DEFUN([coreutils_MACROS], [ - GNU_PACKAGE="GNU $PACKAGE" - AC_DEFINE_UNQUOTED(GNU_PACKAGE, "$GNU_PACKAGE", - [The concatenation of the strings `GNU ', and PACKAGE.]) - AC_SUBST(GNU_PACKAGE) - AM_MISSING_PROG(HELP2MAN, help2man) AC_SUBST(MAN) diff --git a/src/Makefile.am b/src/Makefile.am index 6d652a666..607070eef 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -147,7 +147,7 @@ RELEASE_YEAR = \ sed \ -e 's!@''bindir''@!$(bindir)!' \ -e 's/@''RELEASE_YEAR'@/$(RELEASE_YEAR)/ \ - -e 's/@''GNU_PACKAGE''@/$(GNU_PACKAGE)/' \ + -e 's/@''PACKAGE_NAME''@/$(PACKAGE_NAME)/' \ -e 's/@''PACKAGE_BUGREPORT''@/$(PACKAGE_BUGREPORT)/' \ -e 's/@''VERSION''@/$(VERSION)/' $< > $@-t chmod +x $@-t @@ -195,7 +195,7 @@ install-exec-local: su$(EXEEXT) uninstall-local: # Remove su only if it's one we installed. - @if grep '$(GNU_PACKAGE)' $(installed_su) > /dev/null 2>&1; then \ + @if grep '$(PACKAGE_NAME)' $(installed_su) > /dev/null 2>&1; then \ echo " rm -f $(installed_su)"; \ rm -f $(installed_su); \ else :; fi diff --git a/src/basename.c b/src/basename.c index 50d6b120a..f26de8d10 100644 --- a/src/basename.c +++ b/src/basename.c @@ -1,5 +1,5 @@ /* basename -- strip directory and suffix from file names - Copyright (C) 1990-1997, 1999-2006 Free Software Foundation, Inc. + Copyright (C) 1990-1997, 1999-2007 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -106,7 +106,7 @@ main (int argc, char **argv) atexit (close_stdout); - parse_long_options (argc, argv, PROGRAM_NAME, GNU_PACKAGE, VERSION, + parse_long_options (argc, argv, PROGRAM_NAME, PACKAGE_NAME, VERSION, usage, AUTHORS, (char const *) NULL); if (getopt_long (argc, argv, "+", NULL, NULL) != -1) usage (EXIT_FAILURE); diff --git a/src/chroot.c b/src/chroot.c index 4d23fabcc..90b0b967b 100644 --- a/src/chroot.c +++ b/src/chroot.c @@ -1,5 +1,5 @@ /* chroot -- run command or shell with special root directory - Copyright (C) 95, 96, 1997, 1999-2004 Free Software Foundation, Inc. + Copyright (C) 95, 96, 1997, 1999-2004, 2007 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -73,7 +73,7 @@ main (int argc, char **argv) initialize_exit_failure (EXIT_FAILURE); atexit (close_stdout); - parse_long_options (argc, argv, PROGRAM_NAME, GNU_PACKAGE, VERSION, + parse_long_options (argc, argv, PROGRAM_NAME, PACKAGE_NAME, VERSION, usage, AUTHORS, (char const *) NULL); if (getopt_long (argc, argv, "+", NULL, NULL) != -1) usage (EXIT_FAILURE); diff --git a/src/dirname.c b/src/dirname.c index 2fc0b285c..acd00033c 100644 --- a/src/dirname.c +++ b/src/dirname.c @@ -1,6 +1,6 @@ /* dirname -- strip suffix from file name - Copyright (C) 1990-1997, 1999-2002, 2004, 2005, 2006 Free Software + Copyright (C) 1990-1997, 1999-2002, 2004-2007 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify @@ -83,7 +83,7 @@ main (int argc, char **argv) atexit (close_stdout); - parse_long_options (argc, argv, PROGRAM_NAME, GNU_PACKAGE, VERSION, + parse_long_options (argc, argv, PROGRAM_NAME, PACKAGE_NAME, VERSION, usage, AUTHORS, (char const *) NULL); if (getopt_long (argc, argv, "+", NULL, NULL) != -1) usage (EXIT_FAILURE); diff --git a/src/echo.c b/src/echo.c index 55cefc862..f4e91f7da 100644 --- a/src/echo.c +++ b/src/echo.c @@ -1,5 +1,6 @@ /* echo.c, derived from code echo.c in Bash. - Copyright (C) 87,89, 1991-1997, 1999-2005 Free Software Foundation, Inc. + Copyright (C) 87,89, 1991-1997, 1999-2005, 2007 Free Software + Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -141,7 +142,7 @@ main (int argc, char **argv) atexit (close_stdout); if (allow_options) - parse_long_options (argc, argv, PROGRAM_NAME, GNU_PACKAGE, VERSION, + parse_long_options (argc, argv, PROGRAM_NAME, PACKAGE_NAME, VERSION, usage, AUTHORS, (char const *) NULL); --argc; diff --git a/src/expr.c b/src/expr.c index b11cd12a8..c800065c6 100644 --- a/src/expr.c +++ b/src/expr.c @@ -194,7 +194,7 @@ main (int argc, char **argv) initialize_exit_failure (EXPR_FAILURE); atexit (close_stdout); - parse_long_options (argc, argv, PROGRAM_NAME, GNU_PACKAGE, VERSION, + parse_long_options (argc, argv, PROGRAM_NAME, PACKAGE_NAME, VERSION, usage, AUTHORS, (char const *) NULL); /* The above handles --help and --version. Since there is no other invocation of getopt, handle `--' here. */ diff --git a/src/factor.c b/src/factor.c index 85dbefa08..b54a17095 100644 --- a/src/factor.c +++ b/src/factor.c @@ -1,5 +1,5 @@ /* factor -- print prime factors of n. - Copyright (C) 86, 1995-2005 Free Software Foundation, Inc. + Copyright (C) 86, 1995-2005, 2007 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -199,7 +199,7 @@ main (int argc, char **argv) atexit (close_stdout); - parse_long_options (argc, argv, PROGRAM_NAME, GNU_PACKAGE, VERSION, + parse_long_options (argc, argv, PROGRAM_NAME, PACKAGE_NAME, VERSION, usage, AUTHORS, (char const *) NULL); if (getopt_long (argc, argv, "", NULL, NULL) != -1) usage (EXIT_FAILURE); diff --git a/src/groups.sh b/src/groups.sh index 0e578e3ab..54ae918c7 100755 --- a/src/groups.sh +++ b/src/groups.sh @@ -30,10 +30,10 @@ Same as id -Gn. If no USERNAME, use current process. Report bugs to <@PACKAGE_BUGREPORT@>." -version='groups (@GNU_PACKAGE@) @VERSION@ +version='groups (@PACKAGE_NAME@) @VERSION@ Copyright (C) @RELEASE_YEAR@ Free Software Foundation, Inc. -This is free software. You may redistribute copies of it under the terms of -the GNU General Public License <http://www.gnu.org/licenses/gpl.html>. +License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> +This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Written by David MacKenzie.' diff --git a/src/hostid.c b/src/hostid.c index a5979d42e..ea50086eb 100644 --- a/src/hostid.c +++ b/src/hostid.c @@ -1,6 +1,6 @@ /* print the hexadecimal identifier for the current host - Copyright (C) 1997, 1999, 2000, 2001, 2002, 2003, 2004 Free + Copyright (C) 1997, 1999, 2000, 2001, 2002, 2003, 2004, 2007 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify @@ -71,7 +71,7 @@ main (int argc, char **argv) atexit (close_stdout); - parse_long_options (argc, argv, PROGRAM_NAME, GNU_PACKAGE, VERSION, + parse_long_options (argc, argv, PROGRAM_NAME, PACKAGE_NAME, VERSION, usage, AUTHORS, (char const *) NULL); if (getopt_long (argc, argv, "", NULL, NULL) != -1) usage (EXIT_FAILURE); diff --git a/src/hostname.c b/src/hostname.c index 3b9b42336..4be2185c1 100644 --- a/src/hostname.c +++ b/src/hostname.c @@ -1,5 +1,5 @@ /* hostname - set or print the name of current host system - Copyright (C) 1994-1997, 1999-2005 Free Software Foundation, Inc. + Copyright (C) 1994-1997, 1999-2005, 2007 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -88,7 +88,7 @@ main (int argc, char **argv) atexit (close_stdout); - parse_long_options (argc, argv, PROGRAM_NAME, GNU_PACKAGE, VERSION, + parse_long_options (argc, argv, PROGRAM_NAME, PACKAGE_NAME, VERSION, usage, AUTHORS, (char const *) NULL); if (getopt_long (argc, argv, "", NULL, NULL) != -1) usage (EXIT_FAILURE); diff --git a/src/link.c b/src/link.c index 59215f378..4c576e1cf 100644 --- a/src/link.c +++ b/src/link.c @@ -1,5 +1,5 @@ /* link utility for GNU. - Copyright (C) 2001, 2002, 2004 Free Software Foundation, Inc. + Copyright (C) 2001, 2002, 2004, 2007 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -70,7 +70,7 @@ main (int argc, char **argv) atexit (close_stdout); - parse_long_options (argc, argv, PROGRAM_NAME, GNU_PACKAGE, VERSION, + parse_long_options (argc, argv, PROGRAM_NAME, PACKAGE_NAME, VERSION, usage, AUTHORS, (char const *) NULL); if (getopt_long (argc, argv, "", NULL, NULL) != -1) usage (EXIT_FAILURE); diff --git a/src/logname.c b/src/logname.c index 932465a4b..7e85b5a66 100644 --- a/src/logname.c +++ b/src/logname.c @@ -1,5 +1,5 @@ /* logname -- print user's login name - Copyright (C) 1990-1997, 1999-2005 Free Software Foundation, Inc. + Copyright (C) 1990-1997, 1999-2005, 2007 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -65,7 +65,7 @@ main (int argc, char **argv) atexit (close_stdout); - parse_long_options (argc, argv, PROGRAM_NAME, GNU_PACKAGE, VERSION, + parse_long_options (argc, argv, PROGRAM_NAME, PACKAGE_NAME, VERSION, usage, AUTHORS, (char const *) NULL); if (getopt_long (argc, argv, "", NULL, NULL) != -1) usage (EXIT_FAILURE); diff --git a/src/nice.c b/src/nice.c index 7892fea4c..79e770850 100644 --- a/src/nice.c +++ b/src/nice.c @@ -1,5 +1,5 @@ /* nice -- run a program with modified niceness - Copyright (C) 1990-2005 Free Software Foundation, Inc. + Copyright (C) 1990-2005, 2007 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -107,7 +107,7 @@ main (int argc, char **argv) initialize_exit_failure (EXIT_FAILURE); atexit (close_stdout); - parse_long_options (argc, argv, PROGRAM_NAME, GNU_PACKAGE, VERSION, + parse_long_options (argc, argv, PROGRAM_NAME, PACKAGE_NAME, VERSION, usage, AUTHORS, (char const *) NULL); for (i = 1; i < argc; /* empty */) diff --git a/src/nohup.c b/src/nohup.c index 8080bf33a..275316485 100644 --- a/src/nohup.c +++ b/src/nohup.c @@ -1,5 +1,5 @@ /* nohup -- run a command immune to hangups, with output to a non-tty - Copyright (C) 2003, 2004, 2005 Free Software Foundation, Inc. + Copyright (C) 2003, 2004, 2005, 2007 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -97,7 +97,7 @@ main (int argc, char **argv) initialize_exit_failure (NOHUP_FAILURE); atexit (close_stdout); - parse_long_options (argc, argv, PROGRAM_NAME, GNU_PACKAGE, VERSION, + parse_long_options (argc, argv, PROGRAM_NAME, PACKAGE_NAME, VERSION, usage, AUTHORS, (char const *) NULL); if (getopt_long (argc, argv, "+", NULL, NULL) != -1) usage (NOHUP_FAILURE); diff --git a/src/printenv.c b/src/printenv.c index 1f20f9de3..69384ce2a 100644 --- a/src/printenv.c +++ b/src/printenv.c @@ -1,5 +1,5 @@ /* printenv -- print all or part of environment - Copyright (C) 1989-1997, 1999-2005 Free Software Foundation, Inc. + Copyright (C) 1989-1997, 1999-2005, 2007 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -89,7 +89,7 @@ main (int argc, char **argv) initialize_exit_failure (PRINTENV_FAILURE); atexit (close_stdout); - parse_long_options (argc, argv, PROGRAM_NAME, GNU_PACKAGE, VERSION, + parse_long_options (argc, argv, PROGRAM_NAME, PACKAGE_NAME, VERSION, usage, AUTHORS, (char const *) NULL); if (getopt_long (argc, argv, "+", NULL, NULL) != -1) usage (PRINTENV_FAILURE); diff --git a/src/printf.c b/src/printf.c index 90cd20092..7f87f3f65 100644 --- a/src/printf.c +++ b/src/printf.c @@ -648,7 +648,7 @@ main (int argc, char **argv) posixly_correct = (getenv ("POSIXLY_CORRECT") != NULL); - parse_long_options (argc, argv, PROGRAM_NAME, GNU_PACKAGE, VERSION, + parse_long_options (argc, argv, PROGRAM_NAME, PACKAGE_NAME, VERSION, usage, AUTHORS, (char const *) NULL); /* The above handles --help and --version. @@ -1,5 +1,5 @@ /* pwd - print current directory - Copyright (C) 1994-1997, 1999-2006 Free Software Foundation, Inc. + Copyright (C) 1994-1997, 1999-2007 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -296,7 +296,7 @@ main (int argc, char **argv) atexit (close_stdout); - parse_long_options (argc, argv, PROGRAM_NAME, GNU_PACKAGE, VERSION, + parse_long_options (argc, argv, PROGRAM_NAME, PACKAGE_NAME, VERSION, usage, AUTHORS, (char const *) NULL); if (getopt_long (argc, argv, "", NULL, NULL) != -1) usage (EXIT_FAILURE); diff --git a/src/setuidgid.c b/src/setuidgid.c index 73803460e..7e0109aba 100644 --- a/src/setuidgid.c +++ b/src/setuidgid.c @@ -84,7 +84,7 @@ main (int argc, char **argv) initialize_exit_failure (SETUIDGID_FAILURE); atexit (close_stdout); - parse_long_options (argc, argv, PROGRAM_NAME, GNU_PACKAGE, VERSION, + parse_long_options (argc, argv, PROGRAM_NAME, PACKAGE_NAME, VERSION, usage, AUTHORS, (char const *) NULL); if (getopt_long (argc, argv, "+", NULL, NULL) != -1) usage (SETUIDGID_FAILURE); diff --git a/src/sleep.c b/src/sleep.c index a9dc22d78..a5ba3bc8f 100644 --- a/src/sleep.c +++ b/src/sleep.c @@ -1,5 +1,5 @@ /* sleep - delay for a specified amount of time. - Copyright (C) 84, 1991-1997, 1999-2005 Free Software Foundation, Inc. + Copyright (C) 84, 1991-1997, 1999-2005, 2007 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -111,7 +111,7 @@ main (int argc, char **argv) atexit (close_stdout); - parse_long_options (argc, argv, PROGRAM_NAME, GNU_PACKAGE, VERSION, + parse_long_options (argc, argv, PROGRAM_NAME, PACKAGE_NAME, VERSION, usage, AUTHORS, (char const *) NULL); if (getopt_long (argc, argv, "", NULL, NULL) != -1) usage (EXIT_FAILURE); diff --git a/src/system.h b/src/system.h index d840ed505..88765e0f1 100644 --- a/src/system.h +++ b/src/system.h @@ -423,7 +423,7 @@ enum #define case_GETOPT_VERSION_CHAR(Program_name, Authors) \ case GETOPT_VERSION_CHAR: \ - version_etc (stdout, Program_name, GNU_PACKAGE, VERSION, Authors, \ + version_etc (stdout, Program_name, PACKAGE_NAME, VERSION, Authors, \ (char *) NULL); \ exit (EXIT_SUCCESS); \ break; diff --git a/src/test.c b/src/test.c index c0d89387d..daaf25012 100644 --- a/src/test.c +++ b/src/test.c @@ -828,7 +828,7 @@ main (int margc, char **margv) to exit silently with status 0. */ if (margc < 2 || !STREQ (margv[margc - 1], "]")) { - parse_long_options (margc, margv, PROGRAM_NAME, GNU_PACKAGE, VERSION, + parse_long_options (margc, margv, PROGRAM_NAME, PACKAGE_NAME, VERSION, usage, AUTHORS, (char const *) NULL); test_syntax_error (_("missing `]'"), NULL); } diff --git a/src/true.c b/src/true.c index 788cd4928..4ce3fe6cb 100644 --- a/src/true.c +++ b/src/true.c @@ -1,5 +1,5 @@ /* Exit with a status code indicating success. - Copyright (C) 1999-2003, 2005 Free Software Foundation, Inc. + Copyright (C) 1999-2003, 2005, 2007 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -73,7 +73,7 @@ main (int argc, char **argv) usage (EXIT_STATUS); if (STREQ (argv[1], "--version")) - version_etc (stdout, PROGRAM_NAME, GNU_PACKAGE, VERSION, AUTHORS, + version_etc (stdout, PROGRAM_NAME, PACKAGE_NAME, VERSION, AUTHORS, (char *) NULL); } diff --git a/src/unlink.c b/src/unlink.c index 6aad6634a..15a04a03a 100644 --- a/src/unlink.c +++ b/src/unlink.c @@ -1,5 +1,5 @@ /* unlink utility for GNU. - Copyright (C) 2001, 2002, 2004 Free Software Foundation, Inc. + Copyright (C) 2001, 2002, 2004, 2007 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -69,7 +69,7 @@ main (int argc, char **argv) atexit (close_stdout); - parse_long_options (argc, argv, PROGRAM_NAME, GNU_PACKAGE, VERSION, + parse_long_options (argc, argv, PROGRAM_NAME, PACKAGE_NAME, VERSION, usage, AUTHORS, (char const *) NULL); if (getopt_long (argc, argv, "", NULL, NULL) != -1) usage (EXIT_FAILURE); diff --git a/src/uptime.c b/src/uptime.c index bb474c193..aff1e3dfa 100644 --- a/src/uptime.c +++ b/src/uptime.c @@ -1,5 +1,5 @@ /* GNU's uptime. - Copyright (C) 1992-2002, 2004, 2005, 2006 Free Software Foundation, Inc. + Copyright (C) 1992-2002, 2004-2007 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -220,7 +220,7 @@ main (int argc, char **argv) atexit (close_stdout); - parse_long_options (argc, argv, PROGRAM_NAME, GNU_PACKAGE, VERSION, + parse_long_options (argc, argv, PROGRAM_NAME, PACKAGE_NAME, VERSION, usage, AUTHORS, (char const *) NULL); if (getopt_long (argc, argv, "", NULL, NULL) != -1) usage (EXIT_FAILURE); diff --git a/src/users.c b/src/users.c index 73d6df532..75298863d 100644 --- a/src/users.c +++ b/src/users.c @@ -1,5 +1,5 @@ /* GNU's users. - Copyright (C) 1992-2005 Free Software Foundation, Inc. + Copyright (C) 1992-2005, 2007 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -129,7 +129,7 @@ main (int argc, char **argv) atexit (close_stdout); - parse_long_options (argc, argv, PROGRAM_NAME, GNU_PACKAGE, VERSION, + parse_long_options (argc, argv, PROGRAM_NAME, PACKAGE_NAME, VERSION, usage, AUTHORS, (char const *) NULL); if (getopt_long (argc, argv, "", NULL, NULL) != -1) usage (EXIT_FAILURE); diff --git a/src/whoami.c b/src/whoami.c index 4f9f33be2..0e3a97d59 100644 --- a/src/whoami.c +++ b/src/whoami.c @@ -1,6 +1,6 @@ /* whoami -- print effective userid - Copyright (C) 89,90, 1991-1997, 1999-2002, 2004, 2005 Free Software + Copyright (C) 89,90, 1991-1997, 1999-2002, 2004, 2005, 2007 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify @@ -73,7 +73,7 @@ main (int argc, char **argv) atexit (close_stdout); - parse_long_options (argc, argv, PROGRAM_NAME, GNU_PACKAGE, VERSION, + parse_long_options (argc, argv, PROGRAM_NAME, PACKAGE_NAME, VERSION, usage, AUTHORS, (char const *) NULL); if (getopt_long (argc, argv, "", NULL, NULL) != -1) usage (EXIT_FAILURE); @@ -1,5 +1,5 @@ /* yes - output a string repeatedly until killed - Copyright (C) 1991-1997, 1999-2004 Free Software Foundation, Inc. + Copyright (C) 1991-1997, 1999-2004, 2007 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -70,7 +70,7 @@ main (int argc, char **argv) atexit (close_stdout); - parse_long_options (argc, argv, PROGRAM_NAME, GNU_PACKAGE, VERSION, + parse_long_options (argc, argv, PROGRAM_NAME, PACKAGE_NAME, VERSION, usage, AUTHORS, (char const *) NULL); if (getopt_long (argc, argv, "+", NULL, NULL) != -1) usage (EXIT_FAILURE); |