#! /bin/tcsh -f # # wfilemask # # # Original Author: Doug Greve # # Copyright © 2021 The General Hospital Corporation (Boston, MA) "MGH" # # Terms and conditions for use, reproduction, distribution and contribution # are found in the 'FreeSurfer Software License Agreement' contained # in the file 'LICENSE' found in the FreeSurfer distribution, and here: # # https://surfer.nmr.mgh.harvard.edu/fswiki/FreeSurferSoftwareLicense # # Reporting: freesurfer@nmr.mgh.harvard.edu # # # wfilemask # set VERSION = 'wfilemask dev'; set inputargs = ($argv); set LabelFile = (); set WFile = (); set WFileOut = (); set PrintHelp = 0; set monly = 0; if($#argv == 0) goto usage_exit; set n = `echo $argv | egrep -e -version | wc -l` if($n != 0) then echo $VERSION exit 0; endif set n = `echo $argv | egrep -e -help | wc -l` if($n != 0) then set PrintHelp = 1; goto usage_exit; endif source $FREESURFER_HOME/sources.csh goto parse_args; parse_args_return: goto check_params; check_params_return: if(! $monly) set MLF = /tmp/wfilemask-$$.m echo MLF is $MLF rm -f $MLF #--------------------------------------------------------------# tee $MLF > /dev/null <