Skip to content
Snippets Groups Projects
Commit f7614910 authored by Mark Jenkinson's avatar Mark Jenkinson
Browse files

Lots of gzip script compatibility updates

parent c8a80ec3
No related branches found
No related tags found
No related merge requests found
#!/bin/sh
# melodicreport - makes the report page for melodic
#
# Christian Beckmann, Stephen Smith and Mark Jenkinson
# FMRIB Image Analysis Group
#
# Copyright (C) 1999-2004 University of Oxford
#
# SHCOPYRIGHT
# the next line restarts using wish \
exec $FSLDIR/bin/tclsh "$0" "$@"
......@@ -22,8 +31,13 @@ set FSLDIR $env(FSLDIR)
set MD [ lindex $argv 0 ]
catch { exec sh -c "mkdir ${MD}/report" }
if { ! [ file exists ${MD}/melodic_IC.hdr ] || ! [ file exists ${MD}/melodic_IC.img ] } {
puts "No MELODIC output melodic_IC.hdr/.img - exiting."
if { ! [ file exists ${MD}/melodic_IC.hdr ] && ! [ file exists ${MD}/melodic_IC.hdr.gz ] } {
puts "No MELODIC output melodic_IC - exiting."
exit
}
if { ! [ file exists ${MD}/melodic_IC.img ] && ! [ file exists ${MD}/melodic_IC.img.gz ] } {
puts "No MELODIC output melodic_IC - exiting."
exit
}
......
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