[gobolinux-users] Xorg 7.1 and Compile script issues
V
mkdm_2000 at yahoo.com
Sat Aug 26 20:04:40 GMT 2006
Hi,
I couldn't stand having to type Y/R a million times,
so I wrote an expect script. It seems to have worked
for me (at least the compiling part).
If you need to install expect, the expect compile will
fail unless you modify the recipe to have:
configure_options=(
"--with-tclinclude=/Files/Compile/Sources/tcl8.5a4"
)
(where you include the path to your Tcl source).
If you use Tcl 8.54a, there is a bug in
tcl8.5a4/generic/tclPort.h that will cause the expect
compile (but not the Tcl compile) to fail.
In the file
/Files/Compile/Sources/tcl8.5a4/generic/tclPort.h
change
# include "tclUnixPort.h"
to
# include "../unix/tclUnixPort.h"
Here's the expect script:
------ begin file ------
#!/System/Links/Executables/expect -f
set force_conservative 0 ;
;
if {$force_conservative} {
set send_slow {1 .1}
proc send {ignore arg} {
sleep .1
exp_send -s -- $arg
}
}
if {$force_conservative} {
set send_slow {1 .1}
proc send {ignore arg} {
sleep .1
exp_send -s -- $arg
}
}
set timeout -1
spawn Compile Xorg
match_max 100000
while 1 {
expect {
"Compile recipe for ZLib 1.2.3 or skip this
dependency?"
{send -- "S\r" }
"/Programs/Xorg/7.1 already exists."
{ send -- "Y\r" }
"What to do?"
{send -- "R\r"}
eof exit
}
}
------ end of expect script ------
V.
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
More information about the gobolinux-users
mailing list