Changeset 1993 for trunk/src/kmk/main.c
- Timestamp:
- Oct 29, 2008, 1:37:51 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/kmk/main.c
r1980 r1993 7 7 GNU Make is free software; you can redistribute it and/or modify it under the 8 8 terms of the GNU General Public License as published by the Free Software 9 Foundation; either version 2, or (at your option) any later version. 9 Foundation; either version 3 of the License, or (at your option) any later 10 version. 10 11 11 12 GNU Make is distributed in the hope that it will be useful, but WITHOUT ANY … … 14 15 15 16 You 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. */ 17 this program. If not, see <http://www.gnu.org/licenses/>. */ 18 18 19 19 #include "make.h" … … 375 375 -h, --help Print this message and exit.\n"), 376 376 N_("\ 377 -i, --ignore-errors Ignore errors from commands.\n"),377 -i, --ignore-errors Ignore errors from recipes.\n"), 378 378 N_("\ 379 379 -I DIRECTORY, --include-dir=DIRECTORY\n\ … … 396 396 N_("\ 397 397 -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"), 399 399 N_("\ 400 400 -o FILE, --old-file=FILE, --assume-old=FILE\n\ … … 403 403 -p, --print-data-base Print make's internal database.\n"), 404 404 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"), 406 406 N_("\ 407 407 -r, --no-builtin-rules Disable the built-in implicit rules.\n"), … … 409 409 -R, --no-builtin-variables Disable the built-in variable settings.\n"), 410 410 N_("\ 411 -s, --silent, --quiet Don't echo commands.\n"),411 -s, --silent, --quiet Don't echo recipes.\n"), 412 412 N_("\ 413 413 -S, --no-keep-going, --stop\n\ … … 1537 1537 define_variable (".VARIABLES", 10, "", o_default, 0)->special = 1; 1538 1538 /* define_variable (".TARGETS", 8, "", o_default, 0)->special = 1; */ 1539 define_variable (".RECIPEPREFIX", 13, "", o_default, 0)->special = 1; 1539 1540 1540 1541 /* Set up .FEATURES */ … … 3580 3581 return; 3581 3582 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 3582 3601 /* Print this untranslated. The coding standards recommend translating the 3583 3602 (C) to the copyright symbol, but this string is going to change every … … 3585 3604 word "Copyright", so it hardly seems worth it. */ 3586 3605 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 3587 3613 #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\ 3593 3615 %skBuild modifications:\n\ 3594 3616 %s Copyright (C) 2005-2008 Knut St. Osmundsen.\n\ … … 3597 3619 %s Copyright (c) 1983 1987, 1988, 1989, 1990, 1991, 1992, 1993, 1994\n\ 3598 3620 %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 3618 3624 # ifdef KBUILD_PATH 3619 printf (_(" %s\n\3625 printf (_("\n\ 3620 3626 %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"), 3623 3629 precede, get_kbuild_path(), KBUILD_PATH, 3624 3630 precede, get_kbuild_bin_path(), KBUILD_BIN_PATH); 3625 3631 # else /* !KBUILD_PATH */ 3626 printf ( _("%s\n\3632 printf ("\n\ 3627 3633 %sKBUILD_PATH: '%s'\n\ 3628 %sKBUILD_BIN_PATH: '%s'\n "),3629 precede,3634 %sKBUILD_BIN_PATH: '%s'\n\ 3635 \n", 3630 3636 precede, get_kbuild_path(), 3631 3637 precede, get_kbuild_bin_path()); 3632 3638 # endif /* !KBUILD_PATH */ 3639 3633 3640 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"), 3635 3642 precede, KBUILD_HOST, KBUILD_HOST_ARCH, KBUILD_HOST_CPU); 3636 3643 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"), 3638 3645 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 */ 3646 3648 3647 3649 printed_version = 1;
Note:
See TracChangeset
for help on using the changeset viewer.