confdata.c (1da177e4c3f41524e886b7f1b8a0c1fc7321cac2) confdata.c (3b9fa0931dd86a1fe5507311ee8031650f5d0e8c)
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 <sys/stat.h>
7#include <ctype.h>
8#include <stdio.h>

--- 74 unchanged lines hidden (view full) ---

83 if (name) {
84 in = zconf_fopen(name);
85 } else {
86 const char **names = conf_confnames;
87 while ((name = *names++)) {
88 name = conf_expand_value(name);
89 in = zconf_fopen(name);
90 if (in) {
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 <sys/stat.h>
7#include <ctype.h>
8#include <stdio.h>

--- 74 unchanged lines hidden (view full) ---

83 if (name) {
84 in = zconf_fopen(name);
85 } else {
86 const char **names = conf_confnames;
87 while ((name = *names++)) {
88 name = conf_expand_value(name);
89 in = zconf_fopen(name);
90 if (in) {
91 printf("#\n"
92 "# using defaults found in %s\n"
93 "#\n", name);
91 printf(_("#\n"
92 "# using defaults found in %s\n"
93 "#\n"), name);
94 break;
95 }
96 }
97 }
98
99 if (!in)
100 return 1;
101

--- 205 unchanged lines hidden (view full) ---

307 }
308 sym = sym_lookup("KERNELRELEASE", 0);
309 sym_calc_value(sym);
310 time(&now);
311 env = getenv("KCONFIG_NOTIMESTAMP");
312 if (env && *env)
313 use_timestamp = 0;
314
94 break;
95 }
96 }
97 }
98
99 if (!in)
100 return 1;
101

--- 205 unchanged lines hidden (view full) ---

307 }
308 sym = sym_lookup("KERNELRELEASE", 0);
309 sym_calc_value(sym);
310 time(&now);
311 env = getenv("KCONFIG_NOTIMESTAMP");
312 if (env && *env)
313 use_timestamp = 0;
314
315 fprintf(out, "#\n"
316 "# Automatically generated make config: don't edit\n"
317 "# Linux kernel version: %s\n"
318 "%s%s"
319 "#\n",
315 fprintf(out, _("#\n"
316 "# Automatically generated make config: don't edit\n"
317 "# Linux kernel version: %s\n"
318 "%s%s"
319 "#\n"),
320 sym_get_string_value(sym),
321 use_timestamp ? "# " : "",
322 use_timestamp ? ctime(&now) : "");
323 if (out_h)
324 fprintf(out_h, "/*\n"
325 " * Automatically generated C config: don't edit\n"
326 " * Linux kernel version: %s\n"
327 "%s%s"

--- 133 unchanged lines hidden ---
320 sym_get_string_value(sym),
321 use_timestamp ? "# " : "",
322 use_timestamp ? ctime(&now) : "");
323 if (out_h)
324 fprintf(out_h, "/*\n"
325 " * Automatically generated C config: don't edit\n"
326 " * Linux kernel version: %s\n"
327 "%s%s"

--- 133 unchanged lines hidden ---