Patch for make Xconfig scripts

Robert L Krawitz (rlk@tiac.net)
Thu, 22 Feb 1996 13:04:16 -0500


This removes the explicit black text color that a lot of things were
being set to. This is a problem for those of us who prefer white text
on a black display.

Index: scripts/header.tk
===================================================================
RCS file: /src/repository/linux-1.3/scripts/header.tk,v
retrieving revision 1.1.1.5
diff -c -r1.1.1.5 header.tk
*** header.tk 1996/02/09 15:46:15 1.1.1.5
--- header.tk 1996/02/15 03:23:45
***************
*** 87,94 ****
label $w.bm -bitmap questhead
pack $w.bm -pady 10 -side top -padx 10
message $w.m -width 400 -aspect 300 \
! -text "Changes will be lost. Are you sure?" -relief raised \
! -fg black
pack $w.m -pady 10 -side top -padx 10
wm title $w "Are you sure?"

--- 87,93 ----
label $w.bm -bitmap questhead
pack $w.bm -pady 10 -side top -padx 10
message $w.m -width 400 -aspect 300 \
! -text "Changes will be lost. Are you sure?" -relief raised
pack $w.m -pady 10 -side top -padx 10
wm title $w "Are you sure?"

***************
*** 115,121 ****
toplevel $w -class Dialog
message $w.m -width 400 -aspect 300 -text \
"Unable to read file $loadfile" \
! -relief raised -fg black
label $w.bm -bitmap error
pack $w.bm $w.m -pady 10 -side top -padx 10
wm title $w "Oops"
--- 114,120 ----
toplevel $w -class Dialog
message $w.m -width 400 -aspect 300 -text \
"Unable to read file $loadfile" \
! -relief raised
label $w.bm -bitmap error
pack $w.bm $w.m -pady 10 -side top -padx 10
wm title $w "Oops"
***************
*** 143,149 ****
toplevel $w -class Dialog
message $w.m -width 400 -aspect 300 -text \
"Unable to write file $loadfile" \
! -relief raised -fg black
label $w.bm -bitmap error
pack $w.bm $w.m -pady 10 -side top -padx 10
wm title $w "Oops"
--- 142,148 ----
toplevel $w -class Dialog
message $w.m -width 400 -aspect 300 -text \
"Unable to write file $loadfile" \
! -relief raised
label $w.bm -bitmap error
pack $w.bm $w.m -pady 10 -side top -padx 10
wm title $w "Oops"
***************
*** 303,319 ****
if { $found == 0 } then {
if { $filefound == 0 } then {
message $w.m -width 750 -aspect 300 -text \
! "No help available - unable to open file Documentation/Configure.help. This file is available from http://math-www.uni-paderborn.de/~axel/config_help.html or ftp://sunsite.unc.edu/pub/Linux/kernel/config/krnl_cnfg_hlp_1.X.XX.tgz" -relief raised -fg black
} else {
message $w.m -width 400 -aspect 300 -text \
! "No help available for $varname" -relief raised -fg black
}
label $w.bm -bitmap error
pack $w.bm $w.m -pady 10 -side top -padx 10
wm title $w "RTFM"
} else {
message $w.m -width 400 -aspect 300 -text $message \
! -relief raised -fg black
label $w.bm -bitmap info
pack $w.bm $w.m -pady 10 -side top -padx 10
wm title $w "Configuration help"
--- 302,318 ----
if { $found == 0 } then {
if { $filefound == 0 } then {
message $w.m -width 750 -aspect 300 -text \
! "No help available - unable to open file Documentation/Configure.help. This file is available from http://math-www.uni-paderborn.de/~axel/config_help.html or ftp://sunsite.unc.edu/pub/Linux/kernel/config/krnl_cnfg_hlp_1.X.XX.tgz" -relief raised
} else {
message $w.m -width 400 -aspect 300 -text \
! "No help available for $varname" -relief raised
}
label $w.bm -bitmap error
pack $w.bm $w.m -pady 10 -side top -padx 10
wm title $w "RTFM"
} else {
message $w.m -width 400 -aspect 300 -text $message \
! -relief raised
label $w.bm -bitmap info
pack $w.bm $w.m -pady 10 -side top -padx 10
wm title $w "Configuration help"
***************
*** 334,340 ****
catch {destroy $w}
toplevel $w -class Dialog
message $w.m -width 400 -aspect 300 -text \
! "The linux kernel is now hopefully configured for your setup. Check the top-level Makefile for additional configuration, and do a 'make dep ; make clean' if you want to be sure all the files are correctly re-made." -relief raised -fg black
label $w.bm -bitmap info
pack $w.bm $w.m -pady 10 -side top -padx 10
wm title $w "Kernel build instructions"
--- 333,339 ----
catch {destroy $w}
toplevel $w -class Dialog
message $w.m -width 400 -aspect 300 -text \
! "The linux kernel is now hopefully configured for your setup. Check the top-level Makefile for additional configuration, and do a 'make dep ; make clean' if you want to be sure all the files are correctly re-made." -relief raised
label $w.bm -bitmap info
pack $w.bm $w.m -pady 10 -side top -padx 10
wm title $w "Kernel build instructions"
Index: scripts/tkgen.c
===================================================================
RCS file: /src/repository/linux-1.3/scripts/tkgen.c,v
retrieving revision 1.1.1.7
diff -c -r1.1.1.7 tkgen.c
*** tkgen.c 1996/02/10 15:18:59 1.1.1.7
--- tkgen.c 1996/02/15 03:21:05
***************
*** 196,202 ****
break;
case tok_int:
printf("} then { ");
! printf(".menu%d.config.f.x%d.x configure -state normal -fore black; ", menu_num, line_num);
printf(".menu%d.config.f.x%d.l configure -state normal; ", menu_num, line_num);
printf("} else { ");
printf(".menu%d.config.f.x%d.x configure -state disabled -fore gray60;", menu_num, line_num );
--- 196,202 ----
break;
case tok_int:
printf("} then { ");
! printf(".menu%d.config.f.x%d.x configure -state normal; ", menu_num, line_num);
printf(".menu%d.config.f.x%d.l configure -state normal; ", menu_num, line_num);
printf("} else { ");
printf(".menu%d.config.f.x%d.x configure -state disabled -fore gray60;", menu_num, line_num );