conf.c (5e2aa2ed08e2e280121dc7cf5609c87d464f12ef) | conf.c (0a1f00a1c86421cc07cec87011c7cf4df68ee54b) |
---|---|
1/* 2 * Copyright (C) 2002 Roman Zippel <zippel@linux-m68k.org> 3 * Released under the terms of the GNU GPL v2.0. 4 */ 5 6#include <locale.h> 7#include <ctype.h> 8#include <stdio.h> --- 457 unchanged lines hidden (view full) --- 466 */ 467 {"oldnoconfig", no_argument, NULL, olddefconfig}, 468 {NULL, 0, NULL, 0} 469}; 470 471static void conf_usage(const char *progname) 472{ 473 | 1/* 2 * Copyright (C) 2002 Roman Zippel <zippel@linux-m68k.org> 3 * Released under the terms of the GNU GPL v2.0. 4 */ 5 6#include <locale.h> 7#include <ctype.h> 8#include <stdio.h> --- 457 unchanged lines hidden (view full) --- 466 */ 467 {"oldnoconfig", no_argument, NULL, olddefconfig}, 468 {NULL, 0, NULL, 0} 469}; 470 471static void conf_usage(const char *progname) 472{ 473 |
474 printf("Usage: %s [option] <kconfig-file>\n", progname); | 474 printf("Usage: %s [-s] [option] <kconfig-file>\n", progname); |
475 printf("[option] is _one_ of the following:\n"); 476 printf(" --listnewconfig List new options\n"); 477 printf(" --oldaskconfig Start a new configuration using a line-oriented program\n"); 478 printf(" --oldconfig Update a configuration using a provided .config as base\n"); 479 printf(" --silentoldconfig Same as oldconfig, but quietly, additionally update deps\n"); 480 printf(" --olddefconfig Same as silentoldconfig but sets new symbols to their default value\n"); 481 printf(" --oldnoconfig An alias of olddefconfig\n"); 482 printf(" --defconfig <file> New config with default defined in <file>\n"); --- 13 unchanged lines hidden (view full) --- 496 struct stat tmpstat; 497 498 setlocale(LC_ALL, ""); 499 bindtextdomain(PACKAGE, LOCALEDIR); 500 textdomain(PACKAGE); 501 502 tty_stdio = isatty(0) && isatty(1) && isatty(2); 503 | 475 printf("[option] is _one_ of the following:\n"); 476 printf(" --listnewconfig List new options\n"); 477 printf(" --oldaskconfig Start a new configuration using a line-oriented program\n"); 478 printf(" --oldconfig Update a configuration using a provided .config as base\n"); 479 printf(" --silentoldconfig Same as oldconfig, but quietly, additionally update deps\n"); 480 printf(" --olddefconfig Same as silentoldconfig but sets new symbols to their default value\n"); 481 printf(" --oldnoconfig An alias of olddefconfig\n"); 482 printf(" --defconfig <file> New config with default defined in <file>\n"); --- 13 unchanged lines hidden (view full) --- 496 struct stat tmpstat; 497 498 setlocale(LC_ALL, ""); 499 bindtextdomain(PACKAGE, LOCALEDIR); 500 textdomain(PACKAGE); 501 502 tty_stdio = isatty(0) && isatty(1) && isatty(2); 503 |
504 while ((opt = getopt_long(ac, av, "", long_opts, NULL)) != -1) { | 504 while ((opt = getopt_long(ac, av, "s", long_opts, NULL)) != -1) { 505 if (opt == 's') { 506 conf_set_message_callback(NULL); 507 continue; 508 } |
505 input_mode = (enum input_mode)opt; 506 switch (opt) { 507 case silentoldconfig: 508 sync_kconfig = 1; 509 break; 510 case defconfig: 511 case savedefconfig: 512 defconfig_file = optarg; --- 206 unchanged lines hidden --- | 509 input_mode = (enum input_mode)opt; 510 switch (opt) { 511 case silentoldconfig: 512 sync_kconfig = 1; 513 break; 514 case defconfig: 515 case savedefconfig: 516 defconfig_file = optarg; --- 206 unchanged lines hidden --- |