Skip to content
Snippets Groups Projects
Commit e13f1278 authored by David Flitney's avatar David Flitney
Browse files

Patches to fsl-3.2patchD

parent 2133fd15
Branches fsl-3_2
No related merge requests found
......@@ -30,7 +30,7 @@ full_list=`${FSLDIR}/bin/imglob -oneperimage vol*`
for i in $full_list ; do
echo processing $i
echo processing $i >> ${output}.ecclog
${FSLDIR}/bin/flirt -in $i -ref $output -nosearch -o $i >> ${output}.ecclog
${FSLDIR}/bin/flirt -in $i -ref $output -nosearch -o $i -paddingsize 1 >> ${output}.ecclog
done
avwmerge -t $output $full_list
......
......@@ -979,25 +979,35 @@ proc fdt:select_tool { w tool } {
}
proc fdt_monitor { w cmd } {
global debugging
global debugging OSFLAVOUR
puts "$cmd"
set oldcursor [ $w configure -cursor { watch red white } ]
catch {
update idletasks
if { ! $debugging } {
set fd [ open "|$cmd" r ]
while { ( [ gets $fd line ] >= 0 ) } {
update idletasks
puts $line
if { $OSFLAVOUR != "cygwin" } {
set oldcursor [ $w configure -cursor { watch red white } ]
catch {
update idletasks
if { ! $debugging } {
set fd [ open "|$cmd" r ]
while { ( [ gets $fd line ] >= 0 ) } {
update idletasks
puts $line
}
close $fd
}
close $fd
}
} junk
$w configure -cursor $oldcursor
} junk
$w configure -cursor $oldcursor
} else {
catch { exec sh -c $cmd } junk
}
if { $junk != "" } {
MxPause "Errors: $junk"
}
puts "Done!"
}
......@@ -1073,8 +1083,8 @@ proc fdt:apply { w dialog } {
if { [file exists ${bedpost(directory)}.bedpost ] } {
set canwrite [ YesNoWidget "Overwrite ${bedpost(directory)}.bedpost?" Yes No ]
if { $canwrite } {
puts "rm -rf $bedpost(directory)"
catch { exec rm -rf $bedpost(directory) } errmsg
puts "rm -rf ${bedpost(directory)}.bedpost"
catch { exec rm -rf ${bedpost(directory)}.bedpost } errmsg
}
}
if { $canwrite } {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment