Changeset 1993 for trunk/src/kmk/main.c


Ignore:
Timestamp:
Oct 29, 2008, 1:37:51 AM (17 years ago)
Author:
bird
Message:

Merged in current GNU Make code (CVS from 2008-10-28). Ref #55.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/kmk/main.c

    r1980 r1993  
    77GNU Make is free software; you can redistribute it and/or modify it under the
    88terms of the GNU General Public License as published by the Free Software
    9 Foundation; either version 2, or (at your option) any later version.
     9Foundation; either version 3 of the License, or (at your option) any later
     10version.
    1011
    1112GNU Make is distributed in the hope that it will be useful, but WITHOUT ANY
     
    1415
    1516You should have received a copy of the GNU General Public License along with
    16 GNU Make; see the file COPYING.  If not, write to the Free Software
    17 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.  */
     17this program.  If not, see <http://www.gnu.org/licenses/>.  */
    1818
    1919#include "make.h"
     
    375375  -h, --help                  Print this message and exit.\n"),
    376376    N_("\
    377   -i, --ignore-errors         Ignore errors from commands.\n"),
     377  -i, --ignore-errors         Ignore errors from recipes.\n"),
    378378    N_("\
    379379  -I DIRECTORY, --include-dir=DIRECTORY\n\
     
    396396    N_("\
    397397  -n, --just-print, --dry-run, --recon\n\
    398                               Don't actually run any commands; just print them.\n"),
     398                              Don't actually run any recipe; just print them.\n"),
    399399    N_("\
    400400  -o FILE, --old-file=FILE, --assume-old=FILE\n\
     
    403403  -p, --print-data-base       Print make's internal database.\n"),
    404404    N_("\
    405   -q, --question              Run no commands; exit status says if up to date.\n"),
     405  -q, --question              Run no recipe; exit status says if up to date.\n"),
    406406    N_("\
    407407  -r, --no-builtin-rules      Disable the built-in implicit rules.\n"),
     
    409409  -R, --no-builtin-variables  Disable the built-in variable settings.\n"),
    410410    N_("\
    411   -s, --silent, --quiet       Don't echo commands.\n"),
     411  -s, --silent, --quiet       Don't echo recipes.\n"),
    412412    N_("\
    413413  -S, --no-keep-going, --stop\n\
     
    15371537  define_variable (".VARIABLES", 10, "", o_default, 0)->special = 1;
    15381538  /* define_variable (".TARGETS", 8, "", o_default, 0)->special = 1; */
     1539  define_variable (".RECIPEPREFIX", 13, "", o_default, 0)->special = 1;
    15391540
    15401541  /* Set up .FEATURES */
     
    35803581    return;
    35813582
     3583#ifdef KMK
     3584  printf ("%skmk - kBuild version %d.%d.%d (r%u)\n\
     3585\n",
     3586          precede, KBUILD_VERSION_MAJOR, KBUILD_VERSION_MINOR,
     3587          KBUILD_VERSION_PATCH, KBUILD_SVN_REV);
     3588
     3589  printf("%sBased on GNU Make %s:\n", precede, version_string);
     3590
     3591#else  /* !KMK */
     3592  printf ("%sGNU Make %s\n", precede, version_string);
     3593
     3594  if (!remote_description || *remote_description == '\0')
     3595    printf (_("%sBuilt for %s\n"), precede, make_host);
     3596  else
     3597    printf (_("%sBuilt for %s (%s)\n"),
     3598            precede, make_host, remote_description);
     3599#endif /* !KMK */
     3600
    35823601  /* Print this untranslated.  The coding standards recommend translating the
    35833602     (C) to the copyright symbol, but this string is going to change every
     
    35853604     word "Copyright", so it hardly seems worth it.  */
    35863605
     3606  printf ("%sCopyright (C) 2007  Free Software Foundation, Inc.\n", precede);
     3607
     3608  printf (_("%sLicense GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>\n\
     3609%sThis is free software: you are free to change and redistribute it.\n\
     3610%sThere is NO WARRANTY, to the extent permitted by law.\n"),
     3611            precede, precede, precede);
     3612
    35873613#ifdef KMK
    3588   printf ("%skmk - kBuild version %d.%d.%d (r%u)\n\
    3589 \n\
    3590 %sBased on GNU Make %s:\n\
    3591 %s Copyright (C) 2006  Free Software Foundation, Inc.\n\
    3592 \n\
     3614  printf ("\n\
    35933615%skBuild modifications:\n\
    35943616%s Copyright (C) 2005-2008  Knut St. Osmundsen.\n\
     
    35973619%s Copyright (c) 1983 1987, 1988, 1989, 1990, 1991, 1992, 1993, 1994\n\
    35983620%s  The Regents of the University of California. All rights reserved.\n\
    3599 %s Copyright (c) 1998  Todd C. Miller <Todd.Miller@courtesan.com>\n\
    3600 %s\n",
    3601           precede, KBUILD_VERSION_MAJOR, KBUILD_VERSION_MINOR,
    3602           KBUILD_VERSION_PATCH, KBUILD_SVN_REV,
    3603           precede, version_string,
    3604           precede, precede, precede, precede, precede, precede,
    3605           precede, precede);
    3606 #else
    3607   printf ("%sGNU Make %s\n\
    3608 %sCopyright (C) 2006  Free Software Foundation, Inc.\n",
    3609           precede, version_string, precede);
    3610 #endif
    3611 
    3612   printf (_("%sThis is free software; see the source for copying conditions.\n\
    3613 %sThere is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A\n\
    3614 %sPARTICULAR PURPOSE.\n"),
    3615             precede, precede, precede);
    3616 
    3617 #ifdef KMK
     3621%s Copyright (c) 1998  Todd C. Miller <Todd.Miller@courtesan.com>\n",
     3622          precede, precede, precede, precede, precede, precede);
     3623
    36183624# ifdef KBUILD_PATH
    3619   printf (_("%s\n\
     3625  printf (_("\n\
    36203626%sKBUILD_PATH:     '%s' (default '%s')\n\
    3621 %sKBUILD_BIN_PATH: '%s' (default '%s')\n"),
    3622           precede,
     3627%sKBUILD_BIN_PATH: '%s' (default '%s')\n\
     3628\n"),
    36233629          precede, get_kbuild_path(), KBUILD_PATH,
    36243630          precede, get_kbuild_bin_path(), KBUILD_BIN_PATH);
    36253631# else  /* !KBUILD_PATH */
    3626   printf (_("%s\n\
     3632  printf ("\n\
    36273633%sKBUILD_PATH:     '%s'\n\
    3628 %sKBUILD_BIN_PATH: '%s'\n"),
    3629           precede,
     3634%sKBUILD_BIN_PATH: '%s'\n\
     3635\n",
    36303636          precede, get_kbuild_path(),
    36313637          precede, get_kbuild_bin_path());
    36323638# endif /* !KBUILD_PATH */
     3639
    36333640  if (!remote_description || *remote_description == '\0')
    3634     printf (_("\n%sThis program is built for %s/%s/%s [" __DATE__ " " __TIME__ "]\n"),
     3641    printf (_("%sThis program is built for %s/%s/%s [" __DATE__ " " __TIME__ "]\n\n"),
    36353642            precede, KBUILD_HOST, KBUILD_HOST_ARCH, KBUILD_HOST_CPU);
    36363643  else
    3637     printf (_("\n%sThis program is built for %s/%s/%s (%s) [" __DATE__ " " __TIME__ "]\n"),
     3644    printf (_("%sThis program is built for %s/%s/%s (%s) [" __DATE__ " " __TIME__ "]\n\n"),
    36383645            precede, KBUILD_HOST, KBUILD_HOST_ARCH, KBUILD_HOST_CPU, remote_description);
    3639 #else
    3640   if (!remote_description || *remote_description == '\0')
    3641     printf (_("\n%sThis program built for %s\n"), precede, make_host);
    3642   else
    3643     printf (_("\n%sThis program built for %s (%s)\n"),
    3644             precede, make_host, remote_description);
    3645 #endif
     3646
     3647#endif /* KMK */
    36463648
    36473649  printed_version = 1;
Note: See TracChangeset for help on using the changeset viewer.