From 22e488079792b702f3bcf48bb3b42d611a39938f Mon Sep 17 00:00:00 2001 From: Andrew Hoopes Date: Tue, 21 Apr 2020 18:20:57 -0400 Subject: [PATCH] final removal of CVS history tags --- attic/dmri_tensoreig/dmri_tensoreig.cpp | 5 +- .../histo_fix_topology/histo_fix_topology.cpp | 4 +- attic/histo_segment/histo_segment.cpp | 4 +- .../mri_aseg_edit_reclassify.cpp | 3 +- .../mri_aseg_edit_train.cpp | 3 +- .../mri_bc_sc_bias_correct.cpp | 4 +- attic/mri_cc_ma_fill/mri_cc_ma_fill.c | 2 - attic/mri_cc_medial_axis/mri_cc_medial_axis.c | 2 - attic/mri_convert_mdh/mri_convert_mdh.cpp | 5 +- .../mri_extract_conditions.cpp | 3 +- .../mri_extract_ma_intensity.c | 1 - attic/mri_fcili/mri_fcili.cpp | 8 +- attic/mri_gdfglm/mri_gdfglm.cpp | 5 +- attic/mri_ibmc/mri_ibmc.cpp | 7 +- attic/mri_interpolate/mri_interpolate.cpp | 6 +- .../mri_make_density_map.cpp | 3 +- attic/mri_map_atrophy/mri_map_atrophy.c | 3 +- attic/mri_ms_EM/PoissonSolver.h | 4 - attic/mri_ms_EM_with_atlas/PoissonSolver.h | 4 - attic/mri_segment_tumor/mri_segment_tumor.cpp | 2 - attic/mri_threshold/mri_threshold.cpp | 4 +- .../mri_transform_to_COR.cpp | 3 +- attic/mri_vol2roi/mri_vol2roi.cpp | 8 +- attic/mri_wmfilter/mri_wmfilter.cpp | 3 +- attic/mri_xcorr/mri_xcorr.cpp | 8 +- attic/mris_add_template/mris_add_template.cpp | 3 +- .../mris_classify_thickness.cpp | 3 +- .../mris_compute_optimal_kernel.cpp | 3 +- .../mris_curvature_vectors.c | 4 +- attic/mris_density/mris_density.cpp | 3 +- attic/mris_fbirn_annot/mris_fbirn_annot.cpp | 8 +- attic/mris_glm/mris_glm.cpp | 7 +- .../mris_longitudinal_surfaces.cpp | 7 +- .../mris_make_map_surfaces.cpp | 4 +- attic/mris_pval_fill/mris_pval_fill.c | 2 - .../mris_surface_change.cpp | 8 +- attic/mris_svm_train/mris_svm_train.cpp | 3 +- attic/mris_twoclass/mris_twoclass.cpp | 3 +- attic/mris_w_to_curv/mris_w_to_curv.cpp | 3 +- attic/spherical_stats/spherical_stats.cpp | 3 +- cmake/functions.cmake | 5 +- cnn_sphere_register/warp_pad.c | 8 +- distribution/ASegStatsLUT.txt | 1 - distribution/CMakeLists.txt | 10 +- distribution/FreeSurferColorLUT.txt | 1 - distribution/FreeSurferEnv.csh | 3 +- distribution/FreeSurferEnv.sh | 3 +- distribution/SegmentNoLUT.txt | 1 - distribution/WMParcStatsLUT.txt | 1 - distribution/average/mni305.cor.readme | 2 - distribution/diffusion/mgh-dti-seqpack/README | 3 - distribution/nmr-dev-env | 101 ----- distribution/nmr-std-env | 115 ------ dngtester/cpptester.cpp | 4 +- freeview/resource/FreeSurferColorLUT.txt | 1 - fsfast/bin/CMakeLists.txt | 2 +- fsfast/bin/acfseg-sess | 2 +- fsfast/bin/acorfunc-sess | 2 +- fsfast/bin/afni2bvol | 2 +- fsfast/bin/aseg2funcmask-sess | 2 +- fsfast/bin/autoreg-fsl | 2 +- fsfast/bin/autoreg-sess | 4 +- fsfast/bin/avgraw | 2 +- fsfast/bin/bfile2afni | 2 +- fsfast/bin/bfileconvert | 2 +- fsfast/bin/bgmask-sess | 2 +- fsfast/bin/bvol2afni | 2 +- fsfast/bin/cat-bvolume | 2 +- fsfast/bin/check-sliceres-sess | 2 +- fsfast/bin/cluster-sess | 2 +- fsfast/bin/clusterspec2mask | 2 +- fsfast/bin/cmpanalyses-sess | 2 +- fsfast/bin/cmpsesssnr-sess | 2 +- fsfast/bin/cmpsnr-sess | 2 +- fsfast/bin/compress-sess | 2 +- fsfast/bin/conmask-sess | 2 +- fsfast/bin/crossrun.ffx.fsf | 1 - fsfast/bin/diag-fmri | 2 +- fsfast/bin/diag-optseq | 2 +- fsfast/bin/editmask | 2 +- fsfast/bin/evfunc | 2 +- fsfast/bin/evfunc-jk-sess | 2 +- fsfast/bin/evfunc-sess | 2 +- fsfast/bin/evpve-sess | 2 +- fsfast/bin/evspatfil | 2 +- fsfast/bin/evspatfil-jk-sess | 2 +- fsfast/bin/evspatfil-sess | 2 +- fsfast/bin/extract-roi-tc-sess | 2 +- fsfast/bin/fast-log-preamble.csh | 1 - fsfast/bin/fast_getext | 2 +- fsfast/bin/fcreg-sess | 2 +- fsfast/bin/fcseed-config | 2 +- fsfast/bin/fcseed-sess | 2 +- fsfast/bin/fcseedcor | 2 +- fsfast/bin/feat.fsfast-patch | 1 - fsfast/bin/feat.fsfast-patch.tcl | 1 - fsfast/bin/fftfunc-sess | 2 +- fsfast/bin/fieldsign-sess | 2 +- fsfast/bin/fixseqinfo-sess | 2 +- fsfast/bin/flacproc-sess | 2 +- fsfast/bin/fmreigen | 2 +- fsfast/bin/fmreigen-jk | 2 +- fsfast/bin/fsf-glmfit | 2 +- fsfast/bin/fsf-kmnacf | 2 +- fsfast/bin/fsf-kmracf | 2 +- fsfast/bin/fsfast-gui-bug | 2 +- fsfast/bin/fsfeat | 2 +- fsfast/bin/fsfeat-sess | 2 +- fsfast/bin/fsfeatffx | 2 +- fsfast/bin/fsl2par | 2 +- fsfast/bin/fslregister-sess | 2 +- fsfast/bin/func2acf | 2 +- fsfast/bin/func2label | 2 +- fsfast/bin/func2roi-sess | 2 +- fsfast/bin/func2roi-sess-mrun | 2 +- fsfast/bin/func2sph-sess | 2 +- fsfast/bin/func2tal | 2 +- fsfast/bin/func2tal-sess | 2 +- fsfast/bin/funcroi-config | 2 +- fsfast/bin/funcroi-sess | 2 +- fsfast/bin/funcroi-table-sess | 2 +- fsfast/bin/functcvm | 2 +- fsfast/bin/functcvm-sess | 2 +- fsfast/bin/functwf-sess | 2 +- fsfast/bin/fwhmest | 2 +- fsfast/bin/fwhmest-sess | 2 +- fsfast/bin/getana | 2 +- fsfast/bin/getbext | 2 +- fsfast/bin/getendian | 1 - fsfast/bin/getfirstsliceno | 2 +- fsfast/bin/getlastsliceno | 2 +- fsfast/bin/getncols | 1 - fsfast/bin/getnframes | 2 +- fsfast/bin/getnrows | 1 - fsfast/bin/getnslices | 2 +- fsfast/bin/getsliceno | 2 +- fsfast/bin/getslicestr | 2 +- fsfast/bin/getspacetype | 2 +- fsfast/bin/getstem | 2 +- fsfast/bin/ghostdet | 2 +- fsfast/bin/ghostdet-sess | 2 +- fsfast/bin/glmest | 2 +- fsfast/bin/glmfourier | 2 +- fsfast/bin/glmfourier-sess | 2 +- fsfast/bin/glmstats | 2 +- fsfast/bin/groupreg-sess | 2 +- fsfast/bin/inorm | 2 +- fsfast/bin/inorm-sess | 2 +- fsfast/bin/inorm2 | 2 +- fsfast/bin/inorm3 | 2 +- fsfast/bin/intergroupavg-sess | 2 +- fsfast/bin/ipfsl | 2 +- fsfast/bin/isroiavg | 2 +- fsfast/bin/isxavg-fe | 2 +- fsfast/bin/isxavg-fe-abb-sess | 2 +- fsfast/bin/isxavg-fe-sess | 2 +- fsfast/bin/isxavg-fe-sess-1.3 | 2 +- fsfast/bin/isxavg-re | 2 +- fsfast/bin/isxavg-re-abb-sess | 2 +- fsfast/bin/isxavg-re-sess | 2 +- fsfast/bin/isxconcat-sess | 2 +- fsfast/bin/isxconcat0-sess | 2 +- fsfast/bin/kmacf-sess | 2 +- fsfast/bin/kmacfcond-sess | 2 +- fsfast/bin/kmacfwht-sess | 2 +- fsfast/bin/ksgrinder | 2 +- fsfast/bin/ksgrinder-sess | 2 +- fsfast/bin/latgrinder-sess | 2 +- fsfast/bin/latgroup-sess | 2 +- fsfast/bin/lrst-blk | 2 +- fsfast/bin/lrst-blk-sess | 2 +- fsfast/bin/mc-afni | 2 +- fsfast/bin/mc-afni2 | 2 +- fsfast/bin/mc-bbr | 2 +- fsfast/bin/mc-sess | 2 +- fsfast/bin/mcdat2mcextreg | 2 +- fsfast/bin/mcparams2extreg | 2 +- fsfast/bin/meanimg | 2 +- fsfast/bin/mergeanalyses-sess | 2 +- fsfast/bin/mergecontrasts-sess | 2 +- fsfast/bin/mergecontrasts-xsess | 2 +- fsfast/bin/mkanalysis-sess | 2 +- fsfast/bin/mkanalysis-sess.old | 2 +- fsfast/bin/mkblockpar | 2 +- fsfast/bin/mkbrainmask | 2 +- fsfast/bin/mkbrainmask-sess | 2 +- fsfast/bin/mkbrainmask.fsl | 2 +- fsfast/bin/mkcmanova-sess | 2 +- fsfast/bin/mkcontrast | 2 +- fsfast/bin/mkcontrast-sess | 2 +- fsfast/bin/mkcontrast2 | 2 +- fsfast/bin/mkdesignmtx | 2 +- fsfast/bin/mkdesmtx-sess | 2 +- fsfast/bin/mkfeat-sess | 2 +- fsfast/bin/mkfieldsign | 2 +- fsfast/bin/mkmosaic | 2 +- fsfast/bin/mkprestimcon | 2 +- fsfast/bin/mktalreg | 2 +- fsfast/bin/mktalxfm-sess | 2 +- fsfast/bin/mktemplate-sess | 2 +- fsfast/bin/mris_glm-sess | 2 +- fsfast/bin/optseq | 2 +- fsfast/bin/optseq.matlab | 2 +- fsfast/bin/paint-fieldsign-sess | 2 +- fsfast/bin/paint-sess | 2 +- fsfast/bin/par2fsl3 | 2 +- fsfast/bin/par2kspar | 2 +- fsfast/bin/par2schedule | 2 +- fsfast/bin/par2stf | 2 +- fsfast/bin/plot-pve | 2 +- fsfast/bin/plot-twf-sess | 2 +- fsfast/bin/ppcheck-sess | 2 +- fsfast/bin/preproc-sess | 2 +- fsfast/bin/prmerge-sess | 2 +- fsfast/bin/qmedit | 2 +- fsfast/bin/qsurfer | 2 +- fsfast/bin/rawavg-sess | 2 +- fsfast/bin/rawfunc2surf-sess | 2 +- fsfast/bin/rawfunc2tal | 2 +- fsfast/bin/rawfunc2tal-sess | 2 +- fsfast/bin/reg2subj | 1 - fsfast/bin/register-sess | 2 +- fsfast/bin/rocview | 2 +- fsfast/bin/roiavg | 2 +- fsfast/bin/roiavgraw | 2 +- fsfast/bin/roisummary-sess | 2 +- fsfast/bin/roixrunsum-sess | 2 +- fsfast/bin/segregister-sess | 2 +- fsfast/bin/selfreqavg | 2 +- fsfast/bin/selfreqavg-sess | 2 +- fsfast/bin/selfreqcomb | 2 +- fsfast/bin/selxavg-jk-sess | 2 +- fsfast/bin/selxavg-sess | 2 +- fsfast/bin/selxavg-sess-perrun | 2 +- fsfast/bin/selxavg2 | 2 +- fsfast/bin/selxavg3-sess | 2 +- fsfast/bin/selxavg3-sess.v5.3 | 2 +- fsfast/bin/seqefficiency | 2 +- fsfast/bin/sfa-sess | 2 +- fsfast/bin/sliceview-sess | 2 +- fsfast/bin/spatev | 2 +- fsfast/bin/spatev-sess | 2 +- fsfast/bin/spatevfilter | 2 +- fsfast/bin/spatevfilter-sess | 2 +- fsfast/bin/spatfil | 2 +- fsfast/bin/spatialsmooth-sess | 2 +- fsfast/bin/sphsmooth-sess | 2 +- fsfast/bin/spikedet | 2 +- fsfast/bin/spikedet-sess | 2 +- fsfast/bin/splitstr | 2 +- fsfast/bin/spmimg2bvolume | 2 +- fsfast/bin/spmregister-sess | 2 +- fsfast/bin/stc-sess | 2 +- fsfast/bin/stc.fsl | 2 +- fsfast/bin/stfreqgrinder | 2 +- fsfast/bin/stripsessargs | 2 +- fsfast/bin/stxgpredict | 2 +- fsfast/bin/stxgrinder | 2 +- fsfast/bin/stxgrinder-sess | 2 +- fsfast/bin/stxgrinder-sess-perrun | 2 +- fsfast/bin/stxgrinder0-sess | 2 +- fsfast/bin/subject-sess | 2 +- fsfast/bin/surf-sess | 2 +- fsfast/bin/surfsmooth-sess | 2 +- fsfast/bin/svdfunctcvm | 2 +- fsfast/bin/svdfunctcvm-sess | 2 +- fsfast/bin/swfflac-sess | 2 +- fsfast/bin/synth-phenc | 2 +- fsfast/bin/synth-sess | 2 +- fsfast/bin/synth-tr-sess | 2 +- fsfast/bin/synthfmri | 2 +- fsfast/bin/synthrawroi | 2 +- fsfast/bin/tar-sess | 2 +- fsfast/bin/tdr-avgechoes | 2 +- fsfast/bin/tdr-fidmat | 2 +- fsfast/bin/tdr-ghostcomp | 2 +- fsfast/bin/tdr-rcolmat | 2 +- fsfast/bin/tdr-recon | 2 +- fsfast/bin/tkmedit-sess | 2 +- fsfast/bin/tkregister-sess | 2 +- fsfast/bin/tksurfer-sess | 2 +- fsfast/bin/txt2bfile | 2 +- fsfast/bin/vertavg-group | 2 +- fsfast/bin/vertavg-sess | 2 +- fsfast/bin/vlrmerge | 2 +- fsfast/bin/yakview | 2 +- fsfast/bin/zpadfmri | 2 +- fsfast/docs/bfile.tex | 2 - fsfast/docs/condfit.tex | 6 +- fsfast/docs/func2roi-sess.tex | 4 +- fsfast/docs/hvol.txt | 3 - fsfast/docs/inorm.tex | 6 +- fsfast/docs/intergroup-sess.tex | 4 +- fsfast/docs/isxavg-fe.tex | 4 +- fsfast/docs/isxavg-re.tex | 6 +- fsfast/docs/mc-afni.tex | 6 +- fsfast/docs/mkcontrast.tex | 6 +- fsfast/docs/mkmosaic.tex | 4 +- fsfast/docs/mkmosaic16.tex | 4 +- fsfast/docs/mtp-repack.tex | 3 +- fsfast/docs/optseq.tex | 6 +- fsfast/docs/overview.tex | 3 +- fsfast/docs/paint.tex | 6 +- fsfast/docs/paradigm.tex | 6 +- fsfast/docs/register.info | 1 - fsfast/docs/selfreq.tex | 1 - fsfast/docs/selxavg.tex | 6 +- fsfast/docs/seqefficiency.tex | 6 +- fsfast/docs/stgrinder2.info | 1 - fsfast/docs/stxgrinder.tex | 3 +- fsfast/docs/univar-analysis.tex | 2 +- fsfast/docs/vol2roi.tex | 4 +- fsfast/docs/yakview.tex | 4 +- fsfast/toolbox/CMakeLists.txt | 2 +- fsfast/toolbox/afni2bvol.m | 1 - fsfast/toolbox/basename.m | 1 - fsfast/toolbox/editmask.m | 3 +- fsfast/toolbox/fast_aareg.m | 1 - fsfast/toolbox/fast_acf2ar.m | 1 - fsfast/toolbox/fast_anova_rm_oneway.m | 1 - fsfast/toolbox/fast_ar12fwhm.m | 1 - fsfast/toolbox/fast_bfileconvert.m | 3 +- fsfast/toolbox/fast_cmpdesign_nsd.m | 3 +- fsfast/toolbox/fast_compute_cvm.m | 3 +- fsfast/toolbox/fast_corsort.m | 1 - fsfast/toolbox/fast_crf.m | 1 - fsfast/toolbox/fast_dlh.m | 1 - fsfast/toolbox/fast_ecvm2wmtx.m | 1 - fsfast/toolbox/fast_evfunc.m | 3 +- fsfast/toolbox/fast_evspatfil.m | 3 +- fsfast/toolbox/fast_fbmacf.m | 1 - fsfast/toolbox/fast_fcreg.m | 1 - fsfast/toolbox/fast_ffx.m | 1 - fsfast/toolbox/fast_ffx_osgm.m | 1 - fsfast/toolbox/fast_flip2wvar.m | 1 - fsfast/toolbox/fast_fslgamma.m | 1 - fsfast/toolbox/fast_func2acor.m | 3 +- fsfast/toolbox/fast_func2roi.m | 3 +- fsfast/toolbox/fast_functwf.m | 3 +- fsfast/toolbox/fast_fwhm2std.m | 1 - fsfast/toolbox/fast_glm_pcc.m | 1 - fsfast/toolbox/fast_group_glm.m | 2 +- fsfast/toolbox/fast_gui_bug.m | 1 - fsfast/toolbox/fast_hann.m | 1 - fsfast/toolbox/fast_hrf_halfcos.m | 1 - fsfast/toolbox/fast_idealXtX.m | 1 - fsfast/toolbox/fast_igxavg.m | 1 - fsfast/toolbox/fast_inorm.m | 3 +- fsfast/toolbox/fast_intergroupavg.m | 1 - fsfast/toolbox/fast_isxavg_fe.m | 1 - fsfast/toolbox/fast_ldretpar.m | 1 - fsfast/toolbox/fast_lmfit.m | 1 - fsfast/toolbox/fast_lpfmtx.m | 1 - fsfast/toolbox/fast_mergesxa.m | 3 +- fsfast/toolbox/fast_mkdesignmtx.m | 3 +- fsfast/toolbox/fast_nirs2oxy.m | 1 - fsfast/toolbox/fast_norm_con.m | 1 - fsfast/toolbox/fast_orthog.m | 1 - fsfast/toolbox/fast_outliermtx.m | 1 - fsfast/toolbox/fast_polyorder.m | 1 - fsfast/toolbox/fast_psc2t2s.m | 1 - fsfast/toolbox/fast_retroicor.m | 1 - fsfast/toolbox/fast_rrf.m | 1 - fsfast/toolbox/fast_rvt.m | 1 - fsfast/toolbox/fast_selxavg.m | 3 +- fsfast/toolbox/fast_selxavg2.m | 3 +- fsfast/toolbox/fast_selxavg3.m | 5 +- fsfast/toolbox/fast_selxavg3b.m | 5 +- fsfast/toolbox/fast_sigmoid.m | 1 - fsfast/toolbox/fast_sincmtx.m | 1 - fsfast/toolbox/fast_spatev.m | 3 +- fsfast/toolbox/fast_spatevfilter.m | 3 +- fsfast/toolbox/fast_spmhrf_sampled.m | 1 - fsfast/toolbox/fast_sratio.m | 1 - fsfast/toolbox/fast_st2fir.m | 1 - fsfast/toolbox/fast_svana.m | 1 - fsfast/toolbox/fast_svdfunctcvm.m | 3 +- fsfast/toolbox/fast_swfflac_nbhd_sess.m | 2 +- fsfast/toolbox/fast_swfflac_sess.m | 2 +- fsfast/toolbox/fast_volview.m | 1 - fsfast/toolbox/fast_xcorr.m | 1 - fsfast/toolbox/flac_ev2irf.m | 1 - fsfast/toolbox/flac_funcstem.m | 1 - fsfast/toolbox/flac_resynth.m | 2 +- fsfast/toolbox/flac_tfilter.m | 1 - fsfast/toolbox/flacview.m | 2 +- fsfast/toolbox/fmri_isxavg_fe.m | 1 - fsfast/toolbox/fmri_ldbvolume.m | 1 - fsfast/toolbox/fmri_mrestriction2.m | 1 - fsfast/toolbox/fmri_norm.m | 1 - fsfast/toolbox/fmri_saxslice.m | 2 +- fsfast/toolbox/fmri_svbvolume.m | 1 - fsfast/toolbox/fmri_sxaslice.m | 2 +- fsfast/toolbox/fmri_sxavol.m | 2 +- fsfast/toolbox/fmri_synthpar3.m | 1 - fsfast/toolbox/fmri_wisxavg_fe.m | 1 - fsfast/toolbox/ldstruct.m | 1 - fsfast/toolbox/mkanalysis_gui.m | 2 +- fsfast/toolbox/mkcontrast2m.m | 1 - fsfast/toolbox/mkcontrast_gui.m | 3 +- fsfast/toolbox/rft_zcluster_cdf.m | 1 - fsfast/toolbox/svstruct.m | 1 - fsfast/toolbox/swapview.m | 2 +- fsfast/toolbox/tdr_epi_phtraj.m | 1 - fsfast/toolbox/tdr_ghostcomp.m | 1 - fsfast/toolbox/yak.m | 1 - fsfast/toolbox/yak2.m | 1 - gems/GUI/vtkFlRenderWindowInteractor.cxx | 5 +- gems/GUI/vtkFlRenderWindowInteractor.h | 1 - hiam_make_template/hiam_make_template.cpp | 4 +- hiam_register/hiam_register.cpp | 4 +- .../histo_compute_joint_density.cpp | 4 +- histo_register_block/histo_register_block.cpp | 4 +- include/cmdargs.h | 2 - include/dti.h | 2 - include/dtk.fs.h | 1 - include/fmriutils.h | 1 - include/fsenv.h | 1 - include/fsglm.h | 2 - include/mrisurf.h | 1 - include/randomfields.h | 2 - include/selxavgio.h | 1 - include/surfcluster.h | 1 - include/volcluster.h | 1 - infant/check_infant_recon_success.csh | 3 - infant/infant_recon_all | 2 +- lta_convert/lta_convert.cpp | 4 +- matlab/HippoSF/myMRIwrite.m | 1 - matlab/MRIsegReg.m | 1 - matlab/MRIvote.m | 1 - .../Survival/mass_univariate/SStat_mass_FDR.m | 3 +- matlab/angles2rotmat.m | 1 - matlab/convert_fieldsign.m | 3 +- matlab/dtifa.m | 1 - matlab/dtimatrix.m | 1 - matlab/fisher_twoclass.m | 1 - matlab/gc_classify.m | 1 - matlab/gc_pvalue.m | 1 - matlab/gc_synth_data.m | 1 - matlab/gc_synth_params.m | 1 - matlab/gc_train.m | 1 - matlab/irepifitvol.m | 2 - matlab/irepitiming.m | 1 - matlab/juelichmat2mat.m | 1 - matlab/lme/mass_univariate/lme_mass_FDR.m | 3 +- matlab/load_csd.m | 1 - matlab/load_nifti_hdr.m | 1 - matlab/mri_cdf2p.m | 1 - matlab/mri_glmfit_pcc.m | 1 - matlab/mri_kurtosis.m | 1 - matlab/mri_qoutlier.m | 1 - matlab/mri_surfrft_jlbr.m | 1 - matlab/mris_circleROI.m | 1 - matlab/mris_colorTableMake.m | 1 - matlab/mris_read_m3z.m | 1 - matlab/peakfinder.m | 1 - matlab/pearsoncc.m | 1 - matlab/read_meas_dat.m | 1 - matlab/read_meas_prot.m | 1 - matlab/read_meas_prot__struct.m | 1 - matlab/rotmat2angles.m | 1 - matlab/samseg/run_samseg.m | 2 - matlab/samseg/samseg | 5 +- matlab/save_nifti.m | 1 - matlab/ssblochgrad.m | 1 - matlab/stringunique.m | 1 - matlab/striphemi.m | 1 - matlab/sys_printf.m | 1 - matlab/syslog_prefix.m | 3 +- matlab/triggerfinder.m | 1 - matlab/vox2ras_dfmeas.m | 4 - matlab/vox2ras_ksolve.m | 4 - matlab/vox2ras_rsolve.m | 4 - matlab/vox2ras_rsolveAA.m | 4 - matlab/x2fsgd.m | 1 - mkxsubjreg/mkxsubjreg.cpp | 6 +- mri_and/mri_and.cpp | 3 +- mri_and/mri_or.cpp | 3 +- mri_annotation2label/mri_annotation2label.cpp | 3 +- mri_aparc2aseg/mri_aparc2aseg.cpp | 4 +- mri_aparc2aseg/mri_surf2volseg.cpp | 3 +- mri_aparc2wmseg/mri_aparc2wmseg.cpp | 7 +- mri_binarize/mri_binarize.cpp | 8 +- mri_cnr/mri_cnr.cpp | 3 +- .../mri_compute_volume_fractions.cpp | 7 +- mri_concat/mri_concat.cpp | 5 +- mri_convert/mri_convert.cpp | 1 - mri_cor2label/mri_cor2label.cpp | 8 +- mri_coreg/mri_coreg.cpp | 7 +- .../mri_correct_segmentations.cpp | 3 +- mri_cvs_register/CMakeLists.txt | 2 +- mri_cvs_register/mri_cvs_check | 2 +- mri_cvs_register/mri_cvs_data_copy | 2 +- mri_cvs_register/mri_cvs_register | 2 +- mri_diff/mri_diff.cpp | 7 +- .../mri_edit_segmentation_with_surfaces.cpp | 4 +- mri_evaluate_morph/mri_evaluate_morph.cpp | 3 +- mri_extract_label/mri_extract_label.cpp | 4 +- mri_fdr/mri_fdr.cpp | 7 +- mri_fieldsign/mri_fieldsign.cpp | 8 +- mri_fill/mri_fill.cpp | 4 +- mri_fit_bias/mri_fit_bias.cpp | 7 +- mri_fwhm/mri_fwhm.cpp | 7 +- mri_gca_ambiguous/mri_gca_ambiguous.cpp | 3 +- mri_gcut/mri_gcut.cpp | 4 +- mri_glmfit/mri_glmfit.cpp | 6 +- mri_gtmpvc/mri_gtmpvc.cpp | 8 +- mri_gtmseg/mri_gtmseg.cpp | 8 +- mri_hausdorff_dist/mri_hausdorff_dist.cpp | 3 +- mri_info/mri_info.cpp | 4 +- mri_label2label/mri_label2label.cpp | 4 +- mri_label2vol/mri_label2vol.cpp | 7 +- mri_mask/mri_mask.cpp | 3 +- mri_mcsim/mri_mcsim.cpp | 9 +- mri_mi/mri_mi.cpp | 3 +- mri_modify/mri_copy_params.cpp | 4 +- mri_nlfilter/mri_nlfilter.cpp | 3 +- mri_paint/mri_paint.cpp | 3 +- mri_parse_sdcmdir/mri_parse_sdcmdir.cpp | 5 +- mri_path2label/mri_path2label.cpp | 4 +- mri_probe_ima/mri_probe_ima.cpp | 5 +- mri_probedicom/mri_probedicom.cpp | 3 +- mri_rbvpvc/mri_rbvpvc.c | 8 +- .../mri_relabel_hypointensities.cpp | 4 +- .../mri_relabel_nonwm_hypos.cpp | 8 +- mri_robust_register/mri_create_tests.cpp | 4 +- mri_robust_register/mri_gradient_info.cpp | 2 - mri_robust_register/mri_robust_register.cpp | 4 +- mri_robust_register/mri_robust_template.cpp | 4 +- mri_sbbr/mri_sbbr.cpp | 8 +- mri_seg_diff/mri_seg_diff.cpp | 7 +- mri_seghead/mri_seghead.cpp | 7 +- mri_segreg/mri_segreg.cpp | 8 +- mri_segstats/mri_segstats.cpp | 8 +- mri_stats2seg/mri_stats2seg.cpp | 7 +- mri_surf2surf/mri_surf2surf.cpp | 7 +- mri_surf2vol/mri_surf2vol.cpp | 7 +- mri_surfcluster/mri_surfcluster.cpp | 12 +- mri_synthesize/mri_synthesize.cpp | 3 +- mri_tessellate/mri_tessellate.cpp | 6 +- mri_transform/mri_transform.cpp | 3 +- mri_twoclass/mri_twoclass.cpp | 3 +- mri_vol2surf/mri_vol2surf.cpp | 6 +- mri_vol2vol/mri_vol2vol.cpp | 5 +- mri_volcluster/mri_volcluster.cpp | 6 +- mri_voldiff/mri_voldiff.cpp | 7 +- mri_volsynth/mri_volsynth.cpp | 5 +- mri_warp_convert/mri_warp_convert.cpp | 4 +- mri_wbc/mri_wbc.cpp | 7 +- mri_xvolavg/mri_xvolavg.cpp | 6 +- mri_z2p/mri_z2p.cpp | 7 +- mris2rgb/mris2rgb.cpp | 3 +- mris2rgb/oglutil.cpp | 1 - mris_BA_segment/mris_BA_segment.cpp | 3 +- .../mris_anatomical_stats.cpp | 8 +- mris_apply_reg/mris_apply_reg.cpp | 8 +- .../mris_average_curvature.cpp | 3 +- mris_ca_label/mris_ca_label.cpp | 8 +- mris_ca_train/mris_ca_train.cpp | 4 +- mris_calc/mris_calc.cpp | 4 +- mris_compute_acorr/mris_compute_acorr.cpp | 3 +- mris_compute_lgi/CMakeLists.txt | 2 +- mris_compute_lgi/mris_compute_lgi | 2 +- .../mris_compute_parc_overlap.cpp | 4 +- .../mris_compute_volume_fractions.cpp | 7 +- mris_congeal/mris_congeal.cpp | 8 +- mris_convert/mris_convert.cpp | 4 +- mris_curvature/mris_curvature.cpp | 4 +- mris_curvature_stats/mris_curvature_stats.cpp | 4 +- mris_decimate/main.cpp | 6 +- mris_decimate/mris_decimate.cpp | 1 - mris_diff/mris_diff.cpp | 7 +- mris_distance_map/mris_distance_map.cpp | 4 +- .../mris_distance_to_label.cpp | 7 +- .../mris_distance_transform.cpp | 4 +- .../mris_divide_parcellation.cpp | 4 +- mris_entropy/mris_entropy.cpp | 3 +- mris_errors/mris_errors.cpp | 4 +- mris_euler_number/mris_euler_number.cpp | 4 +- mris_fill/mris_fill.cpp | 3 +- .../mris_find_flat_regions.cpp | 3 +- mris_fix_topology/mris_fix_topology.cpp | 8 +- .../mris_remove_intersection.cpp | 4 +- mris_flatten/mris_flatten.cpp | 4 +- mris_fwhm/mris_fwhm.cpp | 7 +- mris_hausdorff_dist/mris_hausdorff_dist.cpp | 4 +- mris_inflate/mris_inflate.cpp | 4 +- mris_info/mris_info.cpp | 6 +- mris_jacobian/mris_jacobian.cpp | 4 +- mris_label2annot/mris_label2annot.cpp | 8 +- mris_label_calc/mris_label_calc.cpp | 3 +- mris_label_mode/mris_label_mode.cpp | 3 +- .../mris_left_right_register.cpp | 8 +- .../mris_make_average_surface.cpp | 4 +- .../mris_make_face_parcellation.cpp | 4 +- mris_make_surfaces/mris_autodet_gwstats.cpp | 7 +- mris_make_surfaces/mris_exvivo_surfaces.cpp | 4 +- mris_make_surfaces/mris_make_surfaces.cpp | 8 +- mris_make_surfaces/mris_mef_surfaces.cpp | 4 +- mris_make_surfaces/mris_place_surface.cpp | 9 +- mris_make_surfaces/mris_refine_surfaces.cpp | 4 +- mris_make_template/mris_make_template.cpp | 4 +- .../mris_merge_parcellations.cpp | 4 +- mris_mesh_subdivide/mris_mesh_subdivide.cxx | 6 +- mris_morph_stats/mris_morph_stats.cpp | 3 +- mris_ms_refine/mris_ms_refine.cpp | 3 +- .../mris_multiscale_stats.cpp | 3 +- mris_niters2fwhm/mris_niters2fwhm.cpp | 7 +- mris_pmake/mris_pmake.cpp | 3 +- mris_register/mris_register.cpp | 8 +- .../mris_register_label_map.cpp | 8 +- .../mris_register_to_label.cpp | 5 +- .../mris_register_to_volume.cpp | 5 +- mris_remove_variance/mris_remove_variance.cpp | 3 +- mris_rescale/mris_rescale.cpp | 3 +- mris_reverse/mris_reverse.cpp | 3 +- mris_rotate/mris_rotate.cpp | 3 +- mris_sample_label/mris_sample_label.cpp | 5 +- mris_sample_parc/mris_sample_parc.cpp | 4 +- mris_seg2annot/mris_seg2annot.cpp | 8 +- mris_segment_vals/mris_segment_vals.cpp | 3 +- mris_shrinkwrap/mris_AA_shrinkwrap.cpp | 3 +- mris_shrinkwrap/mris_shrinkwrap.cpp | 4 +- mris_smooth/mris_smooth.cpp | 4 +- .../mris_smooth_intracortical.cpp | 4 +- mris_spharm/mris_spharm.c | 3 - mris_sphere/mris_remove_negative_vertices.cpp | 4 +- mris_sphere/mris_sphere.cpp | 8 +- .../mris_spherical_average.cpp | 3 +- .../mris_spherical_wavelets.c | 3 - mris_surface_stats/mris_surface_stats.cpp | 4 +- mris_talairach/mris_talairach.cpp | 3 +- mris_thickness/mris_cluster_profiles.cpp | 3 +- mris_thickness/mris_gradient.cpp | 3 +- mris_thickness/mris_intensity_profile.cpp | 3 +- mris_thickness/mris_thickness.cpp | 3 +- .../mris_thickness_comparison.cpp | 3 +- mris_thickness_diff/mris_thickness_diff.cpp | 6 +- mris_topo_fixer/mris_topo_fixer.cpp | 4 +- mris_transform/mris_transform.cpp | 3 +- .../mris_translate_annotation.cpp | 3 +- mris_warp/mris_warp.cpp | 7 +- mris_watershed/mris_watershed.cpp | 3 +- mrisp_paint/mrisp_paint.cpp | 3 +- mrisp_write/mrisp_write.cpp | 3 +- optseq2/optseq2.cpp | 7 +- packages/netcdf/attr.c | 1 - packages/netcdf/dim.c | 1 - packages/netcdf/error.c | 1 - packages/netcdf/fbits.h | 1 - packages/netcdf/libvers.c | 1 - packages/netcdf/nc.c | 1 - packages/netcdf/nc.h | 2 +- packages/netcdf/ncconfig.h | 2 +- packages/netcdf/ncio.h | 1 - packages/netcdf/ncx.c | 1 - packages/netcdf/ncx.h | 1 - packages/netcdf/netcdf.h | 1 - packages/netcdf/onstack.h | 1 - packages/netcdf/posixio.c | 1 - packages/netcdf/putget.c | 1 - packages/netcdf/rnd.h | 2 +- packages/netcdf/string.c | 1 - packages/netcdf/v1hpg.c | 1 - packages/netcdf/v2i.c | 1 - packages/netcdf/var.c | 1 - packages/tiff/t4.h | 2 - packages/tiff/tif_fax3.h | 2 - samseg/CMakeLists.txt | 2 +- samseg/samseg | 2 +- samseg/samseg-long | 2 +- scripts/CMakeLists.txt | 8 +- scripts/IsLTA | 2 +- scripts/UpdateNeeded | 1 - scripts/annot2std | 2 +- scripts/aparc2feat | 2 +- scripts/aparcstats2table | 3 +- scripts/apas2aseg | 2 +- scripts/aseg2feat | 2 +- scripts/asegstats2table | 3 +- scripts/avg-surf-label | 2 +- scripts/bblabel | 2 +- scripts/bbmask | 2 +- scripts/bbregister | 2 +- scripts/beta2sxa | 2 +- scripts/biasfield | 2 +- scripts/birn-glm-demo | 2 +- scripts/bmedits2surf | 2 +- scripts/bugr | 2 +- scripts/cblumwmgyri | 2 +- scripts/compute_interrater_variability.csh | 2 +- scripts/compute_label_volumes.csh | 2 +- scripts/conf2hires | 2 +- scripts/cp-dicom | 2 +- scripts/dcmdir-info-mgh | 2 +- scripts/dcmsplit | 2 +- scripts/dcmunpack | 2 +- scripts/defect-seg | 2 +- scripts/defect2seg | 2 +- scripts/dicom-rename | 2 +- scripts/dsh | 2 +- scripts/dt_recon | 2 +- scripts/epidewarp.fsl | 2 +- scripts/feat2segstats | 2 +- scripts/feat2surf | 2 +- scripts/flirt.newdefault.20080811.sch | 1 - scripts/fname2ext | 2 +- scripts/fname2stem | 2 +- scripts/fs_lib_check | 2 +- scripts/fs_time | 2 +- scripts/fscalc | 2 +- scripts/fscalc.fsl | 1 - scripts/fsdcmdecompress | 2 +- scripts/fsfget | 1 - scripts/fsfirst.fsl | 2 +- scripts/fsl.5.0.2.xyztrans.sch | 1 - scripts/fsl_rigid_register | 2 +- scripts/fslregister | 2 +- scripts/fspalm | 2 +- scripts/fsr-checkxopts | 2 +- scripts/fsr-coreg | 2 +- scripts/fsr-getxopts | 2 +- scripts/fsr-import | 2 +- scripts/fsralpha.tmp | 2 +- scripts/fvcompare | 2 +- scripts/gca-apply | 2 +- scripts/gcainit | 2 +- scripts/gcaprepone | 2 +- scripts/gcatrain | 2 +- scripts/gcatrainskull | 2 +- scripts/gnuplot.freesurfer | 1 - scripts/grad_unwarp | 2 +- scripts/groupstats | 2 +- scripts/groupstatsdiff | 2 +- scripts/gtmseg | 2 +- scripts/intcapseg | 2 +- scripts/is-surface | 2 +- scripts/isanalyze | 2 +- scripts/isnifti | 2 +- scripts/isolate_labels.csh | 2 +- scripts/isolate_labels_keeporigval.csh | 2 +- scripts/jkgcatrain | 2 +- scripts/long_create_base_sigma | 2 +- scripts/long_create_orig | 2 +- scripts/long_mris_slopes | 2 +- scripts/long_qdec_table | 2 +- scripts/long_stats_combine | 2 +- scripts/long_stats_slopes | 2 +- scripts/long_stats_tps | 2 +- scripts/long_submit_jobs | 4 +- scripts/long_submit_postproc | 2 +- scripts/longmc | 2 +- scripts/lpcregister | 2 +- scripts/make-segvol-table | 2 +- scripts/make_average_subcort | 2 +- scripts/make_average_subject | 2 +- scripts/make_average_surface | 2 +- scripts/make_average_volume | 2 +- scripts/make_cortex_label | 2 +- scripts/make_folding_atlas | 2 +- scripts/make_hemi_mask | 2 +- scripts/make_symmetric | 2 +- scripts/make_upright | 2 +- scripts/map_to_base | 2 +- scripts/mcparams2reg | 3 +- scripts/meanval | 2 +- scripts/merge-labels | 2 +- scripts/merge_stats_tables | 2 +- scripts/mergeseg | 2 +- scripts/mkdefectlut | 2 +- scripts/mkheadsurf | 2 +- scripts/mksurfatlas | 2 +- scripts/mni152reg | 2 +- scripts/morph_subject | 2 +- scripts/morph_subject-lh | 2 +- scripts/morph_subject-rh | 2 +- scripts/mri-func2sph | 2 +- scripts/mri-funcvits | 2 +- scripts/mri-sph2surf | 2 +- scripts/mri-structvits | 2 +- scripts/mri_add_new_tp | 2 +- scripts/mri_align_long.csh | 2 +- scripts/mri_glmfit-sim | 2 +- scripts/mri_mergelabels | 2 +- scripts/mri_motion_correct.fsl | 2 +- scripts/mri_motion_correct2 | 2 +- scripts/mri_nu_correct.mni | 2 +- scripts/mri_reorient_LR.csh | 2 +- scripts/mris_preproc | 2 +- scripts/mris_roiCircle | 1 - scripts/mris_volsmooth | 2 +- scripts/nmr-std-env-dev.bash | 138 ------- scripts/nmr-std-env.bash | 138 ------- scripts/parc_atlas_jackknife_test | 2 +- scripts/pctsurfcon | 2 +- scripts/polyorder | 2 +- scripts/print_unique_labels.csh | 2 +- scripts/rbbr | 2 +- scripts/rca-base-init | 2 +- scripts/rca-long-tp-init | 2 +- scripts/rcbf-prep | 2 +- scripts/rebuild_gca_atlas.csh | 2 +- scripts/recon-all.v6.hires | 2 +- scripts/reg-feat2anat | 2 +- scripts/reg-mni305.2mm | 2 +- scripts/reg2subject | 2 +- scripts/rtview | 2 +- scripts/run-qdec-glm | 3 +- scripts/samseg2recon | 2 +- scripts/seg2filled | 2 +- scripts/segpons | 2 +- scripts/setlabelstat | 2 +- scripts/sfa2fieldsign | 2 +- scripts/spherically_project.py | 2 +- scripts/spmmat2register | 2 +- scripts/spmregister | 2 +- scripts/spmseg | 2 +- scripts/sratio | 3 +- scripts/surfreg | 2 +- scripts/talairach | 2 +- scripts/talairach2 | 2 +- scripts/talsegprob | 2 +- scripts/tess1mm | 2 +- scripts/test_fs_tutorial.csh | 379 ------------------ scripts/test_recon-all.csh | 2 +- scripts/tkmeditfv | 2 +- scripts/tkregisterfv | 2 +- scripts/tksurferfv | 2 +- scripts/trac-all | 2 +- scripts/trac-paths | 2 +- scripts/trac-preproc | 2 +- scripts/tractstats2table | 3 +- scripts/train-gcs-atlas | 2 +- scripts/unpackimadir | 2 +- scripts/unpackimadir2 | 7 - scripts/unpackmincdir | 2 +- scripts/unpacksdcmdir | 7 - scripts/vertexvol | 3 +- scripts/vol2segavg | 2 +- scripts/vol2subfield | 2 +- scripts/vol2symsurf | 2 +- scripts/vsm-smooth | 2 +- scripts/wfilemask | 2 +- scripts/wm-anat-snr | 2 +- scripts/wmedits2surf | 2 +- scripts/wmsaseg | 2 +- scripts/xcerebralseg | 2 +- scripts/xcorr | 2 +- scripts/xhemi-tal | 2 +- scripts/xhemireg | 2 +- scripts/xsanatreg | 2 +- stat_normalize/stat_normalize.cpp | 4 +- talairach_afd/talairach_afd.cpp | 4 +- talairach_avi/4dfptoanalyze.c | 5 +- talairach_avi/CMakeLists.txt | 3 +- talairach_avi/Getifh.c | 3 +- talairach_avi/Inithdr.c | 3 +- talairach_avi/analyzeto4dfp.c | 5 +- talairach_avi/compute_vox2vox.c | 5 +- talairach_avi/conc.c | 3 +- talairach_avi/endianio.c | 3 +- talairach_avi/fimgreg.f | 2 +- talairach_avi/flip_4dfp.c | 5 +- talairach_avi/ft4ixyz.f | 2 +- talairach_avi/gauss_4dfp.c | 7 +- talairach_avi/ifh2hdr.c | 3 +- talairach_avi/imgreg_4dfp.c | 5 +- talairach_avi/imgvalm.f | 2 - talairach_avi/imgvalx.f | 2 - talairach_avi/mpr2mni305 | 2 +- talairach_avi/polfit.f | 2 - talairach_avi/rec.c | 3 +- talairach_avi/spline3dvgh.f | 2 +- talairach_avi/t4_sub.f | 2 +- talairach_avi/t4img_4dfp | 2 +- talairach_avi/t4imgs_4dfp.c | 5 +- talairach_avi/talairach_avi | 2 +- talairach_avi/to_711-2B.f | 2 - talairach_avi/zero_lt_4dfp.c | 5 +- tkregister2/tkregister2.cpp | 8 +- trc/dmri_forrest.cxx | 5 +- trc/dmri_group.cxx | 5 +- trc/dmri_mergepaths.cxx | 5 +- trc/dmri_motion.cxx | 5 +- trc/dmri_paths.cxx | 5 +- trc/dmri_pathstats.cxx | 7 +- trc/dmri_spline.cxx | 5 +- trc/dmri_train.cxx | 5 +- trc/dmri_trk2trk.cxx | 5 +- trc/dmri_vox2vox.cxx | 5 +- utils/cmdargs.cpp | 4 - utils/dti.cpp | 4 - utils/dtk.fs.cpp | 10 - utils/fmriutils.cpp | 6 - utils/fsenv.cpp | 3 - utils/fsglm.cpp | 5 - utils/mosaic.cpp | 1 - utils/mrisurf.cpp | 5 - utils/randomfields.cpp | 4 - utils/selxavgio.cpp | 1 - utils/surfcluster.cpp | 5 - utils/test/MRISwaveletsTransform.cpp | 2 - utils/test/mri_transform_to_COR.c | 4 +- utils/test/mris_compute_thickness.cpp | 5 +- utils/test/mris_diff.cpp | 5 +- utils/test/mris_diff_on_surface.c | 5 +- utils/test/mris_indirect_morph.cpp | 6 +- utils/volcluster.cpp | 9 +- 908 files changed, 902 insertions(+), 2473 deletions(-) delete mode 100644 distribution/nmr-dev-env delete mode 100644 distribution/nmr-std-env delete mode 100644 scripts/nmr-std-env-dev.bash delete mode 100644 scripts/nmr-std-env.bash delete mode 100755 scripts/test_fs_tutorial.csh diff --git a/attic/dmri_tensoreig/dmri_tensoreig.cpp b/attic/dmri_tensoreig/dmri_tensoreig.cpp index 13c845bb0a6..ac51ed27c6d 100644 --- a/attic/dmri_tensoreig/dmri_tensoreig.cpp +++ b/attic/dmri_tensoreig/dmri_tensoreig.cpp @@ -64,7 +64,6 @@ static void MRIavg4(MRI *invol, int n4, int n5); static void MRIavg5(MRI *invol, int n4, int n5); static float avgsnr(MRI *invol, MRI *mask, int frame0, int nframe); -static char vcid[] = "$Id$"; const char *Progname ; FILE *fpin; @@ -645,7 +644,7 @@ static void print_help(void) { /* --------------------------------------------- */ static void print_version(void) { - printf("%s\n", vcid) ; + std::cout << getVersion() << std::endl; exit(1) ; } @@ -682,7 +681,7 @@ static void usage_exit(void) { /* --------------------------------------------- */ static void dump_options(FILE *fp) { fprintf(fp, "\n"); - fprintf(fp, "%s\n", vcid); + fprintf(fp, "%s\n", getVersion().c_str()); fprintf(fp, "Cwd %s\n", cwd); fprintf(fp, "Cmdline %s\n", cmdline); fprintf(fp, "Sysname %s\n", uts.sysname); diff --git a/attic/histo_fix_topology/histo_fix_topology.cpp b/attic/histo_fix_topology/histo_fix_topology.cpp index 46c12efb243..9ae667d90a1 100644 --- a/attic/histo_fix_topology/histo_fix_topology.cpp +++ b/attic/histo_fix_topology/histo_fix_topology.cpp @@ -31,8 +31,6 @@ #define RGB_SIZE 500 -static char vcid[] = - "$Id: histo_fix_topology.c,v 1.3 2011/03/02 00:04:09 nicks Exp $"; static int get_option(int argc, char *argv[]) ; static void usage_exit(void) ; @@ -217,7 +215,7 @@ print_help(void) { static void print_version(void) { - fprintf(stderr, "%s\n", vcid) ; + fprintf(stderr, "%s\n", getVersion().c_str()) ; exit(1) ; } diff --git a/attic/histo_segment/histo_segment.cpp b/attic/histo_segment/histo_segment.cpp index 41ca0988ac7..54c4593601e 100644 --- a/attic/histo_segment/histo_segment.cpp +++ b/attic/histo_segment/histo_segment.cpp @@ -35,8 +35,6 @@ #define RGB_SIZE 500 -static char vcid[] = - "$Id: histo_segment.c,v 1.2 2011/03/02 00:04:09 nicks Exp $"; #if 0 static int write_snapshot(MRI *mri, MRI *mri_src, MRI *mri_dst, MATRIX *m, char *base, int n, int level, DENSITY *density, MRI *mri_seg) ; @@ -165,7 +163,7 @@ print_help(void) { static void print_version(void) { - fprintf(stderr, "%s\n", vcid) ; + fprintf(stderr, "%s\n", getVersion().c_str()) ; exit(1) ; } diff --git a/attic/mri_aseg_edit_reclassify/mri_aseg_edit_reclassify.cpp b/attic/mri_aseg_edit_reclassify/mri_aseg_edit_reclassify.cpp index 0d651e0cd4b..7890d204436 100644 --- a/attic/mri_aseg_edit_reclassify/mri_aseg_edit_reclassify.cpp +++ b/attic/mri_aseg_edit_reclassify/mri_aseg_edit_reclassify.cpp @@ -43,7 +43,6 @@ #include "cma.h" #include "class_array.h" -static char vcid[] = "$Id: mri_aseg_edit_reclassify.c,v 1.5 2011/03/02 00:04:13 nicks Exp $"; /*-------------------------------- CONSTANTS -----------------------------*/ @@ -249,7 +248,7 @@ print_help(void) { static void print_version(void) { - fprintf(stderr, "%s\n", vcid) ; + fprintf(stderr, "%s\n", getVersion().c_str()) ; exit(1) ; } diff --git a/attic/mri_aseg_edit_train/mri_aseg_edit_train.cpp b/attic/mri_aseg_edit_train/mri_aseg_edit_train.cpp index 95b99ada092..4a19109cfb7 100644 --- a/attic/mri_aseg_edit_train/mri_aseg_edit_train.cpp +++ b/attic/mri_aseg_edit_train/mri_aseg_edit_train.cpp @@ -44,7 +44,6 @@ #include "cma.h" #include "class_array.h" -static char vcid[] = "$Id: mri_aseg_edit_train.c,v 1.3 2011/03/02 00:04:13 nicks Exp $"; /*-------------------------------- CONSTANTS -----------------------------*/ @@ -504,7 +503,7 @@ print_help(void) { static void print_version(void) { - fprintf(stderr, "%s\n", vcid) ; + fprintf(stderr, "%s\n", getVersion().c_str()) ; exit(1) ; } diff --git a/attic/mri_bc_sc_bias_correct/mri_bc_sc_bias_correct.cpp b/attic/mri_bc_sc_bias_correct/mri_bc_sc_bias_correct.cpp index 2c610feb1f1..97492890fd8 100644 --- a/attic/mri_bc_sc_bias_correct/mri_bc_sc_bias_correct.cpp +++ b/attic/mri_bc_sc_bias_correct/mri_bc_sc_bias_correct.cpp @@ -27,8 +27,6 @@ #include "proto.h" #include "macros.h" -static char vcid[] = - "$Id: mri_bc_sc_bias_correct.c,v 1.5 2011/03/02 00:04:13 nicks Exp $"; int main(int argc, char *argv[]) ; static int get_option(int argc, char *argv[]) ; @@ -209,6 +207,6 @@ print_help(void) { static void print_version(void) { - fprintf(stderr, "%s\n", vcid) ; + fprintf(stderr, "%s\n", getVersion().c_str()) ; exit(1) ; } diff --git a/attic/mri_cc_ma_fill/mri_cc_ma_fill.c b/attic/mri_cc_ma_fill/mri_cc_ma_fill.c index 5ba347a1a24..e52283c5855 100644 --- a/attic/mri_cc_ma_fill/mri_cc_ma_fill.c +++ b/attic/mri_cc_ma_fill/mri_cc_ma_fill.c @@ -40,8 +40,6 @@ #include "version.h" #include "error.h" -//static char vcid[] = "$Id: mri_cc_ma_fill.c,v 1.3 2011/03/02 00:04:14 nicks Exp $"; - typedef struct medial_axis_type_ { float x,y; /* curr position */ diff --git a/attic/mri_cc_medial_axis/mri_cc_medial_axis.c b/attic/mri_cc_medial_axis/mri_cc_medial_axis.c index 93e70e95758..32cfdf5a9a3 100644 --- a/attic/mri_cc_medial_axis/mri_cc_medial_axis.c +++ b/attic/mri_cc_medial_axis/mri_cc_medial_axis.c @@ -47,8 +47,6 @@ #include "matrix.h" #include "mriTransform.h" -//static char vcid[] = "$Id: mri_cc_medial_axis.c,v 1.4 2011/03/02 00:04:14 nicks Exp $"; - int main(int argc, char *argv[]) ; static int get_option(int argc, char *argv[]) ; diff --git a/attic/mri_convert_mdh/mri_convert_mdh.cpp b/attic/mri_convert_mdh/mri_convert_mdh.cpp index 7c6d3d3a733..c2d7adf59a9 100644 --- a/attic/mri_convert_mdh/mri_convert_mdh.cpp +++ b/attic/mri_convert_mdh/mri_convert_mdh.cpp @@ -28,7 +28,6 @@ #include "version.h" #ifndef lint -static char vcid[] = "$Id: mri_convert_mdh.c,v 1.27 2011/03/02 00:04:14 nicks Exp $"; #endif /* lint */ #define MDH_SIZE 128 //Number of bytes in the miniheader @@ -700,7 +699,7 @@ static void print_usage(void) { static void print_help(void) { print_usage() ; printf("\n"); - printf("%s\n", vcid) ; + std::cout << getVersion() << std::endl; printf("\n"); printf( @@ -776,7 +775,7 @@ static void print_help(void) { } /* --------------------------------------------- */ static void print_version(void) { - printf("%s\n", vcid) ; + std::cout << getVersion() << std::endl; exit(1) ; } /* --------------------------------------------- */ diff --git a/attic/mri_extract_conditions/mri_extract_conditions.cpp b/attic/mri_extract_conditions/mri_extract_conditions.cpp index 01d17fe920e..814bce7ceb6 100644 --- a/attic/mri_extract_conditions/mri_extract_conditions.cpp +++ b/attic/mri_extract_conditions/mri_extract_conditions.cpp @@ -27,7 +27,6 @@ #include "proto.h" #include "version.h" -static char vcid[] = "$Id: mri_extract_conditions.c,v 1.5 2011/03/02 00:04:15 nicks Exp $"; int main(int argc, char *argv[]) ; @@ -176,7 +175,7 @@ print_help(void) { static void print_version(void) { - fprintf(stderr, "%s\n", vcid) ; + fprintf(stderr, "%s\n", getVersion().c_str()) ; exit(1) ; } diff --git a/attic/mri_extract_ma_intensity/mri_extract_ma_intensity.c b/attic/mri_extract_ma_intensity/mri_extract_ma_intensity.c index 7f3029a1ead..4ecd12f9eb8 100644 --- a/attic/mri_extract_ma_intensity/mri_extract_ma_intensity.c +++ b/attic/mri_extract_ma_intensity/mri_extract_ma_intensity.c @@ -47,7 +47,6 @@ #include "matrix.h" #include "mriTransform.h" -//static char vcid[] = "$Id: mri_extract_ma_intensity.c,v 1.4 2011/03/02 00:04:15 nicks Exp $"; int main(int argc, char *argv[]) ; static int get_option(int argc, char *argv[]) ; diff --git a/attic/mri_fcili/mri_fcili.cpp b/attic/mri_fcili/mri_fcili.cpp index f5e88c8dd87..5b973e5114c 100644 --- a/attic/mri_fcili/mri_fcili.cpp +++ b/attic/mri_fcili/mri_fcili.cpp @@ -27,7 +27,6 @@ */ -// $Id: mri_fcili.c,v 1.3 2013/11/22 19:41:44 greve Exp $ /* BEGINHELP @@ -69,7 +68,6 @@ static void dump_options(FILE *fp); int main(int argc, char *argv[]) ; MRI *MRIfcIntrinsicLI(MRI *lh, MRI *rh, double DenThresh); -static char vcid[] = "$Id: mri_fcili.c,v 1.3 2013/11/22 19:41:44 greve Exp $"; const char *Progname = NULL; char *cmdline, cwd[2000]; int debug=0; @@ -362,7 +360,7 @@ static void print_usage(void) { printf(" --help print out information on how to use this program\n"); printf(" --version print out version and exit\n"); printf("\n"); - printf("%s\n", vcid) ; + std::cout << getVersion() << std::endl; printf("\n"); } /*-----------------------------------------------------------*/ @@ -378,13 +376,13 @@ static void print_help(void) { } /*-----------------------------------------------------------*/ static void print_version(void) { - printf("%s\n", vcid) ; + std::cout << getVersion() << std::endl; exit(1) ; } /*-----------------------------------------------------------*/ static void dump_options(FILE *fp) { fprintf(fp,"\n"); - fprintf(fp,"%s\n",vcid); + fprintf(fp,"%s\n", getVersion().c_str()); fprintf(fp,"cwd %s\n",cwd); fprintf(fp,"cmdline %s\n",cmdline); fprintf(fp,"sysname %s\n",uts.sysname); diff --git a/attic/mri_gdfglm/mri_gdfglm.cpp b/attic/mri_gdfglm/mri_gdfglm.cpp index a7db2de2935..b480d51be46 100644 --- a/attic/mri_gdfglm/mri_gdfglm.cpp +++ b/attic/mri_gdfglm/mri_gdfglm.cpp @@ -86,7 +86,6 @@ static int WriteClassDat(char *base, char *Class, FSGD *fsgd, //static int stringmatch(char *str1, char *str2); int main(int argc, char *argv[]) ; -static char vcid[] = "$Id: mri_gdfglm.c,v 1.9 2011/05/05 15:28:03 greve Exp $"; const char *Progname = "mri_gdfglm"; typedef struct tagCOVARPRUNE { @@ -164,7 +163,7 @@ int main(int argc, char **argv) { printf("%s ",Progname); for (n=0; n < argc; n++) printf("%s ",argv[n]); printf("\n\n"); - printf("%s\n\n",vcid); + printf("%s\n\n",getVersion().c_str()); parse_commandline(argc, argv); check_options(); @@ -600,7 +599,7 @@ static void print_help(void) { } /* --------------------------------------------- */ static void print_version(void) { - printf("%s\n", vcid) ; + std::cout << getVersion() << std::endl; exit(1) ; } /* --------------------------------------------- */ diff --git a/attic/mri_ibmc/mri_ibmc.cpp b/attic/mri_ibmc/mri_ibmc.cpp index d37d6fbce43..699ec995f34 100644 --- a/attic/mri_ibmc/mri_ibmc.cpp +++ b/attic/mri_ibmc/mri_ibmc.cpp @@ -69,7 +69,6 @@ static void print_version(void) ; static void dump_options(FILE *fp); int main(int argc, char *argv[]) ; -static char vcid[] = "$Id: mri_ibmc.c,v 1.13 2011/08/16 22:24:02 greve Exp $"; const char *Progname = NULL; char *cmdline, cwd[2000]; int debug=0; @@ -969,7 +968,7 @@ static void print_usage(void) { printf(" --help print out information on how to use this program\n"); printf(" --version print out version and exit\n"); printf("\n"); - printf("%s\n", vcid) ; + std::cout << getVersion() << std::endl; printf("\n"); } /*------------------------------------------------------------------*/ @@ -980,7 +979,7 @@ static void print_help(void) { } /*------------------------------------------------------------------*/ static void print_version(void) { - printf("%s\n", vcid) ; + std::cout << getVersion() << std::endl; exit(1) ; } /*------------------------------------------------------------------*/ @@ -1000,7 +999,7 @@ static void check_options(void) { /*------------------------------------------------------------------*/ static void dump_options(FILE *fp) { fprintf(fp,"\n"); - fprintf(fp,"%s\n",vcid); + fprintf(fp,"%s\n", getVersion().c_str()); fprintf(fp,"cwd %s\n",cwd); fprintf(fp,"cmdline %s\n",cmdline); fprintf(fp,"sysname %s\n",uts.sysname); diff --git a/attic/mri_interpolate/mri_interpolate.cpp b/attic/mri_interpolate/mri_interpolate.cpp index 1daba541f20..1f24c77333b 100644 --- a/attic/mri_interpolate/mri_interpolate.cpp +++ b/attic/mri_interpolate/mri_interpolate.cpp @@ -55,11 +55,7 @@ main(int argc, char *argv[]) { int ac, nargs=0, x, y, z ; double val; - make_cmd_version_string - (argc, argv, - "$Id: mri_interpolate.c,v 1.5 2011/10/06 01:18:12 fischl Exp $", - "$Name: $",cmdline); - make_cmd_version_string + make_cmd_version_string(argc, argv, "mri_interpolate.cpp", "$Name: $",cmdline); std::string cmdline = getAllInfo(argc, argv, "mri_interpolate"); setRandomSeed(-1L) ; diff --git a/attic/mri_make_density_map/mri_make_density_map.cpp b/attic/mri_make_density_map/mri_make_density_map.cpp index 2ad8b65da88..ec931824052 100644 --- a/attic/mri_make_density_map/mri_make_density_map.cpp +++ b/attic/mri_make_density_map/mri_make_density_map.cpp @@ -40,7 +40,6 @@ #define UNIT_VOLUME 128 -static char vcid[] = "$Id: mri_make_density_map.c,v 1.8 2011/03/02 00:04:22 nicks Exp $"; int main(int argc, char *argv[]) ; @@ -362,7 +361,7 @@ print_help(void) { static void print_version(void) { - fprintf(stderr, "%s\n", vcid) ; + fprintf(stderr, "%s\n", getVersion().c_str()) ; exit(1) ; } diff --git a/attic/mri_map_atrophy/mri_map_atrophy.c b/attic/mri_map_atrophy/mri_map_atrophy.c index d30299586bf..47107048df2 100644 --- a/attic/mri_map_atrophy/mri_map_atrophy.c +++ b/attic/mri_map_atrophy/mri_map_atrophy.c @@ -30,7 +30,6 @@ #include "gcamorph.h" -static char vcid[] = "$Id: mri_map_atrophy.c,v 1.4 2011/03/02 00:04:22 nicks Exp $"; static MRI *make_atrophy_map(MRI *mri_time1, MRI *mri_time2, MRI *mri_dst, TRANSFORM *transform1, TRANSFORM *transform2, @@ -193,7 +192,7 @@ print_help(void) { static void print_version(void) { - fprintf(stderr, "%s\n", vcid) ; + fprintf(stderr, "%s\n", getVersion().c_str()) ; exit(1) ; } diff --git a/attic/mri_ms_EM/PoissonSolver.h b/attic/mri_ms_EM/PoissonSolver.h index 1c561d6c99f..0dc01308ec8 100644 --- a/attic/mri_ms_EM/PoissonSolver.h +++ b/attic/mri_ms_EM/PoissonSolver.h @@ -13,10 +13,6 @@ */ -/* CVS Version Info - $Id: PoissonSolver.h,v 1.3 2011/03/02 00:04:23 nicks Exp $ -*/ - #ifndef POISSON_SOLVER_H #define POISSON_SOLVER_H diff --git a/attic/mri_ms_EM_with_atlas/PoissonSolver.h b/attic/mri_ms_EM_with_atlas/PoissonSolver.h index 1c561d6c99f..0dc01308ec8 100644 --- a/attic/mri_ms_EM_with_atlas/PoissonSolver.h +++ b/attic/mri_ms_EM_with_atlas/PoissonSolver.h @@ -13,10 +13,6 @@ */ -/* CVS Version Info - $Id: PoissonSolver.h,v 1.3 2011/03/02 00:04:23 nicks Exp $ -*/ - #ifndef POISSON_SOLVER_H #define POISSON_SOLVER_H diff --git a/attic/mri_segment_tumor/mri_segment_tumor.cpp b/attic/mri_segment_tumor/mri_segment_tumor.cpp index 1fee30e16c3..4ca8b7fd28a 100644 --- a/attic/mri_segment_tumor/mri_segment_tumor.cpp +++ b/attic/mri_segment_tumor/mri_segment_tumor.cpp @@ -27,7 +27,6 @@ */ -// $Id: mri_segment_tumor.c,v 1.3 2011/10/31 18:30:41 fischl Exp $ /* BEGINHELP @@ -61,7 +60,6 @@ int main(int argc, char *argv[]) ; -static char vcid[] = "$Id: mri_segment_tumor.c,v 1.3 2011/10/31 18:30:41 fischl Exp $"; const char *Progname = NULL; //char *cmdline, cwd[2000]; //struct utsname uts; diff --git a/attic/mri_threshold/mri_threshold.cpp b/attic/mri_threshold/mri_threshold.cpp index 35a7bbcba12..4a498f6c40a 100644 --- a/attic/mri_threshold/mri_threshold.cpp +++ b/attic/mri_threshold/mri_threshold.cpp @@ -29,8 +29,6 @@ #include "proto.h" #include "macros.h" -static char vcid[] = - "$Id: mri_threshold.c,v 1.10 2015/09/02 18:33:01 lzollei Exp $"; int main(int argc, char *argv[]) ; static int get_option(int argc, char *argv[]) ; @@ -193,6 +191,6 @@ print_help(void) { static void print_version(void) { - fprintf(stderr, "%s\n", vcid) ; + fprintf(stderr, "%s\n", getVersion().c_str()) ; exit(1) ; } diff --git a/attic/mri_transform_to_COR/mri_transform_to_COR.cpp b/attic/mri_transform_to_COR/mri_transform_to_COR.cpp index 2ee6a8fa004..15f9c2a9e3e 100644 --- a/attic/mri_transform_to_COR/mri_transform_to_COR.cpp +++ b/attic/mri_transform_to_COR/mri_transform_to_COR.cpp @@ -41,7 +41,6 @@ #define SAMPLE_BSPLINE 5 #define DBL_EPSILON_THIS_FILE 1e-10 -static char vcid[] = "$Id: mri_transform_to_COR.c,v 1.4 2014/04/04 19:58:54 greve Exp $"; LTA *ltaReadFileEx(const char *fname); int MYvg_isEqual(const VOL_GEOM *vg1, const VOL_GEOM *vg2); @@ -752,7 +751,7 @@ usage_exit(int exit_val) { static void print_version(void) { - fprintf(stderr, "%s\n", vcid) ; + fprintf(stderr, "%s\n", getVersion().c_str()) ; exit(1) ; } diff --git a/attic/mri_vol2roi/mri_vol2roi.cpp b/attic/mri_vol2roi/mri_vol2roi.cpp index 34bc37dd126..b352a5d0bda 100644 --- a/attic/mri_vol2roi/mri_vol2roi.cpp +++ b/attic/mri_vol2roi/mri_vol2roi.cpp @@ -27,7 +27,6 @@ Author: Douglas N. Greve email: analysis-bugs@nmr.mgh.harvard.edu Date: 1/2/00 - $Id: mri_vol2roi.c,v 1.32 2011/03/02 00:04:25 nicks Exp $ */ #include @@ -79,7 +78,6 @@ int BTypeFromStem(char *stem); int main(int argc, char *argv[]) ; -static char vcid[] = "$Id: mri_vol2roi.c,v 1.32 2011/03/02 00:04:25 nicks Exp $"; const char *Progname = NULL; char *roifile = NULL; @@ -174,7 +172,7 @@ int main(int argc, char **argv) { printf("%s\n",Progname); for (n=0;n> ${CMAKE_INSTALL_PREFIX}/${DESTINATION}/${SCRIPT}\" OUTPUT_QUIET RESULT_VARIABLE retcode diff --git a/cnn_sphere_register/warp_pad.c b/cnn_sphere_register/warp_pad.c index e57af2d7366..2361fa99e02 100644 --- a/cnn_sphere_register/warp_pad.c +++ b/cnn_sphere_register/warp_pad.c @@ -22,7 +22,6 @@ */ -// $Id: dummy.c,v 1.10 2011/03/02 00:04:01 nicks Exp $ /* BEGINHELP @@ -69,7 +68,6 @@ static void print_version(void) ; static void dump_options(FILE *fp); int main(int argc, char *argv[]) ; -static char vcid[] = "$Id: dummy.c,v 1.10 2011/03/02 00:04:01 nicks Exp $"; char *Progname = NULL; char *cmdline, cwd[2000]; int debug=0; @@ -380,7 +378,7 @@ static void print_usage(void) { printf(" --help print out information on how to use this program\n"); printf(" --version print out version and exit\n"); printf("\n"); - printf("%s\n", vcid) ; + std::cout << getVersion() << std::endl; printf("\n"); } /* -- Doxygen markup starts on the line below (this line not needed for Doxygen) -- */ @@ -401,7 +399,7 @@ static void print_help(void) { */ /* ------ Doxygen markup ends on the line above (this line not needed for Doxygen) -- */ static void print_version(void) { - printf("%s\n", vcid) ; + std::cout << getVersion() << std::endl; exit(1) ; } /* -- Doxygen markup starts on the line below (this line not needed for Doxygen) -- */ @@ -423,7 +421,7 @@ static void check_options(void) { /* ------ Doxygen markup ends on the line above (this line not needed for Doxygen) -- */ static void dump_options(FILE *fp) { fprintf(fp,"\n"); - fprintf(fp,"%s\n",vcid); + fprintf(fp,"%s\n", getVersion().c_str()); fprintf(fp,"cwd %s\n",cwd); fprintf(fp,"cmdline %s\n",cmdline); fprintf(fp,"sysname %s\n",uts.sysname); diff --git a/distribution/ASegStatsLUT.txt b/distribution/ASegStatsLUT.txt index ac92f5af137..0f4fb9d0279 100644 --- a/distribution/ASegStatsLUT.txt +++ b/distribution/ASegStatsLUT.txt @@ -1,5 +1,4 @@ # -# $Id: ASegStatsLUT.txt,v 1.4 2014/10/01 21:11:38 greve Exp $ # # This is a subset of the labels found in FreeSurferColorLUT.txt. # This is the set that will be reported in the stats/aseg.stats file. diff --git a/distribution/CMakeLists.txt b/distribution/CMakeLists.txt index 32c296d9e9d..967a463e499 100644 --- a/distribution/CMakeLists.txt +++ b/distribution/CMakeLists.txt @@ -7,17 +7,21 @@ install(FILES Simple_surface_labels2009.txt tkmeditParcColorsCMA WMParcStatsLUT.txt - DESTINATION ${CMAKE_INSTALL_PREFIX} + DESTINATION . ) -install(PROGRAMS +install_configured( FreeSurferEnv.csh FreeSurferEnv.sh + DESTINATION . +) + +install(PROGRAMS SetUpFreeSurfer.csh SetUpFreeSurfer.sh sources.csh sources.sh - DESTINATION ${CMAKE_INSTALL_PREFIX} + DESTINATION . ) add_subdirectories(average docs fsafd subjects etc) diff --git a/distribution/FreeSurferColorLUT.txt b/distribution/FreeSurferColorLUT.txt index ca1f33cb961..27802d54650 100644 --- a/distribution/FreeSurferColorLUT.txt +++ b/distribution/FreeSurferColorLUT.txt @@ -1,4 +1,3 @@ -#$Id: FreeSurferColorLUT.txt,v 1.105 2015/07/29 18:23:03 greve Exp $ #No. Label Name: R G B A diff --git a/distribution/FreeSurferEnv.csh b/distribution/FreeSurferEnv.csh index f54b90521e6..593d75e0f60 100644 --- a/distribution/FreeSurferEnv.csh +++ b/distribution/FreeSurferEnv.csh @@ -5,10 +5,9 @@ # Note: The bash equivalent script is FreeSurferEnv.sh, and should # be maintained to operate the same way. # -# $Id: FreeSurferEnv.csh,v 1.89 2016/06/09 14:54:31 zkaufman Exp $ ############################################################################# -set VERSION = '$Id: FreeSurferEnv.csh,v 1.89 2016/06/09 14:54:31 zkaufman Exp $' +set VERSION = 'FreeSurferEnv.csh @FS_VERSION@'; ## Print help if --help or -help is specified if (("$1" == "--help") || ("$1" == "-help")) then diff --git a/distribution/FreeSurferEnv.sh b/distribution/FreeSurferEnv.sh index 01c715257b5..1ed90fb20ff 100644 --- a/distribution/FreeSurferEnv.sh +++ b/distribution/FreeSurferEnv.sh @@ -7,10 +7,9 @@ # Note: The csh/tcsh equivalent script is FreeSurferEnv.csh, and should # be maintained to operate the same way. # -# $Id: FreeSurferEnv.sh,v 1.61 2016/06/09 14:54:31 zkaufman Exp $ ############################################################################# -VERSION='$Id: FreeSurferEnv.sh,v 1.61 2016/06/09 14:54:31 zkaufman Exp $' +VERSION='FreeSurferEnv.sh @FS_VERSION@' ## Print help if --help or -help is specified if [ $# -gt 1 ]; then diff --git a/distribution/SegmentNoLUT.txt b/distribution/SegmentNoLUT.txt index cf6e56a792e..141da597815 100644 --- a/distribution/SegmentNoLUT.txt +++ b/distribution/SegmentNoLUT.txt @@ -1,4 +1,3 @@ -# '$Id: SegmentNoLUT.txt,v 1.1 2009/01/28 18:34:22 greve Exp $' # This is a LUT in which the segmentation name is simply "SegXXXX" # where XXXX is the segmentation number. This can be handy for # when you are visualizing segmentations that have been generated diff --git a/distribution/WMParcStatsLUT.txt b/distribution/WMParcStatsLUT.txt index ef1cd5fafa7..d82c28dabd0 100644 --- a/distribution/WMParcStatsLUT.txt +++ b/distribution/WMParcStatsLUT.txt @@ -1,4 +1,3 @@ -#$Id: WMParcStatsLUT.txt,v 1.1 2010/03/12 23:12:48 greve Exp $ # # This lists all the wm parcellation ROIs. It is used in the recon-all # call to mri_segstats so that only the wmparc ROIs are reported. This diff --git a/distribution/average/mni305.cor.readme b/distribution/average/mni305.cor.readme index 07d534407de..aeb9b1cf012 100644 --- a/distribution/average/mni305.cor.readme +++ b/distribution/average/mni305.cor.readme @@ -1,5 +1,3 @@ -$Id: mni305.cor.readme,v 1.5 2006/03/29 07:21:50 greve Exp $ - The data in mni305.cor.mgz was derived from the MINC Software package with: set mincdir = /usr/pubsw/packages/mni/current diff --git a/distribution/diffusion/mgh-dti-seqpack/README b/distribution/diffusion/mgh-dti-seqpack/README index d0d4777c521..1264c7cd309 100644 --- a/distribution/diffusion/mgh-dti-seqpack/README +++ b/distribution/diffusion/mgh-dti-seqpack/README @@ -1,6 +1,3 @@ - -$Id: README,v 1.4 2007/07/13 03:26:56 greve Exp $ - These are diffusion gradient direction files that describe some of the protocols distributed by Siemens though the MGH DTI Sequence Package. These are used at the Massachusetts General Hosptial (MGH) Martinos diff --git a/distribution/nmr-dev-env b/distribution/nmr-dev-env deleted file mode 100644 index 386efbaa06e..00000000000 --- a/distribution/nmr-dev-env +++ /dev/null @@ -1,101 +0,0 @@ -############################################################################# -# Name: nmr-dev-env -# Purpose: sets up the environment to run the MGH-NMR standard MRI processing -# stream: unpacking, functional, structural, and visualization. -# Usage: source nmr-dev-env -# -# $Id: nmr-dev-env,v 1.18 2007/12/25 16:04:29 nicks Exp $ -# -# NOTE: this file is under version control. Make sure to use the -# proper check-out/check-in procedures when modifying it! -############################################################################# - -# check if attempting to execute on a machine which should not run -# Freesurfer (such as 'gate' and 'entry') -if( -e /etc/NOFREESURFER ) then - cat /etc/NOFREESURFER - exit -endif - -# track usage -set USER_LIST_PATH=/autofs/space/freesurfer -(echo "`date`|`whoami`|`hostname -s`|nmr-dev-env" >> $USER_LIST_PATH/nmr-dev-env_user_list.txt) >& /dev/null - -set VERSION = '$Id: nmr-dev-env,v 1.18 2007/12/25 16:04:29 nicks Exp $'; -set NSE_VERSION = '${VERSION}'; -if( $?FS_FREESURFERENV_NO_OUTPUT ) then - echo $NSE_VERSION -endif - -## Turn on verboseness if desired ## -if($?NMR_DEV_VERBOSE) then - set echo - set verbose -endif - -setenv FREESURFER_HOME /usr/local/freesurfer/dev -unsetenv NO_FSFAST -setenv FSFAST_HOME $FREESURFER_HOME/fsfast -unsetenv NO_MINC - -# Source the FreeSurfer Environment File -set FS_ENV_FILE = $FREESURFER_HOME/SetUpFreeSurfer.csh -if(! -e $FS_ENV_FILE) then - echo "ERROR: cannot find $FS_ENV_FILE" - exit 1; -endif -setenv SET_TCL_VARS 1 -source $FS_ENV_FILE - -# TCLLIBPATH is defined in FreeSurferEnv.csh to ensure compatibility -# in the public distributions, but creates a tix library -# conflict with FSL, so unset it. -unsetenv TCLLIBPATH - -# Source the FreeDiffusion Environment File -set FD_ENV_FILE = $FREESURFER_HOME/SetUpFreeDiffusion.csh -if(! -e $FD_ENV_FILE) then - echo "WARNING: cannot find $FD_ENV_FILE" -else - source $FD_ENV_FILE -endif - -### Create a prompt to indicate the standard environment ### -set this_shell = `basename $SHELL`; -set this_hostname = `hostname` -set this_host = `basename $this_hostname .nmr.mgh.harvard.edu` -if(! $?FSENV_KEEP_PROMPT ) then - if($this_shell == csh) then - unalias cd - alias cd 'set old=$cwd; chdir \!*; - set tmpcwd = `basename $cwd`; - set prompt = "$this_host"":$tmpcwd (nmr-dev-env) % "' - cd $cwd; - else - set prompt = "[%m:%c] (nmr-dev-env) " - endif -endif - -### Dont leave huge cores around ### -limit coredumpsize 0 - -# Add pubsw and AFNI to the path if it isn't there. -if ( "${path}" !~ */usr/pubsw/bin* ) then - set path = ( /usr/pubsw/bin $path ) -endif - -if ( "${path}" !~ */usr/pubsw/packages/AFNI/current/bin* ) then - set path = ( /usr/pubsw/packages/AFNI/current/bin $path ) -endif - -if(! $?MRI_UMASK) then - setenv MRI_UMASK 2 -endif - -rehash; - -unset echo ; -unset verbose; - -exit 0; -#################################################################### diff --git a/distribution/nmr-std-env b/distribution/nmr-std-env deleted file mode 100644 index 9315dc81ac0..00000000000 --- a/distribution/nmr-std-env +++ /dev/null @@ -1,115 +0,0 @@ -############################################################################# -# Name: nmr-stable4-env -# Purpose: sets up the environment to run the MGH-NMR standard MRI processing -# stream: unpacking, functional, structural, and visualization. -# Usage: source /usr/local/freesurfer/nmr-std-env -# -# $Id: nmr-std-env,v 1.21 2007/12/25 16:04:29 nicks Exp $ -# -# NOTE: this file is under version control. Make sure to use the -# proper check-out/check-in procedures when modifying it! -############################################################################# - -# check if attempting to execute on a machine which should not run -# Freesurfer (such as 'gate' and 'entry') -if( -e /etc/NOFREESURFER ) then - cat /etc/NOFREESURFER - exit -endif - -#echo "=================================================" -#echo " Reminder! This is a new version of Freesurfer!" -#echo "" -#echo " If you need to use the older v3.0.5, type this:" -#echo "" -#echo " source /usr/local/freesurfer/nmr-stable3-env" -#echo "=================================================" - -# track usage -if ("`uname -s`" == "Darwin") then - set USER_LIST_PATH=/autofs/space/freesurfer -else - set USER_LIST_PATH=/space/freesurfer -endif -(echo "`date`|`whoami`|`hostname -s`|nmr-stable4-env" >> $USER_LIST_PATH/nmr-stable4-env_user_list.txt) >& /dev/null - -set VERSION = '$Id: nmr-std-env,v 1.21 2007/12/25 16:04:29 nicks Exp $'; -set NSE_VERSION = '${VERSION}'; - -if( $?FS_FREESURFERENV_NO_OUTPUT ) then - echo $NSE_VERSION -endif - -## Turn on verboseness if desired ## -if($?NMR_STD_VERBOSE) then - set echo - set verbose -endif - -# Point to stable4 freesurfer -setenv FREESURFER_HOME /usr/local/freesurfer/stable4 -unsetenv NO_FSFAST -setenv FSFAST_HOME $FREESURFER_HOME/fsfast -unsetenv NO_MINC - -# Source the FreeSurfer Environment File -set FS_ENV_FILE = $FREESURFER_HOME/SetUpFreeSurfer.csh -if(! -e $FS_ENV_FILE) then - echo "ERROR: cannot find $FS_ENV_FILE" - exit 1; -endif -setenv SET_TCL_VARS 1 -source $FS_ENV_FILE - -# TCLLIBPATH is defined in FreeSurferEnv.csh to ensure compatibility -# in the public distributions, but creates a tix library -# conflict with FSL, so unset it. -unsetenv TCLLIBPATH - -# Source the FreeDiffusion Environment File -set FD_ENV_FILE = $FREESURFER_HOME/SetUpFreeDiffusion.csh -if(! -e $FD_ENV_FILE) then - echo "WARNING: cannot find $FD_ENV_FILE" -else - source $FD_ENV_FILE -endif - -### Create a prompt to indicate the standard environment ### -set this_shell = `basename $SHELL`; -set this_hostname = `hostname` -set this_host = `basename $this_hostname .nmr.mgh.harvard.edu` -if(! $?FSENV_KEEP_PROMPT ) then - if($this_shell == csh) then - unalias cd - alias cd 'set old=$cwd; chdir \!*; - set tmpcwd = `basename $cwd`; - set prompt = "$this_host"":$tmpcwd (nmr-std-env) % "' - cd $cwd; - else - set prompt = "[%m:%c] (nmr-std-env) " - endif -endif - -### Dont leave huge cores around ### -limit coredumpsize 0 - -# Add pubsw and AFNI to the path if it isn't there. -if ( "${path}" !~ */usr/pubsw/bin* ) then - set path = ( /usr/pubsw/bin $path ) -endif - -if ( "${path}" !~ */usr/pubsw/packages/AFNI/current/bin* ) then - set path = ( /usr/pubsw/packages/AFNI/current/bin $path ) -endif - -if(! $?MRI_UMASK) then - setenv MRI_UMASK 2 -endif - -rehash; - -unset echo ; -unset verbose; - -exit 0; -#################################################################### diff --git a/dngtester/cpptester.cpp b/dngtester/cpptester.cpp index 79ccb450c50..15f077201bd 100644 --- a/dngtester/cpptester.cpp +++ b/dngtester/cpptester.cpp @@ -22,14 +22,12 @@ static void printUsage(void); static bool parseCommandLine(int argc, char *argv[]); static int parseNextCommand(int argc, char *argv[]); -static char vcid[] = - "$Id: lta_convert.cpp,v 1.10 2016/08/09 02:11:11 zkaufman Exp $"; const char *Progname = NULL; float myrand(float f); int main(int argc, char *argv[]) { - cout << vcid << endl << endl; + cout << getVersion() << endl << endl; // Default initialization int nargs = handleVersionOption(argc, argv, "cpptester"); diff --git a/freeview/resource/FreeSurferColorLUT.txt b/freeview/resource/FreeSurferColorLUT.txt index ee737734ed9..89995acdc21 100644 --- a/freeview/resource/FreeSurferColorLUT.txt +++ b/freeview/resource/FreeSurferColorLUT.txt @@ -1,4 +1,3 @@ -#$Id: FreeSurferColorLUT.txt,v 1.105 2015/07/29 18:23:03 greve Exp $ #No. Label Name: R G B A diff --git a/fsfast/bin/CMakeLists.txt b/fsfast/bin/CMakeLists.txt index a30aa9cb950..16d57dbedc4 100644 --- a/fsfast/bin/CMakeLists.txt +++ b/fsfast/bin/CMakeLists.txt @@ -5,7 +5,7 @@ install_symlinks( DESTINATION fsfast/bin ) -install(PROGRAMS +install_configured( acfseg-sess acorfunc-sess addmcparams diff --git a/fsfast/bin/acfseg-sess b/fsfast/bin/acfseg-sess index 5d0e1b5f163..c1f9176e09a 100755 --- a/fsfast/bin/acfseg-sess +++ b/fsfast/bin/acfseg-sess @@ -19,7 +19,7 @@ # -set VERSION = '$Id: acfseg-sess,v 1.9 2015/12/10 22:51:29 zkaufman Exp $'; +set VERSION = 'acfseg-sess @FS_VERSION@'; set cmdargs = ($argv); diff --git a/fsfast/bin/acorfunc-sess b/fsfast/bin/acorfunc-sess index edd56e3e8bc..801727633db 100755 --- a/fsfast/bin/acorfunc-sess +++ b/fsfast/bin/acorfunc-sess @@ -19,7 +19,7 @@ # -set VERSION = '$Id: acorfunc-sess,v 1.3 2015/12/10 22:51:29 zkaufman Exp $'; +set VERSION = 'acorfunc-sess @FS_VERSION@'; set inputargs = ($argv); set DateStr = "`date '+%y%m%d%H%M'`" diff --git a/fsfast/bin/afni2bvol b/fsfast/bin/afni2bvol index 1a8c0b7a8cb..80e2463dd91 100755 --- a/fsfast/bin/afni2bvol +++ b/fsfast/bin/afni2bvol @@ -19,7 +19,7 @@ # -set VERSION = '$Id: afni2bvol,v 1.3 2015/12/10 22:51:29 zkaufman Exp $' +set VERSION = 'afni2bvol @FS_VERSION@'; if($#argv == 0) goto usage_exit; diff --git a/fsfast/bin/aseg2funcmask-sess b/fsfast/bin/aseg2funcmask-sess index 274ec40d766..5e31a91b319 100755 --- a/fsfast/bin/aseg2funcmask-sess +++ b/fsfast/bin/aseg2funcmask-sess @@ -19,7 +19,7 @@ # -set VERSION = '$Id: aseg2funcmask-sess,v 1.13 2015/12/10 22:51:29 zkaufman Exp $'; +set VERSION = 'aseg2funcmask-sess @FS_VERSION@'; set cmdargs = ($argv); diff --git a/fsfast/bin/autoreg-fsl b/fsfast/bin/autoreg-fsl index f51c1494ab1..7f40f6c2e78 100755 --- a/fsfast/bin/autoreg-fsl +++ b/fsfast/bin/autoreg-fsl @@ -19,7 +19,7 @@ # -set VERSION = '$Id: autoreg-fsl,v 1.4 2015/12/10 22:51:29 zkaufman Exp $'; +set VERSION = 'autoreg-fsl @FS_VERSION@'; set inputargs = ($argv); diff --git a/fsfast/bin/autoreg-sess b/fsfast/bin/autoreg-sess index dfb6c5736d0..14382656ebf 100755 --- a/fsfast/bin/autoreg-sess +++ b/fsfast/bin/autoreg-sess @@ -19,7 +19,7 @@ # -set VERSION = '$Id: autoreg-sess,v 1.5 2015/12/10 22:51:29 zkaufman Exp $'; +set VERSION = 'autoreg-sess @FS_VERSION@'; set cmdargs = ($argv); set ScriptOnly = 0; @@ -62,7 +62,7 @@ endif echo "Logfile is $LF" echo "autreg-sess log file" >> $LF -echo '$Id: autoreg-sess,v 1.5 2015/12/10 22:51:29 zkaufman Exp $' >> $LF +echo 'autoreg-sess @FS_VERSION@' >> $LF echo $0 >> $LF uname -a >> $LF date >> $LF diff --git a/fsfast/bin/avgraw b/fsfast/bin/avgraw index 5290a07d89b..74f6ceb82eb 100755 --- a/fsfast/bin/avgraw +++ b/fsfast/bin/avgraw @@ -21,7 +21,7 @@ # -set VERSION = '$Id: avgraw,v 1.3 2015/12/10 22:51:29 zkaufman Exp $' +set VERSION = 'avgraw @FS_VERSION@'; set n = `echo $argv | grep version | wc -l` if($n != 0) then diff --git a/fsfast/bin/bfile2afni b/fsfast/bin/bfile2afni index b540350c4a8..786b1138109 100755 --- a/fsfast/bin/bfile2afni +++ b/fsfast/bin/bfile2afni @@ -19,7 +19,7 @@ # -set VERSION = '$Id: bfile2afni,v 1.4 2015/12/10 22:51:29 zkaufman Exp $' +set VERSION = 'bfile2afni @FS_VERSION@'; if($#argv == 0) goto usage_exit; diff --git a/fsfast/bin/bfileconvert b/fsfast/bin/bfileconvert index 072c5b59c75..2ce310e8be7 100755 --- a/fsfast/bin/bfileconvert +++ b/fsfast/bin/bfileconvert @@ -19,7 +19,7 @@ # -set VERSION = '$Id: bfileconvert,v 1.6 2015/12/10 22:51:29 zkaufman Exp $' +set VERSION = 'bfileconvert @FS_VERSION@'; set cmdargs = ($argv); set invol = (); diff --git a/fsfast/bin/bgmask-sess b/fsfast/bin/bgmask-sess index 07b09dc6edd..7d4e6c8ed98 100755 --- a/fsfast/bin/bgmask-sess +++ b/fsfast/bin/bgmask-sess @@ -19,7 +19,7 @@ # # -set VERSION = '$Id: bgmask-sess,v 1.10 2015/12/10 22:51:29 zkaufman Exp $'; +set VERSION = 'bgmask-sess @FS_VERSION@'; set cmdargs = ($argv); diff --git a/fsfast/bin/bvol2afni b/fsfast/bin/bvol2afni index 39023d7d1d9..2b78920dd6c 100755 --- a/fsfast/bin/bvol2afni +++ b/fsfast/bin/bvol2afni @@ -19,7 +19,7 @@ # -set VERSION = '$Id: bvol2afni,v 1.4 2015/12/10 22:51:29 zkaufman Exp $' +set VERSION = 'bvol2afni @FS_VERSION@'; if($#argv == 0) goto usage_exit; diff --git a/fsfast/bin/cat-bvolume b/fsfast/bin/cat-bvolume index 616dfd5577b..b063ed68682 100755 --- a/fsfast/bin/cat-bvolume +++ b/fsfast/bin/cat-bvolume @@ -26,7 +26,7 @@ set inputargs = ($argv); -set VERSION = '$Id: cat-bvolume,v 1.4 2015/12/10 22:51:29 zkaufman Exp $'; +set VERSION = 'cat-bvolume @FS_VERSION@'; ## Set up defaults ## set instemlist = (); diff --git a/fsfast/bin/check-sliceres-sess b/fsfast/bin/check-sliceres-sess index a8152c932b2..85b0d2f6031 100755 --- a/fsfast/bin/check-sliceres-sess +++ b/fsfast/bin/check-sliceres-sess @@ -20,7 +20,7 @@ -set VERSION = '$Id: check-sliceres-sess,v 1.3 2015/12/10 22:51:29 zkaufman Exp $'; +set VERSION = 'check-sliceres-sess @FS_VERSION@'; set inputargs = ($argv); diff --git a/fsfast/bin/cluster-sess b/fsfast/bin/cluster-sess index c73ea040f4d..b6c986aae7c 100755 --- a/fsfast/bin/cluster-sess +++ b/fsfast/bin/cluster-sess @@ -19,7 +19,7 @@ # -set VERSION = '$Id: cluster-sess,v 1.3 2015/12/10 22:51:29 zkaufman Exp $'; +set VERSION = 'cluster-sess @FS_VERSION@'; set inputargs = ($argv); set DateStr = "`date '+%y%m%d%H%M%S'`" diff --git a/fsfast/bin/clusterspec2mask b/fsfast/bin/clusterspec2mask index 7a6f4b2e55e..58da2a1eb81 100755 --- a/fsfast/bin/clusterspec2mask +++ b/fsfast/bin/clusterspec2mask @@ -34,7 +34,7 @@ # -set VERSION = '$Id: clusterspec2mask,v 1.3 2015/12/10 22:51:29 zkaufman Exp $' +set VERSION = 'clusterspec2mask @FS_VERSION@'; set inputargs = ($argv); set PWDCMD = `getpwdcmd`; diff --git a/fsfast/bin/cmpanalyses-sess b/fsfast/bin/cmpanalyses-sess index fbaf00cd57c..d7c45783f6f 100755 --- a/fsfast/bin/cmpanalyses-sess +++ b/fsfast/bin/cmpanalyses-sess @@ -19,7 +19,7 @@ # -set VERSION = '$Id: cmpanalyses-sess,v 1.4 2015/12/10 22:51:29 zkaufman Exp $' +set VERSION = 'cmpanalyses-sess @FS_VERSION@'; set inputargs = ($argv); diff --git a/fsfast/bin/cmpsesssnr-sess b/fsfast/bin/cmpsesssnr-sess index 5beb67be804..7bb0244ed8c 100755 --- a/fsfast/bin/cmpsesssnr-sess +++ b/fsfast/bin/cmpsesssnr-sess @@ -19,7 +19,7 @@ # -set VERSION = '$Id: cmpsesssnr-sess,v 1.4 2015/12/10 22:51:29 zkaufman Exp $'; +set VERSION = 'cmpsesssnr-sess @FS_VERSION@'; set inputargs = ($argv); set DateStr = "`date '+%y%m%d%H%M'`" diff --git a/fsfast/bin/cmpsnr-sess b/fsfast/bin/cmpsnr-sess index 3e69410fc41..a02f4510418 100755 --- a/fsfast/bin/cmpsnr-sess +++ b/fsfast/bin/cmpsnr-sess @@ -19,7 +19,7 @@ # -set VERSION = '$Id: cmpsnr-sess,v 1.3 2015/12/10 22:51:29 zkaufman Exp $'; +set VERSION = 'cmpsnr-sess @FS_VERSION@'; set inputargs = ($argv); set DateStr = "`date '+%y%m%d%H%M'`" diff --git a/fsfast/bin/compress-sess b/fsfast/bin/compress-sess index e623ebf65f3..fff74a77faf 100755 --- a/fsfast/bin/compress-sess +++ b/fsfast/bin/compress-sess @@ -19,7 +19,7 @@ # -set VERSION = '$Id: compress-sess,v 1.4 2015/12/10 22:51:29 zkaufman Exp $'; +set VERSION = 'compress-sess @FS_VERSION@'; set inputargs = ($argv); diff --git a/fsfast/bin/conmask-sess b/fsfast/bin/conmask-sess index e9a281cb8e7..ea7cbeff09c 100755 --- a/fsfast/bin/conmask-sess +++ b/fsfast/bin/conmask-sess @@ -19,7 +19,7 @@ # -set VERSION = '$Id: conmask-sess,v 1.3 2015/12/10 22:51:29 zkaufman Exp $'; +set VERSION = 'conmask-sess @FS_VERSION@'; set analysis = (); set conlist = (); set maplist = (); diff --git a/fsfast/bin/crossrun.ffx.fsf b/fsfast/bin/crossrun.ffx.fsf index fbf00098658..4bbd75db3c1 100644 --- a/fsfast/bin/crossrun.ffx.fsf +++ b/fsfast/bin/crossrun.ffx.fsf @@ -1,5 +1,4 @@ -# $Id: crossrun.ffx.fsf,v 1.1 2007/03/02 06:45:37 greve Exp $ # # This is a file created to be used with fsfeatffx. It is specifically # coded to implement a one-sample group mean for averaging across runs diff --git a/fsfast/bin/diag-fmri b/fsfast/bin/diag-fmri index 0688411f739..fd823f3ad78 100755 --- a/fsfast/bin/diag-fmri +++ b/fsfast/bin/diag-fmri @@ -24,7 +24,7 @@ # source $FREESURFER_HOME/sources.csh -set DIAGFMRI_VER = '$Id: diag-fmri,v 1.3 2015/12/10 22:51:29 zkaufman Exp $'; +set DIAGFMRI_VER = 'diag-fmri @FS_VERSION@'; echo "$DIAGFMRI_VER" set StartTime = `date`; diff --git a/fsfast/bin/diag-optseq b/fsfast/bin/diag-optseq index 1c0937a67ac..62cff44365e 100755 --- a/fsfast/bin/diag-optseq +++ b/fsfast/bin/diag-optseq @@ -19,7 +19,7 @@ # source $FREESURFER_HOME/sources.csh -set DIAGOPTSEQ_VER = '$Id: diag-optseq,v 1.3 2015/12/10 22:51:29 zkaufman Exp $'; +set DIAGOPTSEQ_VER = 'diag-optseq @FS_VERSION@'; echo "$DIAGOPTSEQ_VER" if($#argv == 0) then diff --git a/fsfast/bin/editmask b/fsfast/bin/editmask index be1b170a66b..549d8c0858a 100755 --- a/fsfast/bin/editmask +++ b/fsfast/bin/editmask @@ -21,7 +21,7 @@ set inputargs = ($argv); set fmrianalver = `cat $FMRI_ANALYSIS_DIR/docs/version`; -set VERSION = '$Id: editmask,v 1.3 2015/12/10 22:51:29 zkaufman Exp $'; +set VERSION = 'editmask @FS_VERSION@'; set PrintHelp = 0; ## If there are no arguments, just print useage and exit ## diff --git a/fsfast/bin/evfunc b/fsfast/bin/evfunc index aa20fac3c6b..d0255569689 100755 --- a/fsfast/bin/evfunc +++ b/fsfast/bin/evfunc @@ -20,7 +20,7 @@ # -set VERSION = '$Id: evfunc,v 1.3 2015/12/10 22:51:29 zkaufman Exp $' +set VERSION = 'evfunc @FS_VERSION@'; set inputargs = ($argv); set PWDCMD = `getpwdcmd`; diff --git a/fsfast/bin/evfunc-jk-sess b/fsfast/bin/evfunc-jk-sess index 52d45dc50fe..cb8833563c3 100755 --- a/fsfast/bin/evfunc-jk-sess +++ b/fsfast/bin/evfunc-jk-sess @@ -19,7 +19,7 @@ # -set VERSION = '$Id: evfunc-jk-sess,v 1.5 2015/12/10 22:51:29 zkaufman Exp $'; +set VERSION = 'evfunc-jk-sess @FS_VERSION@'; set inputargs = ($argv); set DateStr = "`date '+%y%m%d%H%M'`" diff --git a/fsfast/bin/evfunc-sess b/fsfast/bin/evfunc-sess index b73e2a812c3..cf2c05fd600 100755 --- a/fsfast/bin/evfunc-sess +++ b/fsfast/bin/evfunc-sess @@ -19,7 +19,7 @@ # -set VERSION = '$Id: evfunc-sess,v 1.4 2015/12/10 22:51:29 zkaufman Exp $' +set VERSION = 'evfunc-sess @FS_VERSION@'; set inputargs = ($argv); set nkeep = (); diff --git a/fsfast/bin/evpve-sess b/fsfast/bin/evpve-sess index f0131377713..b6326d4e1bc 100755 --- a/fsfast/bin/evpve-sess +++ b/fsfast/bin/evpve-sess @@ -20,7 +20,7 @@ set inputargs = ($argv); -set VERSION = '$Id: evpve-sess,v 1.3 2015/12/10 22:51:29 zkaufman Exp $'; +set VERSION = 'evpve-sess @FS_VERSION@'; set SessList = (); set fsd = "bold"; diff --git a/fsfast/bin/evspatfil b/fsfast/bin/evspatfil index 0a58c17aa59..af9219026ca 100755 --- a/fsfast/bin/evspatfil +++ b/fsfast/bin/evspatfil @@ -21,7 +21,7 @@ # -set VERSION = '$Id: evspatfil,v 1.3 2015/12/10 22:51:29 zkaufman Exp $' +set VERSION = 'evspatfil @FS_VERSION@'; set inputargs = ($argv); set PWDCMD = `getpwdcmd`; diff --git a/fsfast/bin/evspatfil-jk-sess b/fsfast/bin/evspatfil-jk-sess index 74f46961c9b..e81c192edfe 100755 --- a/fsfast/bin/evspatfil-jk-sess +++ b/fsfast/bin/evspatfil-jk-sess @@ -19,7 +19,7 @@ # -set VERSION = '$Id: evspatfil-jk-sess,v 1.3 2015/12/10 22:51:29 zkaufman Exp $'; +set VERSION = 'evspatfil-jk-sess @FS_VERSION@'; set FASTVER = `cat $FSFAST_HOME/docs/version`; set inputargs = ($argv); diff --git a/fsfast/bin/evspatfil-sess b/fsfast/bin/evspatfil-sess index 4b229510b5f..d06792a2f05 100755 --- a/fsfast/bin/evspatfil-sess +++ b/fsfast/bin/evspatfil-sess @@ -19,7 +19,7 @@ # -set VERSION = '$Id: evspatfil-sess,v 1.4 2015/12/10 22:51:29 zkaufman Exp $' +set VERSION = 'evspatfil-sess @FS_VERSION@'; set inputargs = ($argv); diff --git a/fsfast/bin/extract-roi-tc-sess b/fsfast/bin/extract-roi-tc-sess index 99482bf3699..b37eb694bee 100755 --- a/fsfast/bin/extract-roi-tc-sess +++ b/fsfast/bin/extract-roi-tc-sess @@ -18,7 +18,7 @@ # Bug reports: analysis-bugs@nmr.mgh.harvard.edu # -set VERSION = '$Id: extract-roi-tc-sess,v 1.4 2015/12/10 22:51:29 zkaufman Exp $' +set VERSION = 'extract-roi-tc-sess @FS_VERSION@'; set inputargs = ($argv); diff --git a/fsfast/bin/fast-log-preamble.csh b/fsfast/bin/fast-log-preamble.csh index 980ffe39bc1..4a287909a21 100755 --- a/fsfast/bin/fast-log-preamble.csh +++ b/fsfast/bin/fast-log-preamble.csh @@ -1,5 +1,4 @@ # fast-log-preamble -# $Id: fast-log-preamble.csh,v 1.2 2015/12/10 22:51:29 zkaufman Exp $ # # This file is meant to be sourced at the start of one of the FAST # scripts. It prints out generic information that should be stored diff --git a/fsfast/bin/fast_getext b/fsfast/bin/fast_getext index e761fbde971..9895c0ae8df 100755 --- a/fsfast/bin/fast_getext +++ b/fsfast/bin/fast_getext @@ -24,7 +24,7 @@ source $FREESURFER_HOME/sources.csh if($#argv != 1) then echo "fast_getext stem" - echo '$Id: fast_getext,v 1.4 2015/12/10 22:51:29 zkaufman Exp $' + echo 'fast_getext @FS_VERSION@' exit 1; endif diff --git a/fsfast/bin/fcreg-sess b/fsfast/bin/fcreg-sess index e1fe9e4c6e8..ab75aad37ab 100755 --- a/fsfast/bin/fcreg-sess +++ b/fsfast/bin/fcreg-sess @@ -1,7 +1,7 @@ #!/bin/csh -f # fcreg-sess # -set VERSION = '$Id: fcreg-sess,v 1.6 2015/12/10 22:51:29 zkaufman Exp $'; +set VERSION = 'fcreg-sess @FS_VERSION@'; set cmdargs = ($argv); set flac = (); diff --git a/fsfast/bin/fcseed-config b/fsfast/bin/fcseed-config index 4344f341099..9ed9f63a9b1 100755 --- a/fsfast/bin/fcseed-config +++ b/fsfast/bin/fcseed-config @@ -1,7 +1,7 @@ #!/bin/csh -f # fcseed-sess # -set VERSION = '$Id: fcseed-config,v 1.9 2015/12/10 22:51:29 zkaufman Exp $'; +set VERSION = 'fcseed-config @FS_VERSION@'; set cmdargs = ($argv); set fcconfig = (); diff --git a/fsfast/bin/fcseed-sess b/fsfast/bin/fcseed-sess index 04492232e82..f4256f63a29 100755 --- a/fsfast/bin/fcseed-sess +++ b/fsfast/bin/fcseed-sess @@ -1,7 +1,7 @@ #!/bin/csh -f # fcseed-sess # -set VERSION = '$Id: fcseed-sess,v 1.17 2015/12/10 22:51:29 zkaufman Exp $'; +set VERSION = 'fcseed-sess @FS_VERSION@'; set cmdargs = ($argv); set fcconfig = (); diff --git a/fsfast/bin/fcseedcor b/fsfast/bin/fcseedcor index 5b634e8add8..b6d8c55e582 100755 --- a/fsfast/bin/fcseedcor +++ b/fsfast/bin/fcseedcor @@ -1,7 +1,7 @@ #!/bin/tcsh -f # fcseedcor -set VERSION = '$Id: fcseedcor,v 1.3 2015/12/10 22:51:29 zkaufman Exp $'; +set VERSION = 'fcseedcor @FS_VERSION@'; set outfile = (); set seedlist = (); diff --git a/fsfast/bin/feat.fsfast-patch b/fsfast/bin/feat.fsfast-patch index 1a6f63b1016..2f19b28df64 100755 --- a/fsfast/bin/feat.fsfast-patch +++ b/fsfast/bin/feat.fsfast-patch @@ -9,7 +9,6 @@ # The purpose of this program is to run the FSFAST patch of feat.tcl # (feat.fsfast-patch.tcl) # # -# $Id: feat.fsfast-patch,v 1.1 2007/06/27 06:12:37 greve Exp $ # the next line restarts using wish \ exec $FSLTCLSH "$0" "$@" diff --git a/fsfast/bin/feat.fsfast-patch.tcl b/fsfast/bin/feat.fsfast-patch.tcl index 036ffb52126..ecf1219664f 100755 --- a/fsfast/bin/feat.fsfast-patch.tcl +++ b/fsfast/bin/feat.fsfast-patch.tcl @@ -3,7 +3,6 @@ # This is a modified version of FSL's FEAT TCL program. # All restrictions of the FSL LICENSE below apply. # -# $Id: feat.fsfast-patch.tcl,v 1.3 2007/09/16 23:17:42 greve Exp $ #{{{ copyright and setup diff --git a/fsfast/bin/fftfunc-sess b/fsfast/bin/fftfunc-sess index 1b65317940e..03b224c329a 100755 --- a/fsfast/bin/fftfunc-sess +++ b/fsfast/bin/fftfunc-sess @@ -20,7 +20,7 @@ set inputargs = ($argv); -set VERSION = '$Id: fftfunc-sess,v 1.3 2015/12/10 22:51:29 zkaufman Exp $'; +set VERSION = 'fftfunc-sess @FS_VERSION@'; set SessList = (); set fsd = "bold"; diff --git a/fsfast/bin/fieldsign-sess b/fsfast/bin/fieldsign-sess index c468b4a95bb..b933b141696 100755 --- a/fsfast/bin/fieldsign-sess +++ b/fsfast/bin/fieldsign-sess @@ -18,7 +18,7 @@ # Bug reports: analysis-bugs@nmr.mgh.harvard.edu # -set VERSION = '$Id: fieldsign-sess,v 1.6 2015/12/10 22:51:29 zkaufman Exp $'; +set VERSION = 'fieldsign-sess @FS_VERSION@'; set inputargs = ($argv); set analysis = (); diff --git a/fsfast/bin/fixseqinfo-sess b/fsfast/bin/fixseqinfo-sess index 56ddec1b35d..94905a2098b 100755 --- a/fsfast/bin/fixseqinfo-sess +++ b/fsfast/bin/fixseqinfo-sess @@ -19,7 +19,7 @@ # -set VERSION = '$Id: fixseqinfo-sess,v 1.3 2015/12/10 22:51:29 zkaufman Exp $' +set VERSION = 'fixseqinfo-sess @FS_VERSION@'; set fsd = "bold"; set nolog = 0; diff --git a/fsfast/bin/flacproc-sess b/fsfast/bin/flacproc-sess index ca4fdf7d0a2..2c25b779186 100755 --- a/fsfast/bin/flacproc-sess +++ b/fsfast/bin/flacproc-sess @@ -19,7 +19,7 @@ # -set VERSION = '$Id: flacproc-sess,v 1.23 2015/12/10 22:51:29 zkaufman Exp $'; +set VERSION = 'flacproc-sess @FS_VERSION@'; set cmdargs = ($argv); diff --git a/fsfast/bin/fmreigen b/fsfast/bin/fmreigen index 4e473b6ba3e..21b189e2966 100755 --- a/fsfast/bin/fmreigen +++ b/fsfast/bin/fmreigen @@ -20,7 +20,7 @@ set fmrianalver = `cat $FMRI_ANALYSIS_DIR/docs/version`; -set FMREIGEN_VER = '$Id: fmreigen,v 1.3 2015/12/10 22:51:29 zkaufman Exp $' +set FMREIGEN_VER = 'fmreigen @FS_VERSION@' set invols = (); set outvol = (); diff --git a/fsfast/bin/fmreigen-jk b/fsfast/bin/fmreigen-jk index 2694ca06ef6..f288b85d793 100755 --- a/fsfast/bin/fmreigen-jk +++ b/fsfast/bin/fmreigen-jk @@ -24,7 +24,7 @@ ############################################################ set fmrianalver = `cat $FMRI_ANALYSIS_DIR/docs/version`; -set FMREIGENJK_VER = '$Id: fmreigen-jk,v 1.3 2015/12/10 22:51:29 zkaufman Exp $'; +set FMREIGENJK_VER = 'fmreigen-jk @FS_VERSION@'; set invols = (); set outvols = (); diff --git a/fsfast/bin/fsf-glmfit b/fsfast/bin/fsf-glmfit index 1993fddedd6..b6d2cb69ce8 100755 --- a/fsfast/bin/fsf-glmfit +++ b/fsfast/bin/fsf-glmfit @@ -19,7 +19,7 @@ # -set VERSION = '$Id: fsf-glmfit,v 1.4 2015/12/10 22:51:29 zkaufman Exp $'; +set VERSION = 'fsf-glmfit @FS_VERSION@'; set inputargs = ($argv); set ystem = (); set nacfstem = (); diff --git a/fsfast/bin/fsf-kmnacf b/fsfast/bin/fsf-kmnacf index cc63995abef..f9dfca48626 100755 --- a/fsfast/bin/fsf-kmnacf +++ b/fsfast/bin/fsf-kmnacf @@ -19,7 +19,7 @@ # -set VERSION = '$Id: fsf-kmnacf,v 1.4 2015/12/10 22:51:29 zkaufman Exp $' +set VERSION = 'fsf-kmnacf @FS_VERSION@'; set inputargs = ($argv); set kmracfmatfile = (); set arorder = 2; diff --git a/fsfast/bin/fsf-kmracf b/fsfast/bin/fsf-kmracf index 7aa09a20b8a..ca7230f2d92 100755 --- a/fsfast/bin/fsf-kmracf +++ b/fsfast/bin/fsf-kmracf @@ -26,7 +26,7 @@ # -set VERSION = '$Id: fsf-kmracf,v 1.4 2015/12/10 22:51:29 zkaufman Exp $' +set VERSION = 'fsf-kmracf @FS_VERSION@'; set inputargs = ($argv); set racfstem = (); set xmatfile = (); diff --git a/fsfast/bin/fsfast-gui-bug b/fsfast/bin/fsfast-gui-bug index 278395b261b..2be59acd5a9 100755 --- a/fsfast/bin/fsfast-gui-bug +++ b/fsfast/bin/fsfast-gui-bug @@ -1,7 +1,7 @@ #!/bin/tcsh -f # recon-all -set VERSION = '$Id: fsfast-gui-bug,v 1.2 2015/12/10 22:51:29 zkaufman Exp $'; +set VERSION = 'fsfast-gui-bug @FS_VERSION@'; set DoFix = 0; set DoFind = 0; diff --git a/fsfast/bin/fsfeat b/fsfast/bin/fsfeat index 4cef8d7e4b6..1b1665a1835 100755 --- a/fsfast/bin/fsfeat +++ b/fsfast/bin/fsfeat @@ -25,7 +25,7 @@ # -set VERSION = '$Id: fsfeat,v 1.15 2015/12/10 22:51:29 zkaufman Exp $'; +set VERSION = 'fsfeat @FS_VERSION@'; set inputargs = ($argv); set fsf = (); diff --git a/fsfast/bin/fsfeat-sess b/fsfast/bin/fsfeat-sess index 454c3e142c8..9432bfacecd 100755 --- a/fsfast/bin/fsfeat-sess +++ b/fsfast/bin/fsfeat-sess @@ -20,7 +20,7 @@ # -set VERSION = '$Id: fsfeat-sess,v 1.7 2015/12/10 22:51:29 zkaufman Exp $'; +set VERSION = 'fsfeat-sess @FS_VERSION@'; set inputargs = ($argv); set analysis = (); diff --git a/fsfast/bin/fsfeatffx b/fsfast/bin/fsfeatffx index ffc95e1fa9e..9b268d296f0 100755 --- a/fsfast/bin/fsfeatffx +++ b/fsfast/bin/fsfeatffx @@ -2,7 +2,7 @@ # fsfeatffx # -set VERSION = '$Id: fsfeatffx,v 1.4 2015/12/10 22:51:29 zkaufman Exp $' +set VERSION = 'fsfeatffx @FS_VERSION@'; set FeatDirList = (); set GFeatDir = (); diff --git a/fsfast/bin/fsl2par b/fsfast/bin/fsl2par index 06effbc9c01..b9bdf74fe46 100755 --- a/fsfast/bin/fsl2par +++ b/fsfast/bin/fsl2par @@ -1,6 +1,6 @@ #!/bin/csh -f -set VERSION = '$Id: fsl2par,v 1.2 2015/12/10 22:51:29 zkaufman Exp $'; +set VERSION = 'fsl2par @FS_VERSION@'; set inputargs = ($argv); diff --git a/fsfast/bin/fslregister-sess b/fsfast/bin/fslregister-sess index 18c4d943564..ad0bd5189e4 100755 --- a/fsfast/bin/fslregister-sess +++ b/fsfast/bin/fslregister-sess @@ -19,7 +19,7 @@ # -set VERSION = '$Id: fslregister-sess,v 1.3 2015/12/10 22:51:29 zkaufman Exp $'; +set VERSION = 'fslregister-sess @FS_VERSION@'; set inputargs = ($argv); set fsd = bold; diff --git a/fsfast/bin/func2acf b/fsfast/bin/func2acf index 05f5d216d7e..b73dce41252 100755 --- a/fsfast/bin/func2acf +++ b/fsfast/bin/func2acf @@ -20,7 +20,7 @@ set inputargs = ($argv); -set VERSION = '$Id: func2acf,v 1.4 2015/12/10 22:51:29 zkaufman Exp $'; +set VERSION = 'func2acf @FS_VERSION@'; set PrintHelp = 0; set instem = (); diff --git a/fsfast/bin/func2label b/fsfast/bin/func2label index 245f05033ef..d07b9afd343 100755 --- a/fsfast/bin/func2label +++ b/fsfast/bin/func2label @@ -19,7 +19,7 @@ # -set VERSION = '$Id: func2label,v 1.3 2015/12/10 22:51:29 zkaufman Exp $' +set VERSION = 'func2label @FS_VERSION@'; set cmdargv = "$argv"; diff --git a/fsfast/bin/func2roi-sess b/fsfast/bin/func2roi-sess index dbaf121e5b6..84c447ac6c6 100755 --- a/fsfast/bin/func2roi-sess +++ b/fsfast/bin/func2roi-sess @@ -19,7 +19,7 @@ # -set VERSION = '$Id: func2roi-sess,v 1.17 2015/12/10 22:51:29 zkaufman Exp $'; +set VERSION = 'func2roi-sess @FS_VERSION@'; set inputargs = ($argv); diff --git a/fsfast/bin/func2roi-sess-mrun b/fsfast/bin/func2roi-sess-mrun index 41fc7067006..df2948628c2 100755 --- a/fsfast/bin/func2roi-sess-mrun +++ b/fsfast/bin/func2roi-sess-mrun @@ -20,7 +20,7 @@ # -set VERSION = '$Id: func2roi-sess-mrun,v 1.5 2015/12/10 22:51:29 zkaufman Exp $'; +set VERSION = 'func2roi-sess-mrun @FS_VERSION@'; set inputargs = ($argv); set func2roiargs = (); diff --git a/fsfast/bin/func2sph-sess b/fsfast/bin/func2sph-sess index 15589dc524e..9efa6a6e053 100755 --- a/fsfast/bin/func2sph-sess +++ b/fsfast/bin/func2sph-sess @@ -24,7 +24,7 @@ -set VERSION = '$Id: func2sph-sess,v 1.10 2015/12/10 22:51:29 zkaufman Exp $'; +set VERSION = 'func2sph-sess @FS_VERSION@'; set inputargs = ($argv); set analysis = (); diff --git a/fsfast/bin/func2tal b/fsfast/bin/func2tal index 70d88da297e..51bd70feaf3 100755 --- a/fsfast/bin/func2tal +++ b/fsfast/bin/func2tal @@ -19,7 +19,7 @@ # -set FUNC2TAL_VER = '$Id: func2tal,v 1.12 2015/12/10 22:51:29 zkaufman Exp $'; +set FUNC2TAL_VER = 'func2tal @FS_VERSION@'; set inputargs = ($argv) diff --git a/fsfast/bin/func2tal-sess b/fsfast/bin/func2tal-sess index dcb8033c137..cf35e5cc944 100755 --- a/fsfast/bin/func2tal-sess +++ b/fsfast/bin/func2tal-sess @@ -19,7 +19,7 @@ # -set VERSION = '$Id: func2tal-sess,v 1.6 2015/12/10 22:51:29 zkaufman Exp $'; +set VERSION = 'func2tal-sess @FS_VERSION@'; set res = (); set analysis = (); diff --git a/fsfast/bin/funcroi-config b/fsfast/bin/funcroi-config index 13369e4a490..1b89aa2550d 100755 --- a/fsfast/bin/funcroi-config +++ b/fsfast/bin/funcroi-config @@ -17,7 +17,7 @@ # Bug reports: analysis-bugs@nmr.mgh.harvard.edu # -set VERSION = '$Id: funcroi-config,v 1.13 2015/12/10 22:51:29 zkaufman Exp $'; +set VERSION = 'funcroi-config @FS_VERSION@'; set roiconfig = (); set label = (); diff --git a/fsfast/bin/funcroi-sess b/fsfast/bin/funcroi-sess index 0773811a138..38195cbfc46 100755 --- a/fsfast/bin/funcroi-sess +++ b/fsfast/bin/funcroi-sess @@ -19,7 +19,7 @@ # -set VERSION = '$Id: funcroi-sess,v 1.5 2015/12/10 22:51:29 zkaufman Exp $'; +set VERSION = 'funcroi-sess @FS_VERSION@'; set inputargs = ($argv); set analysis = (); diff --git a/fsfast/bin/funcroi-table-sess b/fsfast/bin/funcroi-table-sess index a80f47ff0fa..ad553e16d6d 100755 --- a/fsfast/bin/funcroi-table-sess +++ b/fsfast/bin/funcroi-table-sess @@ -19,7 +19,7 @@ # -set VERSION = '$Id: funcroi-table-sess,v 1.7 2015/12/10 22:51:29 zkaufman Exp $'; +set VERSION = 'funcroi-table-sess @FS_VERSION@'; set inputargs = ($argv); diff --git a/fsfast/bin/functcvm b/fsfast/bin/functcvm index b1373f82fba..10b637a0b18 100755 --- a/fsfast/bin/functcvm +++ b/fsfast/bin/functcvm @@ -20,7 +20,7 @@ set inputargs = ($argv); -set VERSION = '$Id: functcvm,v 1.3 2015/12/10 22:51:29 zkaufman Exp $'; +set VERSION = 'functcvm @FS_VERSION@'; set funcstem = (); set xmatfile = (); diff --git a/fsfast/bin/functcvm-sess b/fsfast/bin/functcvm-sess index b4a7f7c7726..b43d60ed074 100755 --- a/fsfast/bin/functcvm-sess +++ b/fsfast/bin/functcvm-sess @@ -20,7 +20,7 @@ set inputargs = ($argv); -set VERSION = '$Id: functcvm-sess,v 1.3 2015/12/10 22:51:29 zkaufman Exp $'; +set VERSION = 'functcvm-sess @FS_VERSION@'; set SessList = (); set fsd = "bold"; diff --git a/fsfast/bin/functwf-sess b/fsfast/bin/functwf-sess index 560c0d35491..05b2b4e6f54 100755 --- a/fsfast/bin/functwf-sess +++ b/fsfast/bin/functwf-sess @@ -19,7 +19,7 @@ # -set VERSION = '$Id: functwf-sess,v 1.3 2015/12/10 22:51:29 zkaufman Exp $'; +set VERSION = 'functwf-sess @FS_VERSION@'; set inputargs = ($argv); set DateStr = "`date '+%y%m%d%H%M'`" diff --git a/fsfast/bin/fwhmest b/fsfast/bin/fwhmest index 5fddbd6ae10..7f7f1681fcf 100755 --- a/fsfast/bin/fwhmest +++ b/fsfast/bin/fwhmest @@ -20,7 +20,7 @@ set inputargs = ($argv); -set VERSION = '$Id' +set VERSION = 'fwhmest @FS_VERSION@'; set PrintHelp = 0; set InSpec = (); diff --git a/fsfast/bin/fwhmest-sess b/fsfast/bin/fwhmest-sess index 0c2adc19a1e..11de30a2b18 100755 --- a/fsfast/bin/fwhmest-sess +++ b/fsfast/bin/fwhmest-sess @@ -20,7 +20,7 @@ set inputargs = ($argv); -set VERSION = '$Id' +set VERSION = 'fwhmest-sess @FS_VERSION@'; set PrintHelp = 0; set nolog = 0; diff --git a/fsfast/bin/getana b/fsfast/bin/getana index d294f9c0565..c62dd06ce7a 100755 --- a/fsfast/bin/getana +++ b/fsfast/bin/getana @@ -18,7 +18,7 @@ # Bug reports: analysis-bugs@nmr.mgh.harvard.edu # -set VERSION = '$Id: getana,v 1.18 2015/12/10 22:51:29 zkaufman Exp $'; +set VERSION = 'getana @FS_VERSION@'; set analysis = (); set tag = (); diff --git a/fsfast/bin/getbext b/fsfast/bin/getbext index ba1c3bb841b..737493885fb 100755 --- a/fsfast/bin/getbext +++ b/fsfast/bin/getbext @@ -21,7 +21,7 @@ source $FREESURFER_HOME/sources.csh if($#argv != 1) then echo "USAGE: getbext stem" - echo '$Id: getbext,v 1.3 2015/12/10 22:51:29 zkaufman Exp $'; + echo 'getbext @FS_VERSION@'; exit 1; endif diff --git a/fsfast/bin/getendian b/fsfast/bin/getendian index ba960a58c69..7d736435949 100755 --- a/fsfast/bin/getendian +++ b/fsfast/bin/getendian @@ -21,7 +21,6 @@ source $FREESURFER_HOME/sources.csh if($#argv != 1) then echo "USAGE: getendian stem " - echo '$Id' exit 1; endif diff --git a/fsfast/bin/getfirstsliceno b/fsfast/bin/getfirstsliceno index 83872c01237..64d5af958af 100755 --- a/fsfast/bin/getfirstsliceno +++ b/fsfast/bin/getfirstsliceno @@ -21,7 +21,7 @@ source $FREESURFER_HOME/sources.csh if($#argv != 1) then echo "USAGE: getfirstsliceno stem" - echo '$Id: getfirstsliceno,v 1.3 2015/12/10 22:51:29 zkaufman Exp $'; + echo 'getfirstsliceno @FS_VERSION@'; exit 1; endif diff --git a/fsfast/bin/getlastsliceno b/fsfast/bin/getlastsliceno index de6e013a5b9..b92ddab02d3 100755 --- a/fsfast/bin/getlastsliceno +++ b/fsfast/bin/getlastsliceno @@ -21,7 +21,7 @@ source $FREESURFER_HOME/sources.csh if($#argv != 1) then echo "USAGE: getlastsliceno stem" - echo '$Id: getlastsliceno,v 1.3 2015/12/10 22:51:29 zkaufman Exp $'; + echo 'getlastsliceno @FS_VERSION@'; exit 1; endif diff --git a/fsfast/bin/getncols b/fsfast/bin/getncols index 2f8dab6b142..273d8f2cf4b 100755 --- a/fsfast/bin/getncols +++ b/fsfast/bin/getncols @@ -21,7 +21,6 @@ source $FREESURFER_HOME/sources.csh if($#argv != 1) then echo "USAGE: getncols stem " - echo '$Id' exit 1; endif diff --git a/fsfast/bin/getnframes b/fsfast/bin/getnframes index 1ccf1f4e39c..1b1ba7fe8fd 100755 --- a/fsfast/bin/getnframes +++ b/fsfast/bin/getnframes @@ -21,7 +21,7 @@ source $FREESURFER_HOME/sources.csh if($#argv != 1) then echo "USAGE: getnframes stem|fname " - echo '$Id: getnframes,v 1.6 2015/12/10 22:51:29 zkaufman Exp $' + echo 'getnframes @FS_VERSION@' exit 1; endif diff --git a/fsfast/bin/getnrows b/fsfast/bin/getnrows index ec9ca216598..51f05401531 100755 --- a/fsfast/bin/getnrows +++ b/fsfast/bin/getnrows @@ -21,7 +21,6 @@ source $FREESURFER_HOME/sources.csh if($#argv != 1) then echo "USAGE: getnrows stem " - echo '$Id' exit 1; endif diff --git a/fsfast/bin/getnslices b/fsfast/bin/getnslices index 430b4714ed6..e31aca5f67d 100755 --- a/fsfast/bin/getnslices +++ b/fsfast/bin/getnslices @@ -21,7 +21,7 @@ source $FREESURFER_HOME/sources.csh if($#argv != 1 && $#argv != 2) then echo "USAGE: getnslices stem " - echo '$Id: getnslices,v 1.3 2015/12/10 22:51:29 zkaufman Exp $'; + echo 'getnslices @FS_VERSION@'; exit 1; endif diff --git a/fsfast/bin/getsliceno b/fsfast/bin/getsliceno index 4ca59d0aaf0..ee57914ae0c 100755 --- a/fsfast/bin/getsliceno +++ b/fsfast/bin/getsliceno @@ -19,7 +19,7 @@ # source $FREESURFER_HOME/sources.csh -set VER = '$Id: getsliceno,v 1.3 2015/12/10 22:51:29 zkaufman Exp $'; +set VER = 'getsliceno @FS_VERSION@'; if($#argv != 1) then echo "USAGE getsliceno bfilename" diff --git a/fsfast/bin/getslicestr b/fsfast/bin/getslicestr index b6e72704b3f..c7ffdbf1233 100755 --- a/fsfast/bin/getslicestr +++ b/fsfast/bin/getslicestr @@ -19,7 +19,7 @@ # source $FREESURFER_HOME/sources.csh -set VER = '$Id: getslicestr,v 1.3 2015/12/10 22:51:30 zkaufman Exp $'; +set VER = 'getslicestr @FS_VERSION@'; if($#argv != 1) then echo "USAGE getslicestr bfilename" diff --git a/fsfast/bin/getspacetype b/fsfast/bin/getspacetype index 2530f469617..2b09d8b638e 100755 --- a/fsfast/bin/getspacetype +++ b/fsfast/bin/getspacetype @@ -21,7 +21,7 @@ # source $FREESURFER_HOME/sources.csh -set VERSION = '$Id: getspacetype,v 1.3 2015/12/10 22:51:30 zkaufman Exp $'; +set VERSION = 'getspacetype @FS_VERSION@'; if($#argv != 1) then echo "USAGE: getspacetype spacename" diff --git a/fsfast/bin/getstem b/fsfast/bin/getstem index b48a691ee64..7b7b4c483bf 100755 --- a/fsfast/bin/getstem +++ b/fsfast/bin/getstem @@ -24,7 +24,7 @@ # source $FREESURFER_HOME/sources.csh -set VER = '$Id: getstem,v 1.3 2015/12/10 22:51:30 zkaufman Exp $'; +set VER = 'getstem @FS_VERSION@'; if($#argv != 1) then echo "USAGE getstem bfilename" diff --git a/fsfast/bin/ghostdet b/fsfast/bin/ghostdet index 89a6e5c7141..331304bf5cc 100755 --- a/fsfast/bin/ghostdet +++ b/fsfast/bin/ghostdet @@ -19,7 +19,7 @@ # -set VERSION = '$Id: ghostdet,v 1.9 2015/12/10 22:51:30 zkaufman Exp $'; +set VERSION = 'ghostdet @FS_VERSION@'; set inputargs = ($argv); setenv FSLOUTPUTTYPE NIFTI diff --git a/fsfast/bin/ghostdet-sess b/fsfast/bin/ghostdet-sess index e7bef817e73..41c56a93e2c 100755 --- a/fsfast/bin/ghostdet-sess +++ b/fsfast/bin/ghostdet-sess @@ -19,7 +19,7 @@ # -set VERSION = '$Id: ghostdet-sess,v 1.3 2015/12/10 22:51:30 zkaufman Exp $'; +set VERSION = 'ghostdet-sess @FS_VERSION@'; set cmdargs = ($argv); diff --git a/fsfast/bin/glmest b/fsfast/bin/glmest index dd075e7cd3d..3d5c07ceb5b 100755 --- a/fsfast/bin/glmest +++ b/fsfast/bin/glmest @@ -20,7 +20,7 @@ set inputargs = ($argv); -set VERSION = '$Id: glmest,v 1.3 2015/12/10 22:51:30 zkaufman Exp $'; +set VERSION = 'glmest @FS_VERSION@'; set PrintHelp = 0; set instem = (); diff --git a/fsfast/bin/glmfourier b/fsfast/bin/glmfourier index e1fac392b0c..80ec7f9629e 100755 --- a/fsfast/bin/glmfourier +++ b/fsfast/bin/glmfourier @@ -19,7 +19,7 @@ # -set VERSION = '$Id: glmfourier,v 1.8 2015/12/10 22:51:30 zkaufman Exp $' +set VERSION = 'glmfourier @FS_VERSION@'; set inputargs = ($argv); set ystem = (); set period = (); diff --git a/fsfast/bin/glmfourier-sess b/fsfast/bin/glmfourier-sess index fccb9d29a47..63d1c491556 100755 --- a/fsfast/bin/glmfourier-sess +++ b/fsfast/bin/glmfourier-sess @@ -19,7 +19,7 @@ # -set VERSION = '$Id: glmfourier-sess,v 1.5 2015/12/10 22:51:30 zkaufman Exp $'; +set VERSION = 'glmfourier-sess @FS_VERSION@'; set analysis = (); set monly = (); set MLF = (); diff --git a/fsfast/bin/glmstats b/fsfast/bin/glmstats index 86da094da53..f923e617909 100755 --- a/fsfast/bin/glmstats +++ b/fsfast/bin/glmstats @@ -20,7 +20,7 @@ set inputargs = ($argv); -set VERSION = '$Id: glmstats,v 1.3 2015/12/10 22:51:30 zkaufman Exp $'; +set VERSION = 'glmstats @FS_VERSION@'; set PrintHelp = 0; set betastem = (); diff --git a/fsfast/bin/groupreg-sess b/fsfast/bin/groupreg-sess index fff16a9c531..2e981d08c77 100755 --- a/fsfast/bin/groupreg-sess +++ b/fsfast/bin/groupreg-sess @@ -19,7 +19,7 @@ # -set VERSION = '$Id: groupreg-sess,v 1.10 2015/12/10 22:51:30 zkaufman Exp $'; +set VERSION = 'groupreg-sess @FS_VERSION@'; set inputargs = ($argv); diff --git a/fsfast/bin/inorm b/fsfast/bin/inorm index 526cdd58b7e..e3c7db78775 100755 --- a/fsfast/bin/inorm +++ b/fsfast/bin/inorm @@ -22,7 +22,7 @@ set inputargs = ($argv); -set INORM_VER = '$Id: inorm,v 1.5 2015/12/10 22:51:30 zkaufman Exp $'; +set INORM_VER = 'inorm @FS_VERSION@'; set n = `echo $argv | grep version | wc -l` if($n != 0) then diff --git a/fsfast/bin/inorm-sess b/fsfast/bin/inorm-sess index 407b78b9176..5858b2d25bc 100755 --- a/fsfast/bin/inorm-sess +++ b/fsfast/bin/inorm-sess @@ -19,7 +19,7 @@ # -set VERSION = '$Id: inorm-sess,v 1.11 2015/12/10 22:51:30 zkaufman Exp $' +set VERSION = 'inorm-sess @FS_VERSION@'; set cmdargs = ($argv); diff --git a/fsfast/bin/inorm2 b/fsfast/bin/inorm2 index ebea9c26dda..fb5c843c233 100755 --- a/fsfast/bin/inorm2 +++ b/fsfast/bin/inorm2 @@ -19,7 +19,7 @@ # -set VERSION = '$Id: inorm2,v 1.8 2015/12/10 22:51:30 zkaufman Exp $'; +set VERSION = 'inorm2 @FS_VERSION@'; set cmdargs = ($argv); diff --git a/fsfast/bin/inorm3 b/fsfast/bin/inorm3 index 07410813e0b..5af0ebbbc8e 100755 --- a/fsfast/bin/inorm3 +++ b/fsfast/bin/inorm3 @@ -18,7 +18,7 @@ # Bug reports: analysis-bugs@nmr.mgh.harvard.edu # -set VERSION = '$Id: inorm3,v 1.3 2015/12/10 22:51:30 zkaufman Exp $'; +set VERSION = 'inorm3 @FS_VERSION@'; set cmdargs = ($argv); diff --git a/fsfast/bin/intergroupavg-sess b/fsfast/bin/intergroupavg-sess index 5d6d30e7c10..37f15251f76 100755 --- a/fsfast/bin/intergroupavg-sess +++ b/fsfast/bin/intergroupavg-sess @@ -19,7 +19,7 @@ # -set VERSION = '$Id: intergroupavg-sess,v 1.5 2015/12/10 22:51:30 zkaufman Exp $' +set VERSION = 'intergroupavg-sess @FS_VERSION@'; set inputargs = ($argv); diff --git a/fsfast/bin/ipfsl b/fsfast/bin/ipfsl index 05f3bf1d270..e40a1ebcdd4 100755 --- a/fsfast/bin/ipfsl +++ b/fsfast/bin/ipfsl @@ -19,7 +19,7 @@ # -set VERSION = '$Id: ipfsl,v 1.10 2015/12/10 22:51:30 zkaufman Exp $'; +set VERSION = 'ipfsl @FS_VERSION@'; set inputargs = ($argv); diff --git a/fsfast/bin/isroiavg b/fsfast/bin/isroiavg index a1fb88b12a6..589032795d7 100755 --- a/fsfast/bin/isroiavg +++ b/fsfast/bin/isroiavg @@ -19,7 +19,7 @@ # -set ISROIAVG_VER = '$Id: isroiavg,v 1.3 2015/12/10 22:51:30 zkaufman Exp $' +set ISROIAVG_VER = 'isroiavg @FS_VERSION@' if ( $#argv < 4 ) then echo "USAGE: isroiavg [-options] -i infile1 -i infile2 -o outstem"; diff --git a/fsfast/bin/isxavg-fe b/fsfast/bin/isxavg-fe index cec30bd2339..b077741cc4c 100755 --- a/fsfast/bin/isxavg-fe +++ b/fsfast/bin/isxavg-fe @@ -22,7 +22,7 @@ # -set ISXAVG_FE_VER = '$Id: isxavg-fe,v 1.4 2015/12/10 22:51:30 zkaufman Exp $'; +set ISXAVG_FE_VER = 'isxavg-fe @FS_VERSION@'; set fmrianalver = `cat $FMRI_ANALYSIS_DIR/docs/version`; diff --git a/fsfast/bin/isxavg-fe-abb-sess b/fsfast/bin/isxavg-fe-abb-sess index 92593a9475d..1d5aac6653c 100755 --- a/fsfast/bin/isxavg-fe-abb-sess +++ b/fsfast/bin/isxavg-fe-abb-sess @@ -19,7 +19,7 @@ # -set VERSION = '$Id: isxavg-fe-abb-sess,v 1.5 2015/12/10 22:51:30 zkaufman Exp $'; +set VERSION = 'isxavg-fe-abb-sess @FS_VERSION@'; set inputargs = ($argv); diff --git a/fsfast/bin/isxavg-fe-sess b/fsfast/bin/isxavg-fe-sess index b2750695d1e..940b99e0985 100755 --- a/fsfast/bin/isxavg-fe-sess +++ b/fsfast/bin/isxavg-fe-sess @@ -19,7 +19,7 @@ # -set VERSION = '$Id: isxavg-fe-sess,v 1.5 2015/12/10 22:51:30 zkaufman Exp $'; +set VERSION = 'isxavg-fe-sess @FS_VERSION@'; set inputargs = ($argv); diff --git a/fsfast/bin/isxavg-fe-sess-1.3 b/fsfast/bin/isxavg-fe-sess-1.3 index 8a13c3d3610..904cb9034c4 100755 --- a/fsfast/bin/isxavg-fe-sess-1.3 +++ b/fsfast/bin/isxavg-fe-sess-1.3 @@ -19,7 +19,7 @@ # -set VERSION = '$Id: isxavg-fe-sess-1.3,v 1.4 2015/12/10 22:51:30 zkaufman Exp $'; +set VERSION = 'isxavg-fe-sess-1.3 @FS_VERSION@'; set inputargs = "$argv"; diff --git a/fsfast/bin/isxavg-re b/fsfast/bin/isxavg-re index 3854d6697eb..7d32da20c3b 100755 --- a/fsfast/bin/isxavg-re +++ b/fsfast/bin/isxavg-re @@ -21,7 +21,7 @@ set inputargs = ($argv); set fmrianalver = `cat $FMRI_ANALYSIS_DIR/docs/version`; -set VERSION = '$Id: isxavg-re,v 1.5 2015/12/10 22:51:30 zkaufman Exp $' +set VERSION = 'isxavg-re @FS_VERSION@'; # Set Default Values # set firstslice = 0; diff --git a/fsfast/bin/isxavg-re-abb-sess b/fsfast/bin/isxavg-re-abb-sess index f394ba698cc..39f1653fa33 100755 --- a/fsfast/bin/isxavg-re-abb-sess +++ b/fsfast/bin/isxavg-re-abb-sess @@ -19,7 +19,7 @@ # -set VERSION = '$Id: isxavg-re-abb-sess,v 1.6 2015/12/10 22:51:30 zkaufman Exp $'; +set VERSION = 'isxavg-re-abb-sess @FS_VERSION@'; set inputargs = ($argv); diff --git a/fsfast/bin/isxavg-re-sess b/fsfast/bin/isxavg-re-sess index 92f83a2ffd9..a65f626da09 100755 --- a/fsfast/bin/isxavg-re-sess +++ b/fsfast/bin/isxavg-re-sess @@ -19,7 +19,7 @@ # -set VERSION = '$Id: isxavg-re-sess,v 1.9 2015/12/10 22:51:30 zkaufman Exp $' +set VERSION = 'isxavg-re-sess @FS_VERSION@'; set cmdargs = ($argv); set analysis = (); diff --git a/fsfast/bin/isxconcat-sess b/fsfast/bin/isxconcat-sess index cf1b7bd6d4e..a23d4fe36c2 100755 --- a/fsfast/bin/isxconcat-sess +++ b/fsfast/bin/isxconcat-sess @@ -19,7 +19,7 @@ # -set VERSION = '$Id: isxconcat-sess,v 1.72 2015/12/10 22:51:30 zkaufman Exp $' +set VERSION = 'isxconcat-sess @FS_VERSION@'; set inputargs = ($argv); diff --git a/fsfast/bin/isxconcat0-sess b/fsfast/bin/isxconcat0-sess index dfe1dd01de1..618a86d6ef0 100755 --- a/fsfast/bin/isxconcat0-sess +++ b/fsfast/bin/isxconcat0-sess @@ -19,7 +19,7 @@ # -set VERSION = '$Id: isxconcat0-sess,v 1.26 2015/12/10 22:51:30 zkaufman Exp $'; +set VERSION = 'isxconcat0-sess @FS_VERSION@'; set inputargs = ($argv); diff --git a/fsfast/bin/kmacf-sess b/fsfast/bin/kmacf-sess index 9d0071f761b..bc9d3e87b94 100755 --- a/fsfast/bin/kmacf-sess +++ b/fsfast/bin/kmacf-sess @@ -19,7 +19,7 @@ # -set VERSION = '$Id: kmacf-sess,v 1.6 2015/12/10 22:51:30 zkaufman Exp $'; +set VERSION = 'kmacf-sess @FS_VERSION@'; set inputargs = ($argv); set DateStr = "`date '+%y%m%d%H%M'`" diff --git a/fsfast/bin/kmacfcond-sess b/fsfast/bin/kmacfcond-sess index c6b248a51e9..0990ff90f56 100755 --- a/fsfast/bin/kmacfcond-sess +++ b/fsfast/bin/kmacfcond-sess @@ -19,7 +19,7 @@ # -set VERSION = '$Id: kmacfcond-sess,v 1.3 2015/12/10 22:51:30 zkaufman Exp $'; +set VERSION = 'kmacfcond-sess @FS_VERSION@'; set inputargs = ($argv); set DateStr = "`date '+%y%m%d%H%M'`" diff --git a/fsfast/bin/kmacfwht-sess b/fsfast/bin/kmacfwht-sess index 8586aa2dc02..f3091a3df62 100755 --- a/fsfast/bin/kmacfwht-sess +++ b/fsfast/bin/kmacfwht-sess @@ -19,7 +19,7 @@ # -set VERSION = '$Id: kmacfwht-sess,v 1.4 2015/12/10 22:51:30 zkaufman Exp $'; +set VERSION = 'kmacfwht-sess @FS_VERSION@'; set inputargs = ($argv); set DateStr = "`date '+%y%m%d%H%M'`" diff --git a/fsfast/bin/ksgrinder b/fsfast/bin/ksgrinder index fc3c7c165f0..731dfb9d79a 100755 --- a/fsfast/bin/ksgrinder +++ b/fsfast/bin/ksgrinder @@ -27,7 +27,7 @@ endif set inputargs = ($argv); set fmrianalver = `cat $FMRI_ANALYSIS_DIR/docs/version`; -set VERSION = '$Id: ksgrinder,v 1.3 2015/12/10 22:51:30 zkaufman Exp $' +set VERSION = 'ksgrinder @FS_VERSION@'; ## If there are no arguments, just print useage and exit ## if ( $#argv == 0 ) goto usage_exit; diff --git a/fsfast/bin/ksgrinder-sess b/fsfast/bin/ksgrinder-sess index 5b01ce45f1d..b0e67a857bd 100755 --- a/fsfast/bin/ksgrinder-sess +++ b/fsfast/bin/ksgrinder-sess @@ -25,7 +25,7 @@ if($os != "SunOS") then exit 1; endif -set VERSION = '$Id: ksgrinder-sess,v 1.4 2015/12/10 22:51:30 zkaufman Exp $'; +set VERSION = 'ksgrinder-sess @FS_VERSION@'; set inputargs = ($argv); diff --git a/fsfast/bin/latgrinder-sess b/fsfast/bin/latgrinder-sess index 2bd703506d6..5a4263d3bc4 100755 --- a/fsfast/bin/latgrinder-sess +++ b/fsfast/bin/latgrinder-sess @@ -19,7 +19,7 @@ # -set VERSION = '$Id: latgrinder-sess,v 1.7 2015/12/10 22:51:30 zkaufman Exp $' +set VERSION = 'latgrinder-sess @FS_VERSION@'; set inputargs = ($argv); diff --git a/fsfast/bin/latgroup-sess b/fsfast/bin/latgroup-sess index e72955e60f0..e6be6b399e6 100755 --- a/fsfast/bin/latgroup-sess +++ b/fsfast/bin/latgroup-sess @@ -19,7 +19,7 @@ # -set VERSION = '$Id: latgroup-sess,v 1.5 2015/12/10 22:51:30 zkaufman Exp $'; +set VERSION = 'latgroup-sess @FS_VERSION@'; set inputargs = ($argv); diff --git a/fsfast/bin/lrst-blk b/fsfast/bin/lrst-blk index 6f530cea058..9b76addc7ac 100755 --- a/fsfast/bin/lrst-blk +++ b/fsfast/bin/lrst-blk @@ -19,7 +19,7 @@ # -set VERSION = '$Id: lrst-blk,v 1.4 2015/12/10 22:51:30 zkaufman Exp $'; +set VERSION = 'lrst-blk @FS_VERSION@'; set inputargs = ($argv); set DateStr = "`date '+%y%m%d%H%M'`" diff --git a/fsfast/bin/lrst-blk-sess b/fsfast/bin/lrst-blk-sess index cb06c7853b9..e79f355e01c 100755 --- a/fsfast/bin/lrst-blk-sess +++ b/fsfast/bin/lrst-blk-sess @@ -19,7 +19,7 @@ # -set VERSION = '$Id: lrst-blk-sess,v 1.3 2015/12/10 22:51:30 zkaufman Exp $'; +set VERSION = 'lrst-blk-sess @FS_VERSION@'; set inputargs = ($argv); set DateStr = "`date '+%y%m%d%H%M'`" diff --git a/fsfast/bin/mc-afni b/fsfast/bin/mc-afni index 7f30416d991..5c377b4c773 100755 --- a/fsfast/bin/mc-afni +++ b/fsfast/bin/mc-afni @@ -19,7 +19,7 @@ # -set VERSION = '$Id: mc-afni,v 1.8 2015/12/10 22:51:30 zkaufman Exp $'; +set VERSION = 'mc-afni @FS_VERSION@'; unset verbose ; diff --git a/fsfast/bin/mc-afni2 b/fsfast/bin/mc-afni2 index fa1ce3a0a00..608d21728bc 100755 --- a/fsfast/bin/mc-afni2 +++ b/fsfast/bin/mc-afni2 @@ -19,7 +19,7 @@ # -set VERSION = '$Id: mc-afni2,v 1.10 2015/12/10 22:51:30 zkaufman Exp $'; +set VERSION = 'mc-afni2 @FS_VERSION@'; set invol = (); set outvol = (); diff --git a/fsfast/bin/mc-bbr b/fsfast/bin/mc-bbr index 641ee8e0c5c..18671c37b05 100755 --- a/fsfast/bin/mc-bbr +++ b/fsfast/bin/mc-bbr @@ -22,7 +22,7 @@ # Sample to anat # Sample to tal -set VERSION = '$Id: mc-bbr,v 1.6 2015/12/10 22:51:30 zkaufman Exp $'; +set VERSION = 'mc-bbr @FS_VERSION@'; set invol = (); set outvol = (); diff --git a/fsfast/bin/mc-sess b/fsfast/bin/mc-sess index 395de32e317..829a572e4d3 100755 --- a/fsfast/bin/mc-sess +++ b/fsfast/bin/mc-sess @@ -19,7 +19,7 @@ # -set VERSION = '$Id: mc-sess,v 1.26 2015/12/10 22:51:30 zkaufman Exp $' +set VERSION = 'mc-sess @FS_VERSION@'; set cmdargs = ($argv); set fsd = "bold"; diff --git a/fsfast/bin/mcdat2mcextreg b/fsfast/bin/mcdat2mcextreg index e08888ea803..2b96d7662d0 100755 --- a/fsfast/bin/mcdat2mcextreg +++ b/fsfast/bin/mcdat2mcextreg @@ -1,7 +1,7 @@ #!/bin/tcsh -f # mcdat2extreg -set VERSION = '$Id: mcdat2mcextreg,v 1.3 2015/12/10 22:51:30 zkaufman Exp $'; +set VERSION = 'mcdat2mcextreg @FS_VERSION@'; set mcdat = (); set extreg = (); diff --git a/fsfast/bin/mcparams2extreg b/fsfast/bin/mcparams2extreg index 839dbe427f6..816010d5151 100755 --- a/fsfast/bin/mcparams2extreg +++ b/fsfast/bin/mcparams2extreg @@ -22,7 +22,7 @@ set inputargs = ($argv); -set VERSION = '$Id: mcparams2extreg,v 1.11 2015/12/10 22:51:30 zkaufman Exp $'; +set VERSION = 'mcparams2extreg @FS_VERSION@'; set PrintHelp = 0; diff --git a/fsfast/bin/meanimg b/fsfast/bin/meanimg index fa7b1624add..d43cefe6e84 100755 --- a/fsfast/bin/meanimg +++ b/fsfast/bin/meanimg @@ -19,7 +19,7 @@ # -set VERSION = '$Id: meanimg,v 1.3 2015/12/10 22:51:30 zkaufman Exp $'; +set VERSION = 'meanimg @FS_VERSION@'; set firstslice = 0; set instems = (); diff --git a/fsfast/bin/mergeanalyses-sess b/fsfast/bin/mergeanalyses-sess index 8a10313822d..40dbc3a53ae 100755 --- a/fsfast/bin/mergeanalyses-sess +++ b/fsfast/bin/mergeanalyses-sess @@ -19,7 +19,7 @@ # -set VERSION = '$Id: mergeanalyses-sess,v 1.3 2015/12/10 22:51:30 zkaufman Exp $'; +set VERSION = 'mergeanalyses-sess @FS_VERSION@'; set inputargs = ($argv); set DateStr = "`date '+%y%m%d%H%M'`" diff --git a/fsfast/bin/mergecontrasts-sess b/fsfast/bin/mergecontrasts-sess index 1ee4e879baf..9e8a7d5e6ae 100755 --- a/fsfast/bin/mergecontrasts-sess +++ b/fsfast/bin/mergecontrasts-sess @@ -19,7 +19,7 @@ # -set VERSION = '$Id: mergecontrasts-sess,v 1.8 2015/12/10 22:51:30 zkaufman Exp $'; +set VERSION = 'mergecontrasts-sess @FS_VERSION@'; set inputargs = ($argv); diff --git a/fsfast/bin/mergecontrasts-xsess b/fsfast/bin/mergecontrasts-xsess index 6b0147c2a66..1c23166e45a 100755 --- a/fsfast/bin/mergecontrasts-xsess +++ b/fsfast/bin/mergecontrasts-xsess @@ -19,7 +19,7 @@ # -set VERSION = '$Id: mergecontrasts-xsess,v 1.7 2015/12/10 22:51:30 zkaufman Exp $'; +set VERSION = 'mergecontrasts-xsess @FS_VERSION@'; set inputargs = ($argv); diff --git a/fsfast/bin/mkanalysis-sess b/fsfast/bin/mkanalysis-sess index eca40568010..3615435672d 100755 --- a/fsfast/bin/mkanalysis-sess +++ b/fsfast/bin/mkanalysis-sess @@ -19,7 +19,7 @@ # Bug reports: analysis-bugs@nmr.mgh.harvard.edu # -set VERSION = '$Id: mkanalysis-sess,v 1.78 2015/12/10 22:51:30 zkaufman Exp $'; +set VERSION = 'mkanalysis-sess @FS_VERSION@'; set analysis = (); set TR = (); diff --git a/fsfast/bin/mkanalysis-sess.old b/fsfast/bin/mkanalysis-sess.old index 3e96e0e124c..bfbef3050a5 100755 --- a/fsfast/bin/mkanalysis-sess.old +++ b/fsfast/bin/mkanalysis-sess.old @@ -19,7 +19,7 @@ # Bug reports: analysis-bugs@nmr.mgh.harvard.edu # -set VERSION = '$Id: mkanalysis-sess.old,v 1.4 2015/12/10 22:51:30 zkaufman Exp $'; +set VERSION = 'mkanalysis-sess.old @FS_VERSION@'; # These two should agree with values in mkanalysis_gui.m set DefaultTER = .050; # 50 ms diff --git a/fsfast/bin/mkblockpar b/fsfast/bin/mkblockpar index e10e40ab952..822bce62d7e 100755 --- a/fsfast/bin/mkblockpar +++ b/fsfast/bin/mkblockpar @@ -19,7 +19,7 @@ # -set VERSION = '$Id: mkblockpar,v 1.6 2015/12/10 22:51:30 zkaufman Exp $'; +set VERSION = 'mkblockpar @FS_VERSION@'; ##### Print out version info, if needed #### set n = `echo $argv | grep version | wc -l` diff --git a/fsfast/bin/mkbrainmask b/fsfast/bin/mkbrainmask index 04a7fb026ee..f7f6e8289a7 100755 --- a/fsfast/bin/mkbrainmask +++ b/fsfast/bin/mkbrainmask @@ -1,7 +1,7 @@ #!/bin/tcsh -f # mkbrainmask -set VERSION = '$Id: mkbrainmask,v 1.17 2015/12/10 22:51:30 zkaufman Exp $'; +set VERSION = 'mkbrainmask @FS_VERSION@'; set movmask = (); set reg = (); diff --git a/fsfast/bin/mkbrainmask-sess b/fsfast/bin/mkbrainmask-sess index 2a49b1b2423..5e4d4130495 100755 --- a/fsfast/bin/mkbrainmask-sess +++ b/fsfast/bin/mkbrainmask-sess @@ -19,7 +19,7 @@ # -set VERSION = '$Id: mkbrainmask-sess,v 1.26 2015/12/10 22:51:30 zkaufman Exp $' +set VERSION = 'mkbrainmask-sess @FS_VERSION@'; set cmdargs = ($argv); diff --git a/fsfast/bin/mkbrainmask.fsl b/fsfast/bin/mkbrainmask.fsl index bd66546b6e4..3c76a4d6a30 100755 --- a/fsfast/bin/mkbrainmask.fsl +++ b/fsfast/bin/mkbrainmask.fsl @@ -21,7 +21,7 @@ # -set VERSION = '$Id: mkbrainmask.fsl,v 1.2 2015/12/10 22:51:30 zkaufman Exp $'; +set VERSION = 'mkbrainmask.fsl @FS_VERSION@'; set inputargs = ($argv); diff --git a/fsfast/bin/mkcmanova-sess b/fsfast/bin/mkcmanova-sess index 9452bd52be1..a433ccb4f78 100755 --- a/fsfast/bin/mkcmanova-sess +++ b/fsfast/bin/mkcmanova-sess @@ -18,7 +18,7 @@ # Bug reports: analysis-bugs@nmr.mgh.harvard.edu # -set VERSION = '$Id: mkcmanova-sess,v 1.4 2015/12/10 22:51:30 zkaufman Exp $' +set VERSION = 'mkcmanova-sess @FS_VERSION@'; set inputargs = ($argv); set DateStr = "`date '+%y%m%d%H%M'`" diff --git a/fsfast/bin/mkcontrast b/fsfast/bin/mkcontrast index a9ac385118f..a9323ed2a26 100755 --- a/fsfast/bin/mkcontrast +++ b/fsfast/bin/mkcontrast @@ -19,7 +19,7 @@ # -set MKCONTRAST_VER = '$Id: mkcontrast,v 1.12 2015/12/10 22:51:30 zkaufman Exp $'; +set MKCONTRAST_VER = 'mkcontrast @FS_VERSION@'; set CorrIdeal = 0; set monly = 0; diff --git a/fsfast/bin/mkcontrast-sess b/fsfast/bin/mkcontrast-sess index fa1f3403933..511aee7b807 100755 --- a/fsfast/bin/mkcontrast-sess +++ b/fsfast/bin/mkcontrast-sess @@ -19,7 +19,7 @@ # -set VERSION = '$Id: mkcontrast-sess,v 1.19 2015/12/10 22:51:30 zkaufman Exp $' +set VERSION = 'mkcontrast-sess @FS_VERSION@'; set cmdargs = ($argv); set contrast = (); diff --git a/fsfast/bin/mkcontrast2 b/fsfast/bin/mkcontrast2 index 4fd0701f4ca..fb7fe3e9938 100755 --- a/fsfast/bin/mkcontrast2 +++ b/fsfast/bin/mkcontrast2 @@ -19,7 +19,7 @@ # -set MKCONTRAST_VER = '$Id: mkcontrast2,v 1.3 2016/03/11 23:46:48 greve Exp $'; +set MKCONTRAST_VER = 'mkcontrast2 @FS_VERSION@'; set CorrIdeal = 0; set monly = 0; diff --git a/fsfast/bin/mkdesignmtx b/fsfast/bin/mkdesignmtx index 9842ebad137..07d2c0ee651 100755 --- a/fsfast/bin/mkdesignmtx +++ b/fsfast/bin/mkdesignmtx @@ -19,7 +19,7 @@ # -set VERSION = '$Id: mkdesignmtx,v 1.4 2015/12/10 22:51:30 zkaufman Exp $'; +set VERSION = 'mkdesignmtx @FS_VERSION@'; if($#argv == 0) goto usage_exit; diff --git a/fsfast/bin/mkdesmtx-sess b/fsfast/bin/mkdesmtx-sess index b3c3a70c7f2..6af4f8607b1 100755 --- a/fsfast/bin/mkdesmtx-sess +++ b/fsfast/bin/mkdesmtx-sess @@ -19,7 +19,7 @@ # -set VERSION = '$Id: mkdesmtx-sess,v 1.4 2015/12/10 22:51:30 zkaufman Exp $'; +set VERSION = 'mkdesmtx-sess @FS_VERSION@'; set inputargs = ($argv); set DateStr = "`date '+%y%m%d%H%M'`" diff --git a/fsfast/bin/mkfeat-sess b/fsfast/bin/mkfeat-sess index 3007b916294..1e01fad158a 100755 --- a/fsfast/bin/mkfeat-sess +++ b/fsfast/bin/mkfeat-sess @@ -22,7 +22,7 @@ # -set VERSION = '$Id: mkfeat-sess,v 1.10 2015/12/10 22:51:30 zkaufman Exp $'; +set VERSION = 'mkfeat-sess @FS_VERSION@'; set inputargs = ($argv); set analysis = (); diff --git a/fsfast/bin/mkfieldsign b/fsfast/bin/mkfieldsign index bf26365150b..9d4300d0e61 100755 --- a/fsfast/bin/mkfieldsign +++ b/fsfast/bin/mkfieldsign @@ -19,7 +19,7 @@ # -set VERSION = '$Id: mkfieldsign,v 1.9 2015/12/10 22:51:30 zkaufman Exp $'; +set VERSION = 'mkfieldsign @FS_VERSION@'; set inputargs = ($argv); diff --git a/fsfast/bin/mkmosaic b/fsfast/bin/mkmosaic index 27fa80ed5b4..a75c88d4088 100755 --- a/fsfast/bin/mkmosaic +++ b/fsfast/bin/mkmosaic @@ -27,7 +27,7 @@ # source $FREESURFER_HOME/sources.csh -set MKMOSAIC_VER = '$Id: mkmosaic,v 1.3 2015/12/10 22:51:30 zkaufman Exp $'; +set MKMOSAIC_VER = 'mkmosaic @FS_VERSION@'; if ( $#argv < 1 ) then echo ""; diff --git a/fsfast/bin/mkprestimcon b/fsfast/bin/mkprestimcon index a7fd32e08b4..7ba1a6fcdcd 100755 --- a/fsfast/bin/mkprestimcon +++ b/fsfast/bin/mkprestimcon @@ -19,7 +19,7 @@ # -set VERSION = '$Id: mkprestimcon,v 1.3 2015/12/10 22:51:30 zkaufman Exp $'; +set VERSION = 'mkprestimcon @FS_VERSION@'; set monly = 0; set MLF = (); diff --git a/fsfast/bin/mktalreg b/fsfast/bin/mktalreg index 183c119fb1c..b17317bb941 100755 --- a/fsfast/bin/mktalreg +++ b/fsfast/bin/mktalreg @@ -22,7 +22,7 @@ -set VERSION = '$Id: mktalreg,v 1.4 2015/12/10 22:51:30 zkaufman Exp $' +set VERSION = 'mktalreg @FS_VERSION@'; set inputargs = "$argv"; set subject = (); diff --git a/fsfast/bin/mktalxfm-sess b/fsfast/bin/mktalxfm-sess index 885d01e975e..8e70d747360 100755 --- a/fsfast/bin/mktalxfm-sess +++ b/fsfast/bin/mktalxfm-sess @@ -19,7 +19,7 @@ # -set VERSION = '$Id: mktalxfm-sess,v 1.4 2015/12/10 22:51:30 zkaufman Exp $' +set VERSION = 'mktalxfm-sess @FS_VERSION@'; #------ Defaults --------# set protocol = icbm; diff --git a/fsfast/bin/mktemplate-sess b/fsfast/bin/mktemplate-sess index efc706caf99..ddf03f38769 100755 --- a/fsfast/bin/mktemplate-sess +++ b/fsfast/bin/mktemplate-sess @@ -18,7 +18,7 @@ # Bug reports: analysis-bugs@nmr.mgh.harvard.edu # -set VERSION = '$Id: mktemplate-sess,v 1.11 2015/12/10 22:51:30 zkaufman Exp $'; +set VERSION = 'mktemplate-sess @FS_VERSION@'; set inputargs = ($argv); set fsd = bold; diff --git a/fsfast/bin/mris_glm-sess b/fsfast/bin/mris_glm-sess index 03c2606d585..adda3286e0c 100755 --- a/fsfast/bin/mris_glm-sess +++ b/fsfast/bin/mris_glm-sess @@ -19,7 +19,7 @@ # -set VERSION = '$Id: mris_glm-sess,v 1.8 2015/12/10 22:51:30 zkaufman Exp $'; +set VERSION = 'mris_glm-sess @FS_VERSION@'; set fsgdf = (); set analysis = (); set contrast = (); diff --git a/fsfast/bin/optseq b/fsfast/bin/optseq index 471357eb3b5..e89d56fe1a1 100755 --- a/fsfast/bin/optseq +++ b/fsfast/bin/optseq @@ -19,7 +19,7 @@ # -set VERSION = '$Id: optseq,v 1.4 2015/12/10 22:51:30 zkaufman Exp $' +set VERSION = 'optseq @FS_VERSION@'; set pforder = 0; diff --git a/fsfast/bin/optseq.matlab b/fsfast/bin/optseq.matlab index 54432a5975c..5a10d868ec0 100755 --- a/fsfast/bin/optseq.matlab +++ b/fsfast/bin/optseq.matlab @@ -19,7 +19,7 @@ # -set VERSION = '$Id: optseq.matlab,v 1.2 2015/12/10 22:51:30 zkaufman Exp $'; +set VERSION = 'optseq.matlab @FS_VERSION@'; set pforder = 0; diff --git a/fsfast/bin/paint-fieldsign-sess b/fsfast/bin/paint-fieldsign-sess index 3f05e0d687e..627151e2afa 100755 --- a/fsfast/bin/paint-fieldsign-sess +++ b/fsfast/bin/paint-fieldsign-sess @@ -19,7 +19,7 @@ # # -set VERSION = '$Id: paint-fieldsign-sess,v 1.6 2015/12/10 22:51:30 zkaufman Exp $' +set VERSION = 'paint-fieldsign-sess @FS_VERSION@'; set inputargs = ($argv); diff --git a/fsfast/bin/paint-sess b/fsfast/bin/paint-sess index cd9b2c62533..9f13deea12c 100755 --- a/fsfast/bin/paint-sess +++ b/fsfast/bin/paint-sess @@ -19,7 +19,7 @@ # -set VERSION = '$Id: paint-sess,v 1.23 2015/12/10 22:51:30 zkaufman Exp $'; +set VERSION = 'paint-sess @FS_VERSION@'; set inputargs = ($argv); diff --git a/fsfast/bin/par2fsl3 b/fsfast/bin/par2fsl3 index 46a3a79633c..274e4a9ec14 100755 --- a/fsfast/bin/par2fsl3 +++ b/fsfast/bin/par2fsl3 @@ -19,7 +19,7 @@ # -set VERSION = '$Id: par2fsl3,v 1.2 2015/12/10 22:51:30 zkaufman Exp $'; +set VERSION = 'par2fsl3 @FS_VERSION@'; set inputargs = ($argv); diff --git a/fsfast/bin/par2kspar b/fsfast/bin/par2kspar index 86d89361393..2e2fc06f19c 100755 --- a/fsfast/bin/par2kspar +++ b/fsfast/bin/par2kspar @@ -21,7 +21,7 @@ set inputargs = ($argv); set fmrianalver = `cat $FMRI_ANALYSIS_DIR/docs/version`; -set VERSION = '$Id: par2kspar,v 1.3 2015/12/10 22:51:30 zkaufman Exp $' +set VERSION = 'par2kspar @FS_VERSION@'; ## If there are no arguments, just print useage and exit ## if ( $#argv == 0 ) goto usage_exit; diff --git a/fsfast/bin/par2schedule b/fsfast/bin/par2schedule index abcff4a7723..a099223df19 100755 --- a/fsfast/bin/par2schedule +++ b/fsfast/bin/par2schedule @@ -218,7 +218,7 @@ def check_args(): #----------------------------------------------------------- ProgName = sys.argv[0]; -Version = '$Id: par2schedule,v 1.4 2007/01/09 22:41:18 nicks Exp $'; +Version = 'par2schedule @FS_VERSION@'; parfile = (); nevent_types = 0; eventtypes = []; diff --git a/fsfast/bin/par2stf b/fsfast/bin/par2stf index 6e21433c798..c108d37a308 100755 --- a/fsfast/bin/par2stf +++ b/fsfast/bin/par2stf @@ -19,7 +19,7 @@ # -set VERSION = '$Id'; +set VERSION = 'par2stf @FS_VERSION@'; set cmdargs = ($argv); set parfile = (); diff --git a/fsfast/bin/plot-pve b/fsfast/bin/plot-pve index 7d332eb35ed..b814e26a3e9 100755 --- a/fsfast/bin/plot-pve +++ b/fsfast/bin/plot-pve @@ -21,7 +21,7 @@ set inputargs = ($argv); -set VERSION = '$Id: plot-pve,v 1.3 2015/12/10 22:51:30 zkaufman Exp $'; +set VERSION = 'plot-pve @FS_VERSION@'; ## If there are no arguments, just print useage and exit ## if ( $#argv == 0 ) goto usage_exit; diff --git a/fsfast/bin/plot-twf-sess b/fsfast/bin/plot-twf-sess index ce155fbd05f..6fb763cb6f9 100755 --- a/fsfast/bin/plot-twf-sess +++ b/fsfast/bin/plot-twf-sess @@ -19,7 +19,7 @@ # -set VERSION = '$Id: plot-twf-sess,v 1.16 2015/12/10 22:51:30 zkaufman Exp $'; +set VERSION = 'plot-twf-sess @FS_VERSION@'; set inputargs = ($argv); set DateStr = "`date '+%y%m%d%H%M'`" diff --git a/fsfast/bin/ppcheck-sess b/fsfast/bin/ppcheck-sess index d2e6d3932bb..6903a818ea0 100755 --- a/fsfast/bin/ppcheck-sess +++ b/fsfast/bin/ppcheck-sess @@ -19,7 +19,7 @@ # -set VERSION = '$Id: ppcheck-sess,v 1.3 2015/12/10 22:51:30 zkaufman Exp $'; +set VERSION = 'ppcheck-sess @FS_VERSION@'; set PrintHelp = 0; set cmdargs = ($argv); diff --git a/fsfast/bin/preproc-sess b/fsfast/bin/preproc-sess index a7a1ffc7a65..02be1deaf99 100755 --- a/fsfast/bin/preproc-sess +++ b/fsfast/bin/preproc-sess @@ -23,7 +23,7 @@ # This creates fmcpr.sm5, then # mkanalysis-sess -native -funcstem fmcpr.sm5 ... -set VERSION = '$Id: preproc-sess,v 1.65 2016/08/02 21:18:50 greve Exp $'; +set VERSION = 'preproc-sess @FS_VERSION@'; set inputargs = ($argv); set DateStr = "`date '+%y%m%d%H%M'`" diff --git a/fsfast/bin/prmerge-sess b/fsfast/bin/prmerge-sess index 74c5d4f7254..52f9b64fde6 100755 --- a/fsfast/bin/prmerge-sess +++ b/fsfast/bin/prmerge-sess @@ -18,7 +18,7 @@ # Bug reports: analysis-bugs@nmr.mgh.harvard.edu # -set VERSION = '$Id: prmerge-sess,v 1.3 2015/12/10 22:51:30 zkaufman Exp $'; +set VERSION = 'prmerge-sess @FS_VERSION@'; set inputargs = ($argv); set analysis = (); diff --git a/fsfast/bin/qmedit b/fsfast/bin/qmedit index 08541386808..912b7cf8790 100755 --- a/fsfast/bin/qmedit +++ b/fsfast/bin/qmedit @@ -19,7 +19,7 @@ # -set VERSION = '$Id: qmedit,v 1.7 2015/12/10 22:51:30 zkaufman Exp $'; +set VERSION = 'qmedit @FS_VERSION@'; set cmdargs = ($argv); set anatvol = orig; diff --git a/fsfast/bin/qsurfer b/fsfast/bin/qsurfer index d91b9c7164f..b5bd11c3600 100755 --- a/fsfast/bin/qsurfer +++ b/fsfast/bin/qsurfer @@ -19,7 +19,7 @@ # -set VERSION = '$Id: qsurfer,v 1.9 2015/12/10 22:51:30 zkaufman Exp $' +set VERSION = 'qsurfer @FS_VERSION@'; set cmdargs = ($argv); set usenew = ".new"; diff --git a/fsfast/bin/rawavg-sess b/fsfast/bin/rawavg-sess index 21dcac864a4..58c34899456 100755 --- a/fsfast/bin/rawavg-sess +++ b/fsfast/bin/rawavg-sess @@ -22,7 +22,7 @@ -set VERSION = '$Id: rawavg-sess,v 1.4 2015/12/10 22:51:30 zkaufman Exp $' +set VERSION = 'rawavg-sess @FS_VERSION@'; set inputargs = "$argv"; set DateStr = "`date '+%y%m%d%H%M'`" diff --git a/fsfast/bin/rawfunc2surf-sess b/fsfast/bin/rawfunc2surf-sess index c5ad8a242e1..2688538e7db 100755 --- a/fsfast/bin/rawfunc2surf-sess +++ b/fsfast/bin/rawfunc2surf-sess @@ -18,7 +18,7 @@ # Bug reports: analysis-bugs@nmr.mgh.harvard.edu # -set VERSION = '$Id: rawfunc2surf-sess,v 1.28 2015/12/10 22:51:30 zkaufman Exp $'; +set VERSION = 'rawfunc2surf-sess @FS_VERSION@'; set inputargs = ($argv); diff --git a/fsfast/bin/rawfunc2tal b/fsfast/bin/rawfunc2tal index 102640280a2..977ae136712 100755 --- a/fsfast/bin/rawfunc2tal +++ b/fsfast/bin/rawfunc2tal @@ -19,7 +19,7 @@ # -set VERSION = '$Id: rawfunc2tal,v 1.5 2015/12/10 22:51:30 zkaufman Exp $' +set VERSION = 'rawfunc2tal @FS_VERSION@'; set FASTVER = `cat $FMRI_ANALYSIS_DIR/docs/version`; #------ Defaults --------# diff --git a/fsfast/bin/rawfunc2tal-sess b/fsfast/bin/rawfunc2tal-sess index ad712f43535..809e6a48503 100755 --- a/fsfast/bin/rawfunc2tal-sess +++ b/fsfast/bin/rawfunc2tal-sess @@ -18,7 +18,7 @@ # Bug reports: analysis-bugs@nmr.mgh.harvard.edu # -set VERSION = '$Id: rawfunc2tal-sess,v 1.28 2015/12/10 22:51:30 zkaufman Exp $' +set VERSION = 'rawfunc2tal-sess @FS_VERSION@'; set inputargs = ($argv); diff --git a/fsfast/bin/reg2subj b/fsfast/bin/reg2subj index 4e20d65ba9f..97782691be1 100755 --- a/fsfast/bin/reg2subj +++ b/fsfast/bin/reg2subj @@ -1,6 +1,5 @@ #!/bin/csh -f # Gets subject name out of register.dat -# $Id: reg2subj,v 1.2 2015/12/10 22:51:30 zkaufman Exp $ # # reg2subj diff --git a/fsfast/bin/register-sess b/fsfast/bin/register-sess index c2032496178..aafabc6afc7 100755 --- a/fsfast/bin/register-sess +++ b/fsfast/bin/register-sess @@ -19,7 +19,7 @@ # -set VERSION = '$Id: register-sess,v 1.19 2015/12/10 22:51:30 zkaufman Exp $'; +set VERSION = 'register-sess @FS_VERSION@'; set inputargs = ($argv); set DateString = "`date '+%y%m%d%H%M'`" diff --git a/fsfast/bin/rocview b/fsfast/bin/rocview index ca7967b0c1e..9913704f5e6 100755 --- a/fsfast/bin/rocview +++ b/fsfast/bin/rocview @@ -19,7 +19,7 @@ # -set VERSION = '$Id: rocview,v 1.14 2015/12/10 22:51:30 zkaufman Exp $'; +set VERSION = 'rocview @FS_VERSION@'; set inputargs = ($argv); set fprvolid = (); diff --git a/fsfast/bin/roiavg b/fsfast/bin/roiavg index 615001a1d63..1f6af0f72bf 100755 --- a/fsfast/bin/roiavg +++ b/fsfast/bin/roiavg @@ -19,7 +19,7 @@ # -set ROIAVG_VER = '$Id: roiavg,v 1.3 2015/12/10 22:51:30 zkaufman Exp $' +set ROIAVG_VER = 'roiavg @FS_VERSION@' if ( $#argv < 4 ) then diff --git a/fsfast/bin/roiavgraw b/fsfast/bin/roiavgraw index 20630052a55..95bf92e11a8 100755 --- a/fsfast/bin/roiavgraw +++ b/fsfast/bin/roiavgraw @@ -19,7 +19,7 @@ # -set ROIAVGRAW_VER = '$Id: roiavgraw,v 1.3 2015/12/10 22:51:30 zkaufman Exp $'; +set ROIAVGRAW_VER = 'roiavgraw @FS_VERSION@'; set instem = (); set inext = bshort; diff --git a/fsfast/bin/roisummary-sess b/fsfast/bin/roisummary-sess index d3b7e752163..4fef5e608d5 100755 --- a/fsfast/bin/roisummary-sess +++ b/fsfast/bin/roisummary-sess @@ -19,7 +19,7 @@ # -set VERSION = '$Id: roisummary-sess,v 1.8 2015/12/10 22:51:30 zkaufman Exp $'; +set VERSION = 'roisummary-sess @FS_VERSION@'; set inputargs = ($argv); diff --git a/fsfast/bin/roixrunsum-sess b/fsfast/bin/roixrunsum-sess index ebb8f40c346..ac7687bdbd4 100755 --- a/fsfast/bin/roixrunsum-sess +++ b/fsfast/bin/roixrunsum-sess @@ -19,7 +19,7 @@ # -set VERSION = '$Id: roixrunsum-sess,v 1.3 2015/12/10 22:51:30 zkaufman Exp $'; +set VERSION = 'roixrunsum-sess @FS_VERSION@'; set inputargs = ($argv); set DateStr = "`date '+%y%m%d%H%M'`" diff --git a/fsfast/bin/segregister-sess b/fsfast/bin/segregister-sess index 7ed3d1e12a1..91011ae693d 100755 --- a/fsfast/bin/segregister-sess +++ b/fsfast/bin/segregister-sess @@ -19,7 +19,7 @@ # -set VERSION = '$Id: segregister-sess,v 1.6 2015/12/10 22:51:30 zkaufman Exp $'; +set VERSION = 'segregister-sess @FS_VERSION@'; set inputargs = ($argv); set DateString = "`date '+%y%m%d%H%M'`" diff --git a/fsfast/bin/selfreqavg b/fsfast/bin/selfreqavg index 8f06e2c52fd..61823d46cba 100755 --- a/fsfast/bin/selfreqavg +++ b/fsfast/bin/selfreqavg @@ -21,7 +21,7 @@ # -set VERSION = '$Id: selfreqavg,v 1.16 2015/12/10 22:51:30 zkaufman Exp $'; +set VERSION = 'selfreqavg @FS_VERSION@'; set cmdargv = "$argv"; set n = `echo $argv | grep version | wc -l` diff --git a/fsfast/bin/selfreqavg-sess b/fsfast/bin/selfreqavg-sess index d203bbc3fa3..dcc0c41cc36 100755 --- a/fsfast/bin/selfreqavg-sess +++ b/fsfast/bin/selfreqavg-sess @@ -19,7 +19,7 @@ # -set VERSION = '$Id: selfreqavg-sess,v 1.6 2015/12/10 22:51:30 zkaufman Exp $'; +set VERSION = 'selfreqavg-sess @FS_VERSION@'; set cmdargv = ($argv); set analysis = (); diff --git a/fsfast/bin/selfreqcomb b/fsfast/bin/selfreqcomb index 53e5ac0079f..e733b124ba8 100755 --- a/fsfast/bin/selfreqcomb +++ b/fsfast/bin/selfreqcomb @@ -21,7 +21,7 @@ # -set VERSION = '$Id: selfreqcomb,v 1.9 2015/12/10 22:51:30 zkaufman Exp $'; +set VERSION = 'selfreqcomb @FS_VERSION@'; set cmdargv = ($argv); set instems = (); diff --git a/fsfast/bin/selxavg-jk-sess b/fsfast/bin/selxavg-jk-sess index 679775b08f7..5c0c6008652 100755 --- a/fsfast/bin/selxavg-jk-sess +++ b/fsfast/bin/selxavg-jk-sess @@ -19,7 +19,7 @@ # -set VERSION = '$Id: selxavg-jk-sess,v 1.6 2015/12/10 22:51:30 zkaufman Exp $'; +set VERSION = 'selxavg-jk-sess @FS_VERSION@'; set inputargs = ($argv); set DateStr = "`date '+%y%m%d%H%M'`" diff --git a/fsfast/bin/selxavg-sess b/fsfast/bin/selxavg-sess index 6a52eba1668..873c4cec11a 100755 --- a/fsfast/bin/selxavg-sess +++ b/fsfast/bin/selxavg-sess @@ -19,7 +19,7 @@ # -set VERSION = '$Id: selxavg-sess,v 1.21 2015/12/10 22:51:30 zkaufman Exp $'; +set VERSION = 'selxavg-sess @FS_VERSION@'; set inputargs = ($argv); set DateStr = "`date '+%y%m%d%H%M%S'`" diff --git a/fsfast/bin/selxavg-sess-perrun b/fsfast/bin/selxavg-sess-perrun index 61f9e3881f2..741f392f78c 100755 --- a/fsfast/bin/selxavg-sess-perrun +++ b/fsfast/bin/selxavg-sess-perrun @@ -19,7 +19,7 @@ # -set VERSION = '$Id: selxavg-sess-perrun,v 1.6 2015/12/10 22:51:30 zkaufman Exp $' +set VERSION = 'selxavg-sess-perrun @FS_VERSION@'; set inputargs = "$argv"; set DateStr = "`date '+%y%m%d%H%M'`" diff --git a/fsfast/bin/selxavg2 b/fsfast/bin/selxavg2 index b84f619c741..7f0ed44613e 100755 --- a/fsfast/bin/selxavg2 +++ b/fsfast/bin/selxavg2 @@ -20,7 +20,7 @@ set inputargs = ($argv); -set VERSION = '$Id: selxavg2,v 1.18 2015/12/10 22:51:30 zkaufman Exp $' +set VERSION = 'selxavg2 @FS_VERSION@'; ## If there are no arguments, just print useage and exit ## if ( $#argv == 0 ) goto usage_exit; diff --git a/fsfast/bin/selxavg3-sess b/fsfast/bin/selxavg3-sess index 2142cc88b7c..dff3c1b9a53 100755 --- a/fsfast/bin/selxavg3-sess +++ b/fsfast/bin/selxavg3-sess @@ -19,7 +19,7 @@ # -set VERSION = '$Id: selxavg3-sess,v 1.68 2016/05/10 03:24:18 greve Exp $' +set VERSION = 'selxavg3-sess @FS_VERSION@'; set inputargs = ($argv); set DateStr = "`date '+%y%m%d%H%M%S'`" diff --git a/fsfast/bin/selxavg3-sess.v5.3 b/fsfast/bin/selxavg3-sess.v5.3 index d11f82c9080..923afc8a788 100755 --- a/fsfast/bin/selxavg3-sess.v5.3 +++ b/fsfast/bin/selxavg3-sess.v5.3 @@ -19,7 +19,7 @@ # -set VERSION = '$Id: selxavg3-sess.v5.3,v 1.2 2015/12/10 22:51:30 zkaufman Exp $' +set VERSION = 'selxavg3-sess.v5.3 @FS_VERSION@'; set inputargs = ($argv); set DateStr = "`date '+%y%m%d%H%M%S'`" diff --git a/fsfast/bin/seqefficiency b/fsfast/bin/seqefficiency index ac91e58b36d..502c5250332 100755 --- a/fsfast/bin/seqefficiency +++ b/fsfast/bin/seqefficiency @@ -19,7 +19,7 @@ # -set SEQEFF_VER = '$Id: seqefficiency,v 1.6 2015/12/10 22:51:30 zkaufman Exp $'; +set SEQEFF_VER = 'seqefficiency @FS_VERSION@'; if ( $#argv < 4 ) then echo "" diff --git a/fsfast/bin/sfa-sess b/fsfast/bin/sfa-sess index 9d8fa5d6631..d0a051415ff 100755 --- a/fsfast/bin/sfa-sess +++ b/fsfast/bin/sfa-sess @@ -19,7 +19,7 @@ # -set VERSION = '$Id: sfa-sess,v 1.10 2015/12/10 22:51:30 zkaufman Exp $' +set VERSION = 'sfa-sess @FS_VERSION@'; set inputargs = ($argv); set DateStr = "`date '+%y%m%d%H%M'`" diff --git a/fsfast/bin/sliceview-sess b/fsfast/bin/sliceview-sess index 97f61d7918e..e0d1e050f5c 100755 --- a/fsfast/bin/sliceview-sess +++ b/fsfast/bin/sliceview-sess @@ -19,7 +19,7 @@ # -set VERSION = '$Id: sliceview-sess,v 1.8 2015/12/10 22:51:30 zkaufman Exp $'; +set VERSION = 'sliceview-sess @FS_VERSION@'; set inputargs = ($argv); diff --git a/fsfast/bin/spatev b/fsfast/bin/spatev index 2e2f324a4b9..a038ece5ecc 100755 --- a/fsfast/bin/spatev +++ b/fsfast/bin/spatev @@ -19,7 +19,7 @@ # -set VERSION = '$Id: spatev,v 1.3 2015/12/10 22:51:30 zkaufman Exp $' +set VERSION = 'spatev @FS_VERSION@'; set inputargs = ($argv); set PWDCMD = `getpwdcmd`; diff --git a/fsfast/bin/spatev-sess b/fsfast/bin/spatev-sess index 100ddd86dfb..cd6b18cd331 100755 --- a/fsfast/bin/spatev-sess +++ b/fsfast/bin/spatev-sess @@ -19,7 +19,7 @@ # -set VERSION = '$Id: spatev-sess,v 1.4 2015/12/10 22:51:30 zkaufman Exp $'; +set VERSION = 'spatev-sess @FS_VERSION@'; set inputargs = ($argv); set analysis = (); diff --git a/fsfast/bin/spatevfilter b/fsfast/bin/spatevfilter index ebbde0fed57..e3b1925abca 100755 --- a/fsfast/bin/spatevfilter +++ b/fsfast/bin/spatevfilter @@ -19,7 +19,7 @@ # -set VERSION = '$Id: spatevfilter,v 1.3 2015/12/10 22:51:30 zkaufman Exp $' +set VERSION = 'spatevfilter @FS_VERSION@'; set inputargs = ($argv); set PWDCMD = `getpwdcmd`; diff --git a/fsfast/bin/spatevfilter-sess b/fsfast/bin/spatevfilter-sess index 11a8a975ff3..13fc0612e2b 100755 --- a/fsfast/bin/spatevfilter-sess +++ b/fsfast/bin/spatevfilter-sess @@ -19,7 +19,7 @@ # -set VERSION = '$Id: spatevfilter-sess,v 1.4 2015/12/10 22:51:31 zkaufman Exp $'; +set VERSION = 'spatevfilter-sess @FS_VERSION@'; set inputargs = ($argv); set analysis = (); diff --git a/fsfast/bin/spatfil b/fsfast/bin/spatfil index 36ba5e9c67c..e4c32c5f78f 100755 --- a/fsfast/bin/spatfil +++ b/fsfast/bin/spatfil @@ -20,7 +20,7 @@ set fmrianalver = `cat $FMRI_ANALYSIS_DIR/docs/version`; -set SPATFIL_VER = '$Id: spatfil,v 1.3 2015/12/10 22:51:31 zkaufman Exp $' +set SPATFIL_VER = 'spatfil @FS_VERSION@' set eigvol = (); set invol = (); diff --git a/fsfast/bin/spatialsmooth-sess b/fsfast/bin/spatialsmooth-sess index 82f8786b78c..e52e7185e67 100755 --- a/fsfast/bin/spatialsmooth-sess +++ b/fsfast/bin/spatialsmooth-sess @@ -19,7 +19,7 @@ # -set VERSION = '$Id: spatialsmooth-sess,v 1.23 2015/12/10 22:51:31 zkaufman Exp $'; +set VERSION = 'spatialsmooth-sess @FS_VERSION@'; set cmdargs = ($argv); diff --git a/fsfast/bin/sphsmooth-sess b/fsfast/bin/sphsmooth-sess index 0de32dca65f..693ffb0089f 100755 --- a/fsfast/bin/sphsmooth-sess +++ b/fsfast/bin/sphsmooth-sess @@ -20,7 +20,7 @@ # -set VERSION = '$Id: sphsmooth-sess,v 1.5 2015/12/10 22:51:31 zkaufman Exp $' +set VERSION = 'sphsmooth-sess @FS_VERSION@'; set inputargs = ($argv); diff --git a/fsfast/bin/spikedet b/fsfast/bin/spikedet index f6f82ab1d2d..111b4f1cd20 100755 --- a/fsfast/bin/spikedet +++ b/fsfast/bin/spikedet @@ -19,7 +19,7 @@ # -set VERSION = '$Id: spikedet,v 1.9 2015/12/10 22:51:31 zkaufman Exp $'; +set VERSION = 'spikedet @FS_VERSION@'; set inputargs = ($argv); set instem = (); diff --git a/fsfast/bin/spikedet-sess b/fsfast/bin/spikedet-sess index b024cd9c933..0ff874972a0 100755 --- a/fsfast/bin/spikedet-sess +++ b/fsfast/bin/spikedet-sess @@ -19,7 +19,7 @@ # -set VERSION = '$Id: spikedet-sess,v 1.10 2015/12/10 22:51:31 zkaufman Exp $'; +set VERSION = 'spikedet-sess @FS_VERSION@'; set cmdargs = ($argv); diff --git a/fsfast/bin/splitstr b/fsfast/bin/splitstr index 4bc3d40f01a..e1ae024f7f4 100755 --- a/fsfast/bin/splitstr +++ b/fsfast/bin/splitstr @@ -19,7 +19,7 @@ # source $FREESURFER_HOME/sources.csh -set VER = '$Id: splitstr,v 1.3 2015/12/10 22:51:31 zkaufman Exp $'; +set VER = 'splitstr @FS_VERSION@'; if($#argv != 1) then echo "USAGE splitstr string" diff --git a/fsfast/bin/spmimg2bvolume b/fsfast/bin/spmimg2bvolume index 647c9608b48..7404adace3e 100755 --- a/fsfast/bin/spmimg2bvolume +++ b/fsfast/bin/spmimg2bvolume @@ -21,7 +21,7 @@ # -set VERSION = '$Id: spmimg2bvolume,v 1.3 2015/12/10 22:51:31 zkaufman Exp $' +set VERSION = 'spmimg2bvolume @FS_VERSION@'; set inputargs = ($argv); set PWDCMD = `getpwdcmd`; diff --git a/fsfast/bin/spmregister-sess b/fsfast/bin/spmregister-sess index 685fade3e4e..b0da8761c86 100755 --- a/fsfast/bin/spmregister-sess +++ b/fsfast/bin/spmregister-sess @@ -19,7 +19,7 @@ # -set VERSION = '$Id: spmregister-sess,v 1.19 2015/12/10 22:51:31 zkaufman Exp $'; +set VERSION = 'spmregister-sess @FS_VERSION@'; set inputargs = ($argv); set DateString = "`date '+%y%m%d%H%M'`" diff --git a/fsfast/bin/stc-sess b/fsfast/bin/stc-sess index 6951cb3ee24..3d9eadbba9a 100755 --- a/fsfast/bin/stc-sess +++ b/fsfast/bin/stc-sess @@ -19,7 +19,7 @@ # -set VERSION = '$Id: stc-sess,v 1.13 2015/12/10 22:51:31 zkaufman Exp $'; +set VERSION = 'stc-sess @FS_VERSION@'; set cmdargs = ($argv); diff --git a/fsfast/bin/stc.fsl b/fsfast/bin/stc.fsl index bbe79ee2aba..8195e21329e 100755 --- a/fsfast/bin/stc.fsl +++ b/fsfast/bin/stc.fsl @@ -19,7 +19,7 @@ # -set VERSION = '$Id: stc.fsl,v 1.11 2015/12/10 22:51:31 zkaufman Exp $' +set VERSION = 'stc.fsl @FS_VERSION@'; set debug = 0; set cmdargs = ($argv); set PrintHelp = 0; diff --git a/fsfast/bin/stfreqgrinder b/fsfast/bin/stfreqgrinder index 6ed9d1e9578..1c75d4ea3c3 100755 --- a/fsfast/bin/stfreqgrinder +++ b/fsfast/bin/stfreqgrinder @@ -21,7 +21,7 @@ # -set VERSION = '$Id: stfreqgrinder,v 1.3 2015/12/10 22:51:31 zkaufman Exp $'; +set VERSION = 'stfreqgrinder @FS_VERSION@'; set cmdargv = "$argv"; set n = `echo $argv | grep version | wc -l` diff --git a/fsfast/bin/stripsessargs b/fsfast/bin/stripsessargs index d2513296f8a..2f5a9bf409d 100755 --- a/fsfast/bin/stripsessargs +++ b/fsfast/bin/stripsessargs @@ -19,7 +19,7 @@ # source $FREESURFER_HOME/sources.csh -set VERSION = '$Id: stripsessargs,v 1.3 2015/12/10 22:51:31 zkaufman Exp $'; +set VERSION = 'stripsessargs @FS_VERSION@'; set otherargs = (); diff --git a/fsfast/bin/stxgpredict b/fsfast/bin/stxgpredict index b3a27653615..4a53189cb34 100755 --- a/fsfast/bin/stxgpredict +++ b/fsfast/bin/stxgpredict @@ -21,7 +21,7 @@ # -set VERSION = '$Id: stxgpredict,v 1.3 2015/12/10 22:51:31 zkaufman Exp $' +set VERSION = 'stxgpredict @FS_VERSION@'; set hstem = (); set parlist = (); diff --git a/fsfast/bin/stxgrinder b/fsfast/bin/stxgrinder index 6e971a74d80..0391c0eed1a 100755 --- a/fsfast/bin/stxgrinder +++ b/fsfast/bin/stxgrinder @@ -22,7 +22,7 @@ set fmrianalver = `cat $FMRI_ANALYSIS_DIR/docs/version`; -set STXGRINDER_VER = '\$Id: stxgrinder,v 1.5 2015/12/10 22:51:31 zkaufman Exp $'; +set STXGRINDER_VER = 'stxgrinder @FS_VERSION@'; # Set Default Values # set firstslice = (); diff --git a/fsfast/bin/stxgrinder-sess b/fsfast/bin/stxgrinder-sess index 7a08b114b60..32274f996b8 100755 --- a/fsfast/bin/stxgrinder-sess +++ b/fsfast/bin/stxgrinder-sess @@ -19,7 +19,7 @@ # -set VERSION = '$Id: stxgrinder-sess,v 1.15 2015/12/10 22:51:31 zkaufman Exp $'; +set VERSION = 'stxgrinder-sess @FS_VERSION@'; set inputargs = ($argv); diff --git a/fsfast/bin/stxgrinder-sess-perrun b/fsfast/bin/stxgrinder-sess-perrun index fa787855981..5bffa6c3692 100755 --- a/fsfast/bin/stxgrinder-sess-perrun +++ b/fsfast/bin/stxgrinder-sess-perrun @@ -19,7 +19,7 @@ # -set VERSION = '$Id' +set VERSION = 'stxgrinder-sess-perrun @FS_VERSION@'; set inputargs = "$argv"; diff --git a/fsfast/bin/stxgrinder0-sess b/fsfast/bin/stxgrinder0-sess index bbddab371f3..e4113deeedb 100755 --- a/fsfast/bin/stxgrinder0-sess +++ b/fsfast/bin/stxgrinder0-sess @@ -19,7 +19,7 @@ # -set VERSION = '$Id: stxgrinder0-sess,v 1.4 2015/12/10 22:51:31 zkaufman Exp $'; +set VERSION = 'stxgrinder0-sess @FS_VERSION@'; set inputargs = ($argv); diff --git a/fsfast/bin/subject-sess b/fsfast/bin/subject-sess index 963e6249b94..e53c28be572 100755 --- a/fsfast/bin/subject-sess +++ b/fsfast/bin/subject-sess @@ -19,7 +19,7 @@ # source $FREESURFER_HOME/sources.csh -set VERSION = '$Id: subject-sess,v 1.3 2015/12/10 22:51:31 zkaufman Exp $' +set VERSION = 'subject-sess @FS_VERSION@'; if($#argv == 0) then goto usage_exit; diff --git a/fsfast/bin/surf-sess b/fsfast/bin/surf-sess index 36c550cda2f..8ec32fac41d 100755 --- a/fsfast/bin/surf-sess +++ b/fsfast/bin/surf-sess @@ -19,7 +19,7 @@ # -set VERSION = '$Id: surf-sess,v 1.18 2015/12/10 22:51:31 zkaufman Exp $' +set VERSION = 'surf-sess @FS_VERSION@'; set inputargs = ($argv); diff --git a/fsfast/bin/surfsmooth-sess b/fsfast/bin/surfsmooth-sess index 4a6b644c1d0..b07a2d7dd05 100755 --- a/fsfast/bin/surfsmooth-sess +++ b/fsfast/bin/surfsmooth-sess @@ -19,7 +19,7 @@ # -set VERSION = '$Id: surfsmooth-sess,v 1.4 2015/12/10 22:51:31 zkaufman Exp $'; +set VERSION = 'surfsmooth-sess @FS_VERSION@'; set cmdargs = ($argv); set fsd = "bold"; diff --git a/fsfast/bin/svdfunctcvm b/fsfast/bin/svdfunctcvm index dd198c2edbe..61112a57572 100755 --- a/fsfast/bin/svdfunctcvm +++ b/fsfast/bin/svdfunctcvm @@ -21,7 +21,7 @@ set inputargs = ($argv); set fmrianalver = `cat $FMRI_ANALYSIS_DIR/docs/version`; -set VERSION = '$Id: svdfunctcvm,v 1.3 2015/12/10 22:51:31 zkaufman Exp $'; +set VERSION = 'svdfunctcvm @FS_VERSION@'; ## If there are no arguments, just print useage and exit ## if ( $#argv == 0 ) goto usage_exit; diff --git a/fsfast/bin/svdfunctcvm-sess b/fsfast/bin/svdfunctcvm-sess index 9c6e0a160f9..8fce551edd7 100755 --- a/fsfast/bin/svdfunctcvm-sess +++ b/fsfast/bin/svdfunctcvm-sess @@ -19,7 +19,7 @@ # -set VERSION = '$Id: svdfunctcvm-sess,v 1.4 2015/12/10 22:51:31 zkaufman Exp $'; +set VERSION = 'svdfunctcvm-sess @FS_VERSION@'; set inputargs = ($argv); set analysis = (); diff --git a/fsfast/bin/swfflac-sess b/fsfast/bin/swfflac-sess index 1abea4157fd..f414756e38b 100755 --- a/fsfast/bin/swfflac-sess +++ b/fsfast/bin/swfflac-sess @@ -19,7 +19,7 @@ # -set VERSION = '$Id: swfflac-sess,v 1.9 2015/12/10 22:51:31 zkaufman Exp $'; +set VERSION = 'swfflac-sess @FS_VERSION@'; set cmdargs = ($argv); diff --git a/fsfast/bin/synth-phenc b/fsfast/bin/synth-phenc index 29f9d0ef481..f611cdba24e 100755 --- a/fsfast/bin/synth-phenc +++ b/fsfast/bin/synth-phenc @@ -22,7 +22,7 @@ -set VERSION = '$Id: synth-phenc,v 1.3 2015/12/10 22:51:31 zkaufman Exp $'; +set VERSION = 'synth-phenc @FS_VERSION@'; set cmdargv = "$argv"; set n = `echo $argv | grep version | wc -l` diff --git a/fsfast/bin/synth-sess b/fsfast/bin/synth-sess index 0f4e8451c62..99eeddf0bff 100755 --- a/fsfast/bin/synth-sess +++ b/fsfast/bin/synth-sess @@ -18,7 +18,7 @@ # -set VERSION = '$Id: synth-sess,v 1.8 2015/12/10 22:51:31 zkaufman Exp $' +set VERSION = 'synth-sess @FS_VERSION@'; set inputargs = ($argv); diff --git a/fsfast/bin/synth-tr-sess b/fsfast/bin/synth-tr-sess index 70bf2a30b5c..40ccb49781f 100755 --- a/fsfast/bin/synth-tr-sess +++ b/fsfast/bin/synth-tr-sess @@ -19,7 +19,7 @@ # -set VERSION = '$Id: synth-tr-sess,v 1.3 2015/12/10 22:51:31 zkaufman Exp $'; +set VERSION = 'synth-tr-sess @FS_VERSION@'; set inputargs = ($argv); set DateStr = "`date '+%y%m%d%H%M'`" diff --git a/fsfast/bin/synthfmri b/fsfast/bin/synthfmri index 06ace815af2..c2705b12ba9 100755 --- a/fsfast/bin/synthfmri +++ b/fsfast/bin/synthfmri @@ -19,7 +19,7 @@ # -set SYNTHFMRI_VER = '$Id: synthfmri,v 1.3 2015/12/10 22:51:31 zkaufman Exp $'; +set SYNTHFMRI_VER = 'synthfmri @FS_VERSION@'; if($#argv < 2) then echo "USAGE: synthfmri " diff --git a/fsfast/bin/synthrawroi b/fsfast/bin/synthrawroi index ebe334fd474..f82633427a6 100755 --- a/fsfast/bin/synthrawroi +++ b/fsfast/bin/synthrawroi @@ -19,7 +19,7 @@ # -set SYNTHRAWROI_VER = '$Id: synthrawroi,v 1.3 2015/12/10 22:51:31 zkaufman Exp $'; +set SYNTHRAWROI_VER = 'synthrawroi @FS_VERSION@'; set roistem = (); set outstem = (); diff --git a/fsfast/bin/tar-sess b/fsfast/bin/tar-sess index 4c4c0b31f73..0003a8acf76 100755 --- a/fsfast/bin/tar-sess +++ b/fsfast/bin/tar-sess @@ -19,7 +19,7 @@ # -set VERSION = '$Id: tar-sess,v 1.6 2015/12/10 22:51:31 zkaufman Exp $'; +set VERSION = 'tar-sess @FS_VERSION@'; set inputargs = ($argv); diff --git a/fsfast/bin/tdr-avgechoes b/fsfast/bin/tdr-avgechoes index 67d97cb2eb0..930c6f9c7ad 100755 --- a/fsfast/bin/tdr-avgechoes +++ b/fsfast/bin/tdr-avgechoes @@ -19,7 +19,7 @@ # -set VERSION = '$Id: tdr-avgechoes,v 1.6 2015/12/10 22:51:31 zkaufman Exp $'; +set VERSION = 'tdr-avgechoes @FS_VERSION@'; set inputargs = ($argv); diff --git a/fsfast/bin/tdr-fidmat b/fsfast/bin/tdr-fidmat index 0fc827db0c7..e90971dc743 100755 --- a/fsfast/bin/tdr-fidmat +++ b/fsfast/bin/tdr-fidmat @@ -19,7 +19,7 @@ # -set VERSION = '$Id: tdr-fidmat,v 1.11 2015/12/10 22:51:31 zkaufman Exp $'; +set VERSION = 'tdr-fidmat @FS_VERSION@'; set inputargs = ($argv); diff --git a/fsfast/bin/tdr-ghostcomp b/fsfast/bin/tdr-ghostcomp index 1bb58230ede..76c7ae80991 100755 --- a/fsfast/bin/tdr-ghostcomp +++ b/fsfast/bin/tdr-ghostcomp @@ -19,7 +19,7 @@ # -set VERSION = '$Id: tdr-ghostcomp,v 1.3 2015/12/10 22:51:31 zkaufman Exp $'; +set VERSION = 'tdr-ghostcomp @FS_VERSION@'; set inputargs = ($argv); diff --git a/fsfast/bin/tdr-rcolmat b/fsfast/bin/tdr-rcolmat index 02352567fbb..eaaa405cb1b 100755 --- a/fsfast/bin/tdr-rcolmat +++ b/fsfast/bin/tdr-rcolmat @@ -19,7 +19,7 @@ # -set VERSION = '$Id: tdr-rcolmat,v 1.7 2015/12/10 22:51:31 zkaufman Exp $'; +set VERSION = 'tdr-rcolmat @FS_VERSION@'; set inputargs = ($argv); diff --git a/fsfast/bin/tdr-recon b/fsfast/bin/tdr-recon index abd8e03cebe..3642dfcfac9 100755 --- a/fsfast/bin/tdr-recon +++ b/fsfast/bin/tdr-recon @@ -19,7 +19,7 @@ # -set VERSION = '$Id: tdr-recon,v 1.13 2015/12/10 22:51:31 zkaufman Exp $'; +set VERSION = 'tdr-recon @FS_VERSION@'; set inputargs = ($argv); diff --git a/fsfast/bin/tkmedit-sess b/fsfast/bin/tkmedit-sess index 896e28c2dce..73b8ddc1595 100755 --- a/fsfast/bin/tkmedit-sess +++ b/fsfast/bin/tkmedit-sess @@ -19,7 +19,7 @@ # -set VERSION = '$Id: tkmedit-sess,v 1.41 2015/12/10 22:51:31 zkaufman Exp $'; +set VERSION = 'tkmedit-sess @FS_VERSION@'; set inputargs = ($argv); set sessid = (); diff --git a/fsfast/bin/tkregister-sess b/fsfast/bin/tkregister-sess index d8b9efc0438..ec0e449828c 100755 --- a/fsfast/bin/tkregister-sess +++ b/fsfast/bin/tkregister-sess @@ -19,7 +19,7 @@ # -set VERSION = '$Id: tkregister-sess,v 1.42 2015/12/10 22:51:31 zkaufman Exp $'; +set VERSION = 'tkregister-sess @FS_VERSION@'; set inputargs = ($argv); set DateString = "`date '+%y%m%d%H%M'`" diff --git a/fsfast/bin/tksurfer-sess b/fsfast/bin/tksurfer-sess index 441be1ef58e..286f01bcde7 100755 --- a/fsfast/bin/tksurfer-sess +++ b/fsfast/bin/tksurfer-sess @@ -19,7 +19,7 @@ # -set VERSION = '$Id: tksurfer-sess,v 1.26 2015/12/10 22:51:31 zkaufman Exp $' +set VERSION = 'tksurfer-sess @FS_VERSION@'; set inputargs = ($argv); set analysis = (); set contrastlist = (); diff --git a/fsfast/bin/txt2bfile b/fsfast/bin/txt2bfile index 3b49e68c98d..574d08b7590 100755 --- a/fsfast/bin/txt2bfile +++ b/fsfast/bin/txt2bfile @@ -19,7 +19,7 @@ # -set VERSION = '$Id: txt2bfile,v 1.4 2015/12/10 22:51:31 zkaufman Exp $'; +set VERSION = 'txt2bfile @FS_VERSION@'; set cmdargs = ($argv); set txtfile = (); diff --git a/fsfast/bin/vertavg-group b/fsfast/bin/vertavg-group index 3bf3bcea3a1..667f12fac27 100755 --- a/fsfast/bin/vertavg-group +++ b/fsfast/bin/vertavg-group @@ -19,7 +19,7 @@ # -set VERSION = '$Id: vertavg-group,v 1.4 2015/12/10 22:51:31 zkaufman Exp $' +set VERSION = 'vertavg-group @FS_VERSION@'; #------ Defaults --------# set group = (); diff --git a/fsfast/bin/vertavg-sess b/fsfast/bin/vertavg-sess index 6734abb9213..33738599e2b 100755 --- a/fsfast/bin/vertavg-sess +++ b/fsfast/bin/vertavg-sess @@ -19,7 +19,7 @@ # -set VERSION = '$Id: vertavg-sess,v 1.7 2015/12/10 22:51:31 zkaufman Exp $' +set VERSION = 'vertavg-sess @FS_VERSION@'; #------ Defaults --------# set fstem = (); diff --git a/fsfast/bin/vlrmerge b/fsfast/bin/vlrmerge index 498373dc7f3..68bc5eb894e 100755 --- a/fsfast/bin/vlrmerge +++ b/fsfast/bin/vlrmerge @@ -1,7 +1,7 @@ #!/bin/tcsh -f # vlrmerge -set VERSION = '$Id: vlrmerge,v 1.5 2015/12/10 22:51:31 zkaufman Exp $'; +set VERSION = 'vlrmerge @FS_VERSION@'; set outvol = (); set invol = (); diff --git a/fsfast/bin/yakview b/fsfast/bin/yakview index d3132c0523e..0300b95d393 100755 --- a/fsfast/bin/yakview +++ b/fsfast/bin/yakview @@ -24,7 +24,7 @@ -set YAKVIEW_VER = '\$Id: yakview,v 1.14 2015/12/10 22:51:31 zkaufman Exp $' +set YAKVIEW_VER = 'yakview @FS_VERSION@' # Set Default Values # set imgstem = (); diff --git a/fsfast/bin/zpadfmri b/fsfast/bin/zpadfmri index 2904a8ac7d0..c0148753f14 100755 --- a/fsfast/bin/zpadfmri +++ b/fsfast/bin/zpadfmri @@ -22,7 +22,7 @@ -set VERSION = '$Id: zpadfmri,v 1.3 2015/12/10 22:51:31 zkaufman Exp $'; +set VERSION = 'zpadfmri @FS_VERSION@'; set cmdargs = ($argv); set invol = (); diff --git a/fsfast/docs/bfile.tex b/fsfast/docs/bfile.tex index cb534bf258e..3980ce06f80 100644 --- a/fsfast/docs/bfile.tex +++ b/fsfast/docs/bfile.tex @@ -1,4 +1,3 @@ -% $Id: bfile.tex,v 1.1 2005/05/04 17:00:48 greve Exp $ \documentclass[10pt]{article} \usepackage{amsmath} @@ -20,7 +19,6 @@ \noindent \begin{verbatim} Comments or questions: analysis-bugs@nmr.mgh.harvard.edu -$Id: bfile.tex,v 1.1 2005/05/04 17:00:48 greve Exp $ \end{verbatim} The {\bf bvolume format} is a format for saving and naming volumes of diff --git a/fsfast/docs/condfit.tex b/fsfast/docs/condfit.tex index d73a0ad2037..2fda0e026e6 100644 --- a/fsfast/docs/condfit.tex +++ b/fsfast/docs/condfit.tex @@ -1,4 +1,3 @@ -% $Id: condfit.tex,v 1.1 2005/05/04 17:00:48 greve Exp $ \documentclass[10pt]{article} \usepackage{amsmath} %\usepackage{draftcopy} @@ -23,8 +22,7 @@ \noindent \begin{verbatim} -Comments or questions: analysis-bugs@nmr.mgh.harvard.edu\\ -$Id: condfit.tex,v 1.1 2005/05/04 17:00:48 greve Exp $ +Comments or questions: analysis-bugs@nmr.mgh.harvard.edu \end{verbatim} \section{Introduction} @@ -65,4 +63,4 @@ \section{Command-line Arguments} -\end{document} \ No newline at end of file +\end{document} diff --git a/fsfast/docs/func2roi-sess.tex b/fsfast/docs/func2roi-sess.tex index b000c9b9466..dd503218cb7 100644 --- a/fsfast/docs/func2roi-sess.tex +++ b/fsfast/docs/func2roi-sess.tex @@ -1,4 +1,3 @@ -% $Id: func2roi-sess.tex,v 1.1 2005/05/04 17:00:48 greve Exp $ \documentclass[10pt]{article} \usepackage{amsmath} %\usepackage{draftcopy} @@ -21,7 +20,6 @@ \noindent \begin{verbatim} Comments or questions: analysis-bugs@nmr.mgh.harvard.edu -$Id: func2roi-sess.tex,v 1.1 2005/05/04 17:00:48 greve Exp $ \end{verbatim} \section{Introduction} @@ -452,4 +450,4 @@ \section{Soon-To-Be Frequently Asked Questions} -\end{document} \ No newline at end of file +\end{document} diff --git a/fsfast/docs/hvol.txt b/fsfast/docs/hvol.txt index 60c22838561..d0f3ef92051 100644 --- a/fsfast/docs/hvol.txt +++ b/fsfast/docs/hvol.txt @@ -1,6 +1,3 @@ - -$Id: hvol.txt,v 1.1 2006/07/11 21:09:07 greve Exp $ - What is in the h volume created by selxavg-sess? selxavg-sess creates a directory called bold/analysis in which several diff --git a/fsfast/docs/inorm.tex b/fsfast/docs/inorm.tex index 53faf07350b..4c1292ed32f 100644 --- a/fsfast/docs/inorm.tex +++ b/fsfast/docs/inorm.tex @@ -1,4 +1,3 @@ -% $Id: inorm.tex,v 1.1 2005/05/04 17:00:48 greve Exp $ \documentclass[10pt]{article} \usepackage{amsmath} %\usepackage{draftcopy} @@ -26,8 +25,7 @@ \noindent \begin{verbatim} -Comments or questions: analysis-bugs@nmr.mgh.harvard.edu\\ -$Id: inorm.tex,v 1.1 2005/05/04 17:00:48 greve Exp $ +Comments or questions: analysis-bugs@nmr.mgh.harvard.edu \end{verbatim} \section{Introduction} @@ -320,4 +318,4 @@ \subsection{Report File} -\end{document} \ No newline at end of file +\end{document} diff --git a/fsfast/docs/intergroup-sess.tex b/fsfast/docs/intergroup-sess.tex index e0cd4830799..925058bfa48 100644 --- a/fsfast/docs/intergroup-sess.tex +++ b/fsfast/docs/intergroup-sess.tex @@ -1,4 +1,3 @@ -% $Id: intergroup-sess.tex,v 1.1 2005/05/04 17:00:48 greve Exp $ \documentclass[10pt]{article} \usepackage{amsmath} %\usepackage{draftcopy} @@ -20,8 +19,7 @@ \noindent \begin{verbatim} -Comments or questions: analysis-bugs@nmr.mgh.harvard.edu\\ -$Id: intergroup-sess.tex,v 1.1 2005/05/04 17:00:48 greve Exp $ +Comments or questions: analysis-bugs@nmr.mgh.harvard.edu \end{verbatim} \section{Introduction} diff --git a/fsfast/docs/isxavg-fe.tex b/fsfast/docs/isxavg-fe.tex index 2a8ecc7b875..56b7c47536b 100644 --- a/fsfast/docs/isxavg-fe.tex +++ b/fsfast/docs/isxavg-fe.tex @@ -1,4 +1,3 @@ -% $Id: isxavg-fe.tex,v 1.1 2005/05/04 17:00:48 greve Exp $ \documentclass[10pt]{article} \usepackage{amsmath} %\usepackage{draftcopy} @@ -20,8 +19,7 @@ \noindent \begin{verbatim} -Comments or questions: analysis-bugs@nmr.mgh.harvard.edu\\ -$Id: isxavg-fe.tex,v 1.1 2005/05/04 17:00:48 greve Exp $ +Comments or questions: analysis-bugs@nmr.mgh.harvard.edu \end{verbatim} \section{Introduction} diff --git a/fsfast/docs/isxavg-re.tex b/fsfast/docs/isxavg-re.tex index cc09f23f194..52e4d203642 100644 --- a/fsfast/docs/isxavg-re.tex +++ b/fsfast/docs/isxavg-re.tex @@ -1,4 +1,3 @@ -% $Id: isxavg-re.tex,v 1.1 2005/05/04 17:00:48 greve Exp $ \documentclass[10pt]{article} \usepackage{amsmath} %\usepackage{draftcopy} @@ -20,8 +19,7 @@ \noindent \begin{verbatim} -Comments or questions: analysis-bugs@nmr.mgh.harvard.edu\\ -$Id: isxavg-re.tex,v 1.1 2005/05/04 17:00:48 greve Exp $ +Comments or questions: analysis-bugs@nmr.mgh.harvard.edu \end{verbatim} \section{Introduction} @@ -110,4 +108,4 @@ \section{Command-line Arguments} analysis but do not actually execute it. This is mainly good for debugging purposes.\\ -\end{document} \ No newline at end of file +\end{document} diff --git a/fsfast/docs/mc-afni.tex b/fsfast/docs/mc-afni.tex index 04e482cefe6..3bbb4d3ace1 100644 --- a/fsfast/docs/mc-afni.tex +++ b/fsfast/docs/mc-afni.tex @@ -1,4 +1,3 @@ -% $Id: mc-afni.tex,v 1.1 2005/05/04 17:00:48 greve Exp $ \documentclass[10pt]{article} \usepackage{amsmath} %\usepackage{draftcopy} @@ -20,8 +19,7 @@ \noindent \begin{verbatim} -Comments or questions: analysis-bugs@nmr.mgh.harvard.edu\\ -$Id: mc-afni.tex,v 1.1 2005/05/04 17:00:48 greve Exp $ +Comments or questions: analysis-bugs@nmr.mgh.harvard.edu \end{verbatim} \section{Introduction} @@ -136,4 +134,4 @@ \subsection{Mulitple Run Motion Correction} and {\em func2\_mc.mcdat}. -\end{document} \ No newline at end of file +\end{document} diff --git a/fsfast/docs/mkcontrast.tex b/fsfast/docs/mkcontrast.tex index d72d3189eff..c577b742153 100644 --- a/fsfast/docs/mkcontrast.tex +++ b/fsfast/docs/mkcontrast.tex @@ -1,4 +1,3 @@ -% $Id: mkcontrast.tex,v 1.1 2005/05/04 17:00:48 greve Exp $ \documentclass[10pt]{article} \usepackage{amsmath} %\usepackage{draftcopy} @@ -20,8 +19,7 @@ \noindent \begin{verbatim} -Comments or questions: analysis-bugs@nmr.mgh.harvard.edu\\ -$Id: mkcontrast.tex,v 1.1 2005/05/04 17:00:48 greve Exp $ +Comments or questions: analysis-bugs@nmr.mgh.harvard.edu \end{verbatim} \section{Introduction} @@ -190,4 +188,4 @@ \section{Command-line Arguments -- Option Set 2} the minimum and maximum. Each $\tau$ will be paired with the corresponding $\Delta$.\\ -\end{document} \ No newline at end of file +\end{document} diff --git a/fsfast/docs/mkmosaic.tex b/fsfast/docs/mkmosaic.tex index c84f08d87a9..d7e54ed1f4d 100644 --- a/fsfast/docs/mkmosaic.tex +++ b/fsfast/docs/mkmosaic.tex @@ -1,4 +1,3 @@ -% $Id: mkmosaic.tex,v 1.1 2005/05/04 17:00:49 greve Exp $ \documentclass[10pt]{article} \usepackage{amsmath} @@ -20,7 +19,6 @@ \noindent \begin{verbatim} Comments or questions: analysis-bugs@nmr.mgh.harvard.edu -$Id: mkmosaic.tex,v 1.1 2005/05/04 17:00:49 greve Exp $ \end{verbatim} \section{Introduction} @@ -85,4 +83,4 @@ \section{Output} input slices. If outstem is not specified, it is set to instem. -\end{document} \ No newline at end of file +\end{document} diff --git a/fsfast/docs/mkmosaic16.tex b/fsfast/docs/mkmosaic16.tex index 6abae796381..0c0cd3167e7 100644 --- a/fsfast/docs/mkmosaic16.tex +++ b/fsfast/docs/mkmosaic16.tex @@ -1,4 +1,3 @@ -% $Id: mkmosaic16.tex,v 1.1 2005/05/04 17:00:49 greve Exp $ \documentclass[10pt]{article} \usepackage{amsmath} @@ -20,7 +19,6 @@ \noindent \begin{verbatim} Comments or questions: analysis-bugs@nmr.mgh.harvard.edu -$Id: mkmosaic16.tex,v 1.1 2005/05/04 17:00:49 greve Exp $ \end{verbatim} \section{Introduction} @@ -75,4 +73,4 @@ \section{Output} input slices. If outstem is not specified, it is set to instem. -\end{document} \ No newline at end of file +\end{document} diff --git a/fsfast/docs/mtp-repack.tex b/fsfast/docs/mtp-repack.tex index d3f475348b8..fc5a42782cc 100644 --- a/fsfast/docs/mtp-repack.tex +++ b/fsfast/docs/mtp-repack.tex @@ -1,4 +1,3 @@ -% $Id: mtp-repack.tex,v 1.1 2005/05/04 17:00:49 greve Exp $ \documentclass[10pt]{article} \usepackage{amsmath} %\usepackage{draftcopy} @@ -151,4 +150,4 @@ \section{The Missing Time Point (MTP) File} -\end{document} \ No newline at end of file +\end{document} diff --git a/fsfast/docs/optseq.tex b/fsfast/docs/optseq.tex index d09d93690cd..37267cdad61 100644 --- a/fsfast/docs/optseq.tex +++ b/fsfast/docs/optseq.tex @@ -1,4 +1,3 @@ -% $Id: optseq.tex,v 1.1 2005/05/04 17:00:49 greve Exp $ \documentclass[10pt]{article} \usepackage{amsmath} @@ -19,8 +18,7 @@ \noindent \begin{verbatim} -Comments or questions: analysis-bugs@nmr.mgh.harvard.edu\\ -$Id: optseq.tex,v 1.1 2005/05/04 17:00:49 greve Exp $ +Comments or questions: analysis-bugs@nmr.mgh.harvard.edu \end{verbatim} \section{Introduction} @@ -383,4 +381,4 @@ \section{Example} event. The third column is the duration of the event, and the fourth column is the label of the event. -\end{document} \ No newline at end of file +\end{document} diff --git a/fsfast/docs/overview.tex b/fsfast/docs/overview.tex index 6ee1ced7c4e..48d4bbff431 100644 --- a/fsfast/docs/overview.tex +++ b/fsfast/docs/overview.tex @@ -1,4 +1,3 @@ -% $Id: overview.tex,v 1.1 2005/05/04 17:00:49 greve Exp $ \documentclass[10pt]{article} \usepackage{amsmath} %\usepackage{draftcopy} @@ -170,4 +169,4 @@ \section{The Sessions Environment} NeuroImage.\\ -\end{document} \ No newline at end of file +\end{document} diff --git a/fsfast/docs/paint.tex b/fsfast/docs/paint.tex index 90cf6200bed..f520bde727c 100644 --- a/fsfast/docs/paint.tex +++ b/fsfast/docs/paint.tex @@ -1,4 +1,3 @@ -% $Id: paint.tex,v 1.1 2005/05/04 17:00:49 greve Exp $ \documentclass[10pt]{article} \usepackage{amsmath} %\usepackage{draftcopy} @@ -20,8 +19,7 @@ \noindent \begin{verbatim} -Comments or questions: analysis-bugs@nmr.mgh.harvard.edu\\ -$Id: paint.tex,v 1.1 2005/05/04 17:00:49 greve Exp $ +Comments or questions: analysis-bugs@nmr.mgh.harvard.edu \end{verbatim} \section{Introduction} @@ -90,4 +88,4 @@ \section{Example} {\em .hdr} extension. -\end{document} \ No newline at end of file +\end{document} diff --git a/fsfast/docs/paradigm.tex b/fsfast/docs/paradigm.tex index 5f682e0d37f..5dd3388c970 100644 --- a/fsfast/docs/paradigm.tex +++ b/fsfast/docs/paradigm.tex @@ -1,4 +1,3 @@ -% $Id: paradigm.tex,v 1.1 2005/05/04 17:00:49 greve Exp $ \documentclass[10pt]{article} \usepackage{amsmath} @@ -19,8 +18,7 @@ \noindent \begin{verbatim} -Comments or questions: analysis-bugs@nmr.mgh.harvard.edu\\ -$Id: paradigm.tex,v 1.1 2005/05/04 17:00:49 greve Exp $ +Comments or questions: analysis-bugs@nmr.mgh.harvard.edu \end{verbatim} The {\bf paradigm file format} is a method of representing the @@ -135,4 +133,4 @@ -\end{document} \ No newline at end of file +\end{document} diff --git a/fsfast/docs/register.info b/fsfast/docs/register.info index 952a314a0d5..359938e3e32 100644 --- a/fsfast/docs/register.info +++ b/fsfast/docs/register.info @@ -1,7 +1,6 @@ Instructions for registering a t1-epi structural with t1-spgr structural. Douglas N. Greve August 13, 1999 -$Id: register.info,v 1.1 2005/05/04 17:00:49 greve Exp $ -------------------------------------------------------------------------- Background: Each voxel in the t1-epi must be mapped to a voxel in the diff --git a/fsfast/docs/selfreq.tex b/fsfast/docs/selfreq.tex index 3495ce96bb7..d3ac475da5a 100644 --- a/fsfast/docs/selfreq.tex +++ b/fsfast/docs/selfreq.tex @@ -1,4 +1,3 @@ -% $Id: selfreq.tex,v 1.3 2009/05/13 14:52:36 greve Exp $ \documentclass[10pt]{article} \usepackage{amsmath} %\usepackage{draftcopy} diff --git a/fsfast/docs/selxavg.tex b/fsfast/docs/selxavg.tex index 2b8f4abbb02..5586d0b548d 100644 --- a/fsfast/docs/selxavg.tex +++ b/fsfast/docs/selxavg.tex @@ -1,4 +1,3 @@ -% $Id: selxavg.tex,v 1.1 2005/05/04 17:00:49 greve Exp $ \documentclass[10pt]{article} \usepackage{amsmath} %\usepackage{draftcopy} @@ -20,8 +19,7 @@ \noindent \begin{verbatim} -Comments or questions: analysis-bugs@nmr.mgh.harvard.edu\\ -$Id: selxavg.tex,v 1.1 2005/05/04 17:00:49 greve Exp $ +Comments or questions: analysis-bugs@nmr.mgh.harvard.edu \end{verbatim} \section{Introduction} @@ -406,4 +404,4 @@ \subsection{Construction of X} -\end{document} \ No newline at end of file +\end{document} diff --git a/fsfast/docs/seqefficiency.tex b/fsfast/docs/seqefficiency.tex index bebce81efb6..eeddbfe058d 100644 --- a/fsfast/docs/seqefficiency.tex +++ b/fsfast/docs/seqefficiency.tex @@ -1,4 +1,3 @@ -% $Id: seqefficiency.tex,v 1.1 2005/05/04 17:00:49 greve Exp $ \documentclass[10pt]{article} \usepackage{amsmath} @@ -19,8 +18,7 @@ \noindent \begin{verbatim} -Comments or questions: analysis-bugs@nmr.mgh.harvard.edu\\ -$Id: seqefficiency.tex,v 1.1 2005/05/04 17:00:49 greve Exp $ +Comments or questions: analysis-bugs@nmr.mgh.harvard.edu \end{verbatim} \section{Introduction} @@ -76,4 +74,4 @@ \section{Output} {\bf seqefficiency} prints the efficiency measure to the standard output.\\ -\end{document} \ No newline at end of file +\end{document} diff --git a/fsfast/docs/stgrinder2.info b/fsfast/docs/stgrinder2.info index 633d1120043..6fbacf0f947 100644 --- a/fsfast/docs/stgrinder2.info +++ b/fsfast/docs/stgrinder2.info @@ -23,6 +23,5 @@ Usage: stgrinder2 [-options] -i -o -whitenoise : assume white noise -pscale : multiply pvalues by scale - $Id: stgrinder2.info,v 1.1 2005/05/04 17:00:49 greve Exp $ MAXT = 30, MAXDOF = 200 diff --git a/fsfast/docs/stxgrinder.tex b/fsfast/docs/stxgrinder.tex index 9eb3ee65ba9..65963e4536b 100644 --- a/fsfast/docs/stxgrinder.tex +++ b/fsfast/docs/stxgrinder.tex @@ -19,8 +19,7 @@ \noindent \begin{verbatim} -Comments or questions: analysis-bugs@nmr.mgh.harvard.edu\\ -$Id: stxgrinder.tex,v 1.1 2005/05/04 17:00:49 greve Exp $ +Comments or questions: analysis-bugs@nmr.mgh.harvard.edu \end{verbatim} \section{Introduction} diff --git a/fsfast/docs/univar-analysis.tex b/fsfast/docs/univar-analysis.tex index 37020481fdb..56997beaaae 100644 --- a/fsfast/docs/univar-analysis.tex +++ b/fsfast/docs/univar-analysis.tex @@ -22,7 +22,7 @@ \end{center} \end{LARGE} \begin{verbatim} - $Id: univar-analysis.tex,v 1.3 2005/05/04 17:00:49 greve Exp $ +Comments or questions: analysis-bugs@nmr.mgh.harvard.edu \end{verbatim} \section{Introduction} diff --git a/fsfast/docs/vol2roi.tex b/fsfast/docs/vol2roi.tex index daba32dd3d1..48d8090df4f 100644 --- a/fsfast/docs/vol2roi.tex +++ b/fsfast/docs/vol2roi.tex @@ -1,4 +1,3 @@ -% $Id: vol2roi.tex,v 1.1 2005/05/04 17:00:49 greve Exp $ \documentclass[10pt]{article} \usepackage{amsmath} %\usepackage{draftcopy} @@ -20,8 +19,7 @@ \noindent \begin{verbatim} -Comments or questions: analysis-bugs@nmr.mgh.harvard.edu\\ -$Id: vol2roi.tex,v 1.1 2005/05/04 17:00:49 greve Exp $ +Comments or questions: analysis-bugs@nmr.mgh.harvard.edu \end{verbatim} \section{Introduction} diff --git a/fsfast/docs/yakview.tex b/fsfast/docs/yakview.tex index c6e76875867..ab74a8661d7 100644 --- a/fsfast/docs/yakview.tex +++ b/fsfast/docs/yakview.tex @@ -1,4 +1,3 @@ -% $Id: yakview.tex,v 1.1 2005/05/04 17:00:49 greve Exp $ \documentclass[10pt]{article} \usepackage{amsmath} @@ -20,7 +19,6 @@ \noindent \begin{verbatim} Comments or questions: analysis-bugs@nmr.mgh.harvard.edu -$Id: yakview.tex,v 1.1 2005/05/04 17:00:49 greve Exp $ \end{verbatim} \section{Introduction} @@ -186,4 +184,4 @@ \subsection{The Hemodynamic Response Window} \end{table} -\end{document} \ No newline at end of file +\end{document} diff --git a/fsfast/toolbox/CMakeLists.txt b/fsfast/toolbox/CMakeLists.txt index 01a2628de78..1db46481016 100644 --- a/fsfast/toolbox/CMakeLists.txt +++ b/fsfast/toolbox/CMakeLists.txt @@ -1,4 +1,4 @@ -install(FILES +install_configured( afni2bvol.m arCorrFun.m avgrandeff.m diff --git a/fsfast/toolbox/afni2bvol.m b/fsfast/toolbox/afni2bvol.m index 1b661d2eb7e..d2d99b9a0d8 100644 --- a/fsfast/toolbox/afni2bvol.m +++ b/fsfast/toolbox/afni2bvol.m @@ -1,6 +1,5 @@ function r = afni2bvol(varargin) % r = afni2bvol(varargin) -% '$Id' % diff --git a/fsfast/toolbox/basename.m b/fsfast/toolbox/basename.m index b7ec3faddf8..e8e2d1e6529 100644 --- a/fsfast/toolbox/basename.m +++ b/fsfast/toolbox/basename.m @@ -5,7 +5,6 @@ % command in matlab. If ext is present, it will check to % see if ext exists as an extension and strip it if it does. % -% $Id: basename.m,v 1.4 2011/03/02 00:04:03 nicks Exp $ % % basename.m diff --git a/fsfast/toolbox/editmask.m b/fsfast/toolbox/editmask.m index 81c2dd9b28b..c52a30ac8d9 100644 --- a/fsfast/toolbox/editmask.m +++ b/fsfast/toolbox/editmask.m @@ -1,7 +1,6 @@ function r = editmask(varargin) % r = editmask(varargin) % Edit a functional mask -% '$Id: editmask.m,v 1.3 2011/03/02 00:04:03 nicks Exp $' % @@ -20,7 +19,7 @@ % Reporting: freesurfer@nmr.mgh.harvard.edu % -version = '$Id: editmask.m,v 1.3 2011/03/02 00:04:03 nicks Exp $'; +version = 'editmask.m @FS_VERSION@'; r = 1; %% Print usage if there are no arguments %% diff --git a/fsfast/toolbox/fast_aareg.m b/fsfast/toolbox/fast_aareg.m index 2be9d23321b..bbed21b866b 100644 --- a/fsfast/toolbox/fast_aareg.m +++ b/fsfast/toolbox/fast_aareg.m @@ -1,7 +1,6 @@ function [u, cpvs, pvs, y] = fast_aareg(nf,TR,fmax,fdelta) % [u, cpvs, pvs, y] = fast_aareg(nf,TR,fmax,) % anti-aliasing reg -% $Id: fast_aareg.m,v 1.1 2008/01/19 22:02:47 greve Exp $ u = []; pvs = []; diff --git a/fsfast/toolbox/fast_acf2ar.m b/fsfast/toolbox/fast_acf2ar.m index fd617120289..d7e69aa465d 100644 --- a/fsfast/toolbox/fast_acf2ar.m +++ b/fsfast/toolbox/fast_acf2ar.m @@ -18,7 +18,6 @@ % % See also: fast_ar2acf, levinson, aryule % -% $Id: fast_acf2ar.m,v 1.3 2011/03/02 00:04:03 nicks Exp $ % % fast_acf2ar.m diff --git a/fsfast/toolbox/fast_anova_rm_oneway.m b/fsfast/toolbox/fast_anova_rm_oneway.m index 3d25908bc64..905180d04fa 100644 --- a/fsfast/toolbox/fast_anova_rm_oneway.m +++ b/fsfast/toolbox/fast_anova_rm_oneway.m @@ -24,7 +24,6 @@ % [beta, rvar, vdof, r] = fast_glmfit(y,X); % [F, Fsig, con] = fast_fratio(beta,X,rvar,C); % -% $Id: fast_anova_rm_oneway.m,v 1.5 2009/05/27 16:04:13 greve Exp $ X = []; C = []; diff --git a/fsfast/toolbox/fast_ar12fwhm.m b/fsfast/toolbox/fast_ar12fwhm.m index 7b86f73fe5b..cc945d639f2 100644 --- a/fsfast/toolbox/fast_ar12fwhm.m +++ b/fsfast/toolbox/fast_ar12fwhm.m @@ -4,7 +4,6 @@ % Converts an AR1 to FWHM. % d is the voxel size. FWHM will be in units of d. % -% $Id: fast_ar12fwhm.m,v 1.3 2011/03/02 00:04:03 nicks Exp $ % Original Author: Doug Greve % diff --git a/fsfast/toolbox/fast_bfileconvert.m b/fsfast/toolbox/fast_bfileconvert.m index 97888c82330..eef2f70d643 100644 --- a/fsfast/toolbox/fast_bfileconvert.m +++ b/fsfast/toolbox/fast_bfileconvert.m @@ -2,7 +2,6 @@ % r = fast_bfileconvert(varargin) % Converts a bfile into another bfile. Eg, bfloat into bshort, % Little endian into big endian, etc. -% '$Id: fast_bfileconvert.m,v 1.6 2011/03/02 00:04:03 nicks Exp $' % @@ -21,7 +20,7 @@ % Reporting: freesurfer@nmr.mgh.harvard.edu % -version = '$Id: fast_bfileconvert.m,v 1.6 2011/03/02 00:04:03 nicks Exp $'; +version = 'fast_bfileconvert.m @FS_VERSION@'; fprintf(1,'%s\n',version); r = 1; diff --git a/fsfast/toolbox/fast_cmpdesign_nsd.m b/fsfast/toolbox/fast_cmpdesign_nsd.m index 440d27c1b9c..8a7d483c32e 100644 --- a/fsfast/toolbox/fast_cmpdesign_nsd.m +++ b/fsfast/toolbox/fast_cmpdesign_nsd.m @@ -2,7 +2,6 @@ % r = fast_cmpdesign_nsd % % Compares two designs based on non-schedule dependent parameters. -% '$Id: fast_cmpdesign_nsd.m,v 1.3 2011/03/02 00:04:03 nicks Exp $' % @@ -22,7 +21,7 @@ % Reporting: freesurfer@nmr.mgh.harvard.edu % -version = '$Id: fast_cmpdesign_nsd.m,v 1.3 2011/03/02 00:04:03 nicks Exp $'; +version = 'fast_cmpdesign_nsd.m @FS_VERSION@'; fprintf(1,'%s\n',version); r = 1; diff --git a/fsfast/toolbox/fast_compute_cvm.m b/fsfast/toolbox/fast_compute_cvm.m index 137a68c0af2..c983299c997 100644 --- a/fsfast/toolbox/fast_compute_cvm.m +++ b/fsfast/toolbox/fast_compute_cvm.m @@ -1,6 +1,5 @@ function r = fast_compute_cvm(varargin) % r = fast_compute_cvm(varargin) -% '$Id: fast_compute_cvm.m,v 1.3 2011/03/02 00:04:03 nicks Exp $' % % Computes the temporal covariance matrix (CVM) of a functional volume. % Options: @@ -33,7 +32,7 @@ % Reporting: freesurfer@nmr.mgh.harvard.edu % -version = '$Id: fast_compute_cvm.m,v 1.3 2011/03/02 00:04:03 nicks Exp $' +version = 'fast_compute_cvm.m @FS_VERSION@'; fprintf(1,'%s\n',version); r = 1; diff --git a/fsfast/toolbox/fast_corsort.m b/fsfast/toolbox/fast_corsort.m index 0d872c55de9..1856b7ba263 100644 --- a/fsfast/toolbox/fast_corsort.m +++ b/fsfast/toolbox/fast_corsort.m @@ -27,7 +27,6 @@ % yn = fast_fnorm(y,2,1); % Normalize across space % rho = yn*yn'; % Cor Coeff across component % -% $Id: fast_corsort.m,v 1.5 2011/03/02 00:04:03 nicks Exp $ % % fast_corsort.m diff --git a/fsfast/toolbox/fast_crf.m b/fsfast/toolbox/fast_crf.m index 6ac696ff5c1..616a87d7dfd 100644 --- a/fsfast/toolbox/fast_crf.m +++ b/fsfast/toolbox/fast_crf.m @@ -4,7 +4,6 @@ % Cardiac Response Function from Chang, et al, NI 44 (2009), % 857-869, Equation 5 and Figure 6. % -% $Id: fast_crf.m,v 1.1 2010/03/31 16:31:57 greve Exp $ if(nargin ~= 1) fprintf('crf = fast_crf(t)\n'); diff --git a/fsfast/toolbox/fast_dlh.m b/fsfast/toolbox/fast_dlh.m index 92dd25fefd1..c2ef3863355 100644 --- a/fsfast/toolbox/fast_dlh.m +++ b/fsfast/toolbox/fast_dlh.m @@ -11,7 +11,6 @@ % % dlh = 4.6167/(prod(fwhm)) % -% $Id: fast_dlh.m,v 1.2 2007/04/04 02:07:46 greve Exp $ gstd = fast_fwhm2std(fwhm); dlh = 1/(sqrt(8)*prod(gstd)); diff --git a/fsfast/toolbox/fast_ecvm2wmtx.m b/fsfast/toolbox/fast_ecvm2wmtx.m index b3996017be6..5c9f95b11e0 100644 --- a/fsfast/toolbox/fast_ecvm2wmtx.m +++ b/fsfast/toolbox/fast_ecvm2wmtx.m @@ -21,7 +21,6 @@ % WA = inv(chol(A)'); % Such that: WA*A*WA' is the identity. % -% $Id: fast_ecvm2wmtx.m,v 1.1 2009/04/02 22:34:43 greve Exp $ if(nargin ~= 1) fprintf('[W AutoCor AutoCor0 ncnd] = fast_ecvm2wmtx(ErrCovMtx);\n'); diff --git a/fsfast/toolbox/fast_evfunc.m b/fsfast/toolbox/fast_evfunc.m index 6902650cc78..ff6761cff4c 100644 --- a/fsfast/toolbox/fast_evfunc.m +++ b/fsfast/toolbox/fast_evfunc.m @@ -17,7 +17,6 @@ % temporal mean is greater than T times the global mean will be % used. The resulting mask can also be saved. % -% '$Id: fast_evfunc.m,v 1.3 2011/03/02 00:04:04 nicks Exp $' % @@ -37,7 +36,7 @@ % Reporting: freesurfer@nmr.mgh.harvard.edu % -version = '$Id: fast_evfunc.m,v 1.3 2011/03/02 00:04:04 nicks Exp $'; +version = 'fast_evfunc.m @FS_VERSION@'; fprintf(1,'%s\n',version); r = 1; diff --git a/fsfast/toolbox/fast_evspatfil.m b/fsfast/toolbox/fast_evspatfil.m index 8e5230bdd2d..78089c3bfee 100644 --- a/fsfast/toolbox/fast_evspatfil.m +++ b/fsfast/toolbox/fast_evspatfil.m @@ -4,7 +4,6 @@ % Spatially filters by projecting out a given set % of spatial eigenvectors as computed by fast_evfunc.m % -% '$Id: fast_evspatfil.m,v 1.3 2011/03/02 00:04:04 nicks Exp $' % @@ -24,7 +23,7 @@ % Reporting: freesurfer@nmr.mgh.harvard.edu % -version = '$Id: fast_evspatfil.m,v 1.3 2011/03/02 00:04:04 nicks Exp $'; +version = 'fast_evspatfil.m @FS_VERSION@'; fprintf(1,'%s\n',version); r = 1; diff --git a/fsfast/toolbox/fast_fbmacf.m b/fsfast/toolbox/fast_fbmacf.m index 9533bc7c455..578650b14a6 100644 --- a/fsfast/toolbox/fast_fbmacf.m +++ b/fsfast/toolbox/fast_fbmacf.m @@ -13,7 +13,6 @@ % % nmax - max number of lags % -% $Id: fast_fbmacf.m,v 1.2 2010/04/20 04:31:18 greve Exp $ lag = [0:nmax-1]'; diff --git a/fsfast/toolbox/fast_fcreg.m b/fsfast/toolbox/fast_fcreg.m index b551360d012..4ce09879035 100644 --- a/fsfast/toolbox/fast_fcreg.m +++ b/fsfast/toolbox/fast_fcreg.m @@ -1,5 +1,4 @@ % fast_fcreg.m -% $Id: fast_fcreg.m,v 1.6 2009/12/14 18:47:32 greve Exp $ %flacfile %sess diff --git a/fsfast/toolbox/fast_ffx.m b/fsfast/toolbox/fast_ffx.m index d32df924d74..4dbb429a9e2 100644 --- a/fsfast/toolbox/fast_ffx.m +++ b/fsfast/toolbox/fast_ffx.m @@ -16,7 +16,6 @@ % When X is the ones vector and C=1, then gives the same result as % fast_ffx_osgm. % -% $Id: fast_ffx.m,v 1.3 2011/03/02 00:04:04 nicks Exp $ % % fast_ffx.m diff --git a/fsfast/toolbox/fast_ffx_osgm.m b/fsfast/toolbox/fast_ffx_osgm.m index 0fa83cebd7b..cd5e4e121ce 100644 --- a/fsfast/toolbox/fast_ffx_osgm.m +++ b/fsfast/toolbox/fast_ffx_osgm.m @@ -11,7 +11,6 @@ % 1. The first dim, if means is a matrix % 2. The last dim is means has a dim > 2 % -% $Id: fast_ffx_osgm.m,v 1.3 2011/03/02 00:04:04 nicks Exp $ % To test FPR % dofs = 100; diff --git a/fsfast/toolbox/fast_flip2wvar.m b/fsfast/toolbox/fast_flip2wvar.m index 518e78e252e..c31a35f7aaf 100644 --- a/fsfast/toolbox/fast_flip2wvar.m +++ b/fsfast/toolbox/fast_flip2wvar.m @@ -5,7 +5,6 @@ % with different proportions. The instability variance is that % from the first scan. % -% $Id: fast_flip2wvar.m,v 1.4 2011/03/02 00:04:04 nicks Exp $ % % fast_flip2var diff --git a/fsfast/toolbox/fast_fslgamma.m b/fsfast/toolbox/fast_fslgamma.m index 8ff38cf409d..278abbcd81b 100644 --- a/fsfast/toolbox/fast_fslgamma.m +++ b/fsfast/toolbox/fast_fslgamma.m @@ -7,7 +7,6 @@ % stddev = 3 sec by default % No normalization is done (yet) % -% $Id: fast_fslgamma.m,v 1.1 2007/06/19 18:49:38 greve Exp $ h = []; if(nargin < 1 | nargin > 3) diff --git a/fsfast/toolbox/fast_func2acor.m b/fsfast/toolbox/fast_func2acor.m index 5e3d42382fb..5baa3220b4d 100644 --- a/fsfast/toolbox/fast_func2acor.m +++ b/fsfast/toolbox/fast_func2acor.m @@ -1,6 +1,5 @@ function r = fast_func2acor(varargin) % r = fast_func2acor(varargin) -% '$Id: fast_func2acor.m,v 1.3 2011/03/02 00:04:04 nicks Exp $' % @@ -20,7 +19,7 @@ % tic; -version = '$Id: fast_func2acor.m,v 1.3 2011/03/02 00:04:04 nicks Exp $'; +version = 'fast_func2acor.m @FS_VERSION@'; fprintf(1,'%s\n',version); r = 1; diff --git a/fsfast/toolbox/fast_func2roi.m b/fsfast/toolbox/fast_func2roi.m index aade31a402c..e1427bdcf01 100644 --- a/fsfast/toolbox/fast_func2roi.m +++ b/fsfast/toolbox/fast_func2roi.m @@ -1,6 +1,5 @@ function r = fast_func2roi(varargin) % r = fast_func2roi(varargin) -% '$Id' % @@ -19,7 +18,7 @@ % Reporting: freesurfer@nmr.mgh.harvard.edu % -version = '$Id: fast_func2roi.m,v 1.3 2011/03/02 00:04:04 nicks Exp $'; +version = 'fast_func2roi.m @FS_VERSION@'; fprintf(1,'%s\n',version); r = 1; diff --git a/fsfast/toolbox/fast_functwf.m b/fsfast/toolbox/fast_functwf.m index c955db18a7b..0e85cba8ee2 100644 --- a/fsfast/toolbox/fast_functwf.m +++ b/fsfast/toolbox/fast_functwf.m @@ -1,6 +1,5 @@ function r = fast_functwf(varargin) % r = fast_functwf(varargin) -% '$Id: fast_functwf.m,v 1.3 2011/03/02 00:04:04 nicks Exp $' % % Temporal analysis of functional data. @@ -22,7 +21,7 @@ % tic; -version = '$Id: fast_functwf.m,v 1.3 2011/03/02 00:04:04 nicks Exp $'; +version = 'fast_functwf.m @FS_VERSION@'; fprintf(1,'%s\n',version); r = 1; diff --git a/fsfast/toolbox/fast_fwhm2std.m b/fsfast/toolbox/fast_fwhm2std.m index dfdc8357ac4..2397d5b9725 100644 --- a/fsfast/toolbox/fast_fwhm2std.m +++ b/fsfast/toolbox/fast_fwhm2std.m @@ -2,7 +2,6 @@ % gstd = fast_fwhm2std(fwhm) % gstd = fwhm/sqrt(log(256.0)) % -% $Id: fast_fwhm2std.m,v 1.1 2007/04/04 01:59:36 greve Exp $ gstd = []; diff --git a/fsfast/toolbox/fast_glm_pcc.m b/fsfast/toolbox/fast_glm_pcc.m index c2cec1a1c4c..a59f0ded4f5 100644 --- a/fsfast/toolbox/fast_glm_pcc.m +++ b/fsfast/toolbox/fast_glm_pcc.m @@ -7,7 +7,6 @@ % WARNING: X must have a column of 1s or both X and y must have % been demeaned before the glm. % -% $Id: fast_glm_pcc.m,v 1.2 2012/11/19 22:18:23 greve Exp $ if(nargin ~= 4) fprintf('rho = fast_glm_pcc(beta,X,C,rvar)\n'); diff --git a/fsfast/toolbox/fast_group_glm.m b/fsfast/toolbox/fast_group_glm.m index 11c7cacc084..f63e72e880b 100644 --- a/fsfast/toolbox/fast_group_glm.m +++ b/fsfast/toolbox/fast_group_glm.m @@ -32,7 +32,7 @@ tic; -ver = '$Id: fast_group_glm.m,v 1.6 2011/03/02 00:04:04 nicks Exp $'; +ver = 'fast_group_glm.m @FS_VERSION@'; fprintf('%s\n',ver); Cflastruct = load(FLAConMat); diff --git a/fsfast/toolbox/fast_gui_bug.m b/fsfast/toolbox/fast_gui_bug.m index a7833ceb09e..05849d62c7d 100644 --- a/fsfast/toolbox/fast_gui_bug.m +++ b/fsfast/toolbox/fast_gui_bug.m @@ -13,7 +13,6 @@ % 1 - bug but contrast is balanced % 2 - bug and contrast is unbalanced % -% $Id: fast_gui_bug.m,v 1.1 2009/04/05 23:22:10 greve Exp $ bug = []; if(nargin ~= 1) diff --git a/fsfast/toolbox/fast_hann.m b/fsfast/toolbox/fast_hann.m index 2f31c65ed2e..aded033235b 100644 --- a/fsfast/toolbox/fast_hann.m +++ b/fsfast/toolbox/fast_hann.m @@ -5,7 +5,6 @@ % alpha = 0.5; % 0.54 for Hamming % h = alpha + (1-alpha)*cos(pi*x(ind)/tau); % -% $Id: fast_hann.m,v 1.1 2007/01/14 05:39:07 greve Exp $ alpha = 0.5; % 0.54 for Hamming h = zeros(size(x)); diff --git a/fsfast/toolbox/fast_hrf_halfcos.m b/fsfast/toolbox/fast_hrf_halfcos.m index 8add463cbf0..b806c414725 100644 --- a/fsfast/toolbox/fast_hrf_halfcos.m +++ b/fsfast/toolbox/fast_hrf_halfcos.m @@ -18,7 +18,6 @@ % Constrained linear basis sets for HRF modelling using Variational % Bayes NeuroImage 21 (2004) 1748 1761. % -% $Id: fast_hrf_halfcos.m,v 1.2 2007/07/08 20:59:51 greve Exp $ hrf = []; if(nargin < 1 & nargin > 2) diff --git a/fsfast/toolbox/fast_idealXtX.m b/fsfast/toolbox/fast_idealXtX.m index 625568a7beb..57903bc0bc1 100644 --- a/fsfast/toolbox/fast_idealXtX.m +++ b/fsfast/toolbox/fast_idealXtX.m @@ -14,7 +14,6 @@ % There is a simulation at the end of this file (after return) to % check the accuracy. % -% $Id: fast_idealXtX.m,v 1.3 2011/03/02 00:04:04 nicks Exp $ % % fast_idealXtX diff --git a/fsfast/toolbox/fast_igxavg.m b/fsfast/toolbox/fast_igxavg.m index 5d07de76ad1..079fd10595a 100644 --- a/fsfast/toolbox/fast_igxavg.m +++ b/fsfast/toolbox/fast_igxavg.m @@ -4,7 +4,6 @@ % for output of selxavg % Author: Douglas Greve % Questions or Comments: analysis-bugs@nmr.mgh.harvard.edu -% Version: $Id: fast_igxavg.m,v 1.3 2011/03/02 00:04:04 nicks Exp $ % r = fast_isxavg_fe(varargin) diff --git a/fsfast/toolbox/fast_inorm.m b/fsfast/toolbox/fast_inorm.m index f40e0763955..61b0f8e0acc 100644 --- a/fsfast/toolbox/fast_inorm.m +++ b/fsfast/toolbox/fast_inorm.m @@ -1,7 +1,6 @@ function r = fast_inorm(varargin) % r = fast_inorm(varargin) % Intensity normalizes and does some simple data hygene analysis. -% '$Id' % @@ -20,7 +19,7 @@ % Reporting: freesurfer@nmr.mgh.harvard.edu % -version = '$Id'; +version = 'fast_inorm.m @FS_VERSION@'; fprintf(1,'%s\n',version); r = 1; diff --git a/fsfast/toolbox/fast_intergroupavg.m b/fsfast/toolbox/fast_intergroupavg.m index f46ad25c7e8..61864ca4e7b 100644 --- a/fsfast/toolbox/fast_intergroupavg.m +++ b/fsfast/toolbox/fast_intergroupavg.m @@ -4,7 +4,6 @@ % % Author: Douglas Greve % Questions or Comments: analysis-bugs@nmr.mgh.harvard.edu -% Version: $Id: fast_intergroupavg.m,v 1.3 2011/03/02 00:04:04 nicks Exp $ % r = fast_isxavg_fe(varargin) diff --git a/fsfast/toolbox/fast_isxavg_fe.m b/fsfast/toolbox/fast_isxavg_fe.m index b1b7eea44ca..b945d34366f 100644 --- a/fsfast/toolbox/fast_isxavg_fe.m +++ b/fsfast/toolbox/fast_isxavg_fe.m @@ -4,7 +4,6 @@ % for output of selxavg % Author: Douglas Greve % Questions or Comments: analysis-bugs@nmr.mgh.harvard.edu -% Version: $Id: fast_isxavg_fe.m,v 1.3 2011/03/02 00:04:04 nicks Exp $ % r = fast_isxavg_fe(varargin) diff --git a/fsfast/toolbox/fast_ldretpar.m b/fsfast/toolbox/fast_ldretpar.m index 7649e1f801c..2f6be7b31ee 100644 --- a/fsfast/toolbox/fast_ldretpar.m +++ b/fsfast/toolbox/fast_ldretpar.m @@ -9,7 +9,6 @@ % stimtype eccen % direction pos % -% $Id: fast_ldretpar.m,v 1.1 2010/04/28 19:54:57 greve Exp $ retpar = []; if(nargin ~= 1) diff --git a/fsfast/toolbox/fast_lmfit.m b/fsfast/toolbox/fast_lmfit.m index bf106b59752..3c3ec73ed88 100644 --- a/fsfast/toolbox/fast_lmfit.m +++ b/fsfast/toolbox/fast_lmfit.m @@ -1,6 +1,5 @@ function [beta, exitflag, cost, beta2] = fast_lmfit(y,X,L) % [beta exitflag cost beta2] = fast_lmfit(y,X,L) -% $Id: fast_lmfit.m,v 1.3 2009/04/09 21:20:29 greve Exp $ if(nargin ~= 3) fprintf('[beta exitflag cost beta2] = fast_lmfit(y,X,L)'); diff --git a/fsfast/toolbox/fast_lpfmtx.m b/fsfast/toolbox/fast_lpfmtx.m index 7969cd27700..4b5df92d083 100644 --- a/fsfast/toolbox/fast_lpfmtx.m +++ b/fsfast/toolbox/fast_lpfmtx.m @@ -11,7 +11,6 @@ % rejection in the stop-band, but the worse the edge effects will % be. % -% $Id: fast_lpfmtx.m,v 1.1 2010/12/02 19:22:29 greve Exp $ % Ref: % http://www.exstrom.com/journal/sigproc diff --git a/fsfast/toolbox/fast_mergesxa.m b/fsfast/toolbox/fast_mergesxa.m index ed0301d3abf..0001c3a2eca 100644 --- a/fsfast/toolbox/fast_mergesxa.m +++ b/fsfast/toolbox/fast_mergesxa.m @@ -1,6 +1,5 @@ function r = fast_mergesxa(varargin) % r = fast_mergesxa(varargin) -% '$Id: fast_mergesxa.m,v 1.3 2011/03/02 00:04:04 nicks Exp $'; % @@ -19,7 +18,7 @@ % Reporting: freesurfer@nmr.mgh.harvard.edu % -version = '$Id: fast_mergesxa.m,v 1.3 2011/03/02 00:04:04 nicks Exp $'; +version = 'fast_mergesxa.m @FS_VERSION@'; fprintf(1,'%s\n',version); r = 1; diff --git a/fsfast/toolbox/fast_mkdesignmtx.m b/fsfast/toolbox/fast_mkdesignmtx.m index 27a9e71a32a..20e2a58c65f 100644 --- a/fsfast/toolbox/fast_mkdesignmtx.m +++ b/fsfast/toolbox/fast_mkdesignmtx.m @@ -1,6 +1,5 @@ function r = fast_mkdesignmtx(varargin) % r = fast_mkdesignmtx(varargin) -% '$Id: fast_mkdesignmtx.m,v 1.3 2011/03/02 00:04:04 nicks Exp $' % @@ -19,7 +18,7 @@ % Reporting: freesurfer@nmr.mgh.harvard.edu % -version = '$Id: fast_mkdesignmtx.m,v 1.3 2011/03/02 00:04:04 nicks Exp $'; +version = 'fast_mkdesignmtx.m @FS_VERSION@'; fprintf(1,'%s\n',version); r = 1; diff --git a/fsfast/toolbox/fast_nirs2oxy.m b/fsfast/toolbox/fast_nirs2oxy.m index 53e03700693..f0644907161 100644 --- a/fsfast/toolbox/fast_nirs2oxy.m +++ b/fsfast/toolbox/fast_nirs2oxy.m @@ -6,7 +6,6 @@ % from D Boas. Does not apply any temporal filtering. See also % Diamond NI 30 (2006) 88-101, eq 28. % -% $Id: fast_nirs2oxy.m,v 1.2 2009/12/10 23:16:02 greve Exp $ if(nargin ~= 1) fprintf('[oxy deoxy] = fast_nirs2oxy(rawnirs)\n'); diff --git a/fsfast/toolbox/fast_norm_con.m b/fsfast/toolbox/fast_norm_con.m index 32616f5fd95..b8e13e1158b 100644 --- a/fsfast/toolbox/fast_norm_con.m +++ b/fsfast/toolbox/fast_norm_con.m @@ -7,7 +7,6 @@ % % This is a replicated of code found in fast_contrastmtx.m % -% $Id: fast_norm_con.m,v 1.1 2009/04/05 23:23:05 greve Exp $ Cnorm = []; if(nargin ~= 1) diff --git a/fsfast/toolbox/fast_orthog.m b/fsfast/toolbox/fast_orthog.m index 5572815b6fe..7af0a448e21 100644 --- a/fsfast/toolbox/fast_orthog.m +++ b/fsfast/toolbox/fast_orthog.m @@ -3,7 +3,6 @@ % Orthonalize A wrt B % AoB = A - B*(inv(B'*B)*(B'*A)); % -% $Id: fast_orthog.m,v 1.1 2010/03/05 20:01:19 greve Exp $ AoB = []; if(nargin ~= 2) diff --git a/fsfast/toolbox/fast_outliermtx.m b/fsfast/toolbox/fast_outliermtx.m index be8beef7fad..81d6669cb18 100644 --- a/fsfast/toolbox/fast_outliermtx.m +++ b/fsfast/toolbox/fast_outliermtx.m @@ -5,7 +5,6 @@ % outliers - list of 1-based outlier numbers % ndata - number of data points (eg, time points) % -% $Id: fast_outliermtx.m,v 1.1 2010/03/31 16:30:23 greve Exp $ X = []; if(nargin ~= 2) diff --git a/fsfast/toolbox/fast_polyorder.m b/fsfast/toolbox/fast_polyorder.m index 638aaa6e439..92869b3a703 100644 --- a/fsfast/toolbox/fast_polyorder.m +++ b/fsfast/toolbox/fast_polyorder.m @@ -7,7 +7,6 @@ % % X = fast_polytrendmtx(1,ntp,1,order);% % -% $Id: fast_polyorder.m,v 1.1 2012/02/17 23:55:40 greve Exp $ % % fast_polyorder.m diff --git a/fsfast/toolbox/fast_psc2t2s.m b/fsfast/toolbox/fast_psc2t2s.m index 83be3839216..664a0bd857f 100644 --- a/fsfast/toolbox/fast_psc2t2s.m +++ b/fsfast/toolbox/fast_psc2t2s.m @@ -5,7 +5,6 @@ % change of the activation (relatitve to baseline), the echo time, % and the T2-star at baseline. % -% $Id: fast_psc2t2s.m,v 1.1 2007/02/23 19:09:12 greve Exp $ T2sAct = []; if(nargin ~= 3) diff --git a/fsfast/toolbox/fast_retroicor.m b/fsfast/toolbox/fast_retroicor.m index 3d617a80a92..2536c7acb9f 100644 --- a/fsfast/toolbox/fast_retroicor.m +++ b/fsfast/toolbox/fast_retroicor.m @@ -5,7 +5,6 @@ % Correction of Physiological Motion Effects in fMRI: RETROICOR. MRM, % 2000, 44:162-167. % -% $Id: fast_retroicor.m,v 1.4 2010/02/06 23:14:53 greve Exp $ X = []; diff --git a/fsfast/toolbox/fast_rrf.m b/fsfast/toolbox/fast_rrf.m index 3b427206d95..bc04543981c 100644 --- a/fsfast/toolbox/fast_rrf.m +++ b/fsfast/toolbox/fast_rrf.m @@ -4,7 +4,6 @@ % Respiratory Response Function from Birn, et al, NI 40 (2008), % 644-654, equation 3. % -% $Id: fast_rrf.m,v 1.1 2009/12/11 21:10:25 greve Exp $ if(nargin ~= 1) fprintf('rrf = fast_rrf(t)\n'); diff --git a/fsfast/toolbox/fast_rvt.m b/fsfast/toolbox/fast_rvt.m index 481f66d8b18..a8fd7f45107 100644 --- a/fsfast/toolbox/fast_rvt.m +++ b/fsfast/toolbox/fast_rvt.m @@ -6,7 +6,6 @@ % this is different than the "respiratory volume" measure from % Change, et al, NI 44 (2009) 857-869. % -% $Id: fast_rvt.m,v 1.1 2010/03/31 16:32:25 greve Exp $ rvt = []; if(nargin ~= 2) diff --git a/fsfast/toolbox/fast_selxavg.m b/fsfast/toolbox/fast_selxavg.m index 1f76f2cc44b..33d0b8b3b84 100644 --- a/fsfast/toolbox/fast_selxavg.m +++ b/fsfast/toolbox/fast_selxavg.m @@ -1,6 +1,5 @@ function r = fast_selxavg(varargin) % r = fast_selxavg(varargin) -% '$Id: fast_selxavg.m,v 1.45 2011/03/02 00:04:05 nicks Exp $' % @@ -19,7 +18,7 @@ % Reporting: freesurfer@nmr.mgh.harvard.edu % -version = '$Id: fast_selxavg.m,v 1.45 2011/03/02 00:04:05 nicks Exp $'; +version = 'fast_selxavg.m @FS_VERSION@'; fprintf(1,'%s\n',version); r = 1; diff --git a/fsfast/toolbox/fast_selxavg2.m b/fsfast/toolbox/fast_selxavg2.m index d84148ddc1c..1972b94478e 100644 --- a/fsfast/toolbox/fast_selxavg2.m +++ b/fsfast/toolbox/fast_selxavg2.m @@ -1,6 +1,5 @@ function r = fast_selxavg2(varargin) % r = fast_selxavg2(varargin) -% '$Id: fast_selxavg2.m,v 1.9 2011/03/02 00:04:05 nicks Exp $ % % For compatibility with version 1: % DOF ignores tpexcl @@ -62,7 +61,7 @@ tic; -version = '$Id: fast_selxavg2.m,v 1.9 2011/03/02 00:04:05 nicks Exp $'; +version = 'fast_selxavg2.m @FS_VERSION@'; fprintf(1,'%s\n',version); r = 1; outfmt = 'nii'; diff --git a/fsfast/toolbox/fast_selxavg3.m b/fsfast/toolbox/fast_selxavg3.m index dc322c749eb..b4501302489 100644 --- a/fsfast/toolbox/fast_selxavg3.m +++ b/fsfast/toolbox/fast_selxavg3.m @@ -1,6 +1,5 @@ % fast_selxavg3.m % -% $Id: fast_selxavg3.m,v 1.112 2015/05/08 21:04:00 greve Exp $ %---------------------------------------------- % @@ -33,7 +32,7 @@ fprintf('-------------------------\n'); -fprintf('$Id: fast_selxavg3.m,v 1.112 2015/05/08 21:04:00 greve Exp $\n'); +fprintf('fast_selxavg3.m @FS_VERSION@\n'); which fast_selxavg3 which fast_ldanaflac which MRIread @@ -60,7 +59,7 @@ if(~monly) quit; end return; end -flac0.sxaversion = '$Id: fast_selxavg3.m,v 1.112 2015/05/08 21:04:00 greve Exp $'; +flac0.sxaversion = 'fast_selxavg3.m @FS_VERSION@'; % remove non-mask when analyzing. This does not change the results % at all, it just prevents the processing of voxels that are diff --git a/fsfast/toolbox/fast_selxavg3b.m b/fsfast/toolbox/fast_selxavg3b.m index 3ce80ce497d..9e60097644c 100644 --- a/fsfast/toolbox/fast_selxavg3b.m +++ b/fsfast/toolbox/fast_selxavg3b.m @@ -10,7 +10,6 @@ % mcc -m -v -R -singleCompThread fast_selxavg3b.m % cp fast_selxavg3b $DEV/fsfast/bin/fast_selxavg3b.glnxa64 % -% $Id: fast_selxavg3b.m,v 1.4 2016/05/04 22:16:47 greve Exp $ % @@ -84,7 +83,7 @@ fprintf('#@# %s ###############################\n',sessname); fprintf('%s\n',sess); fprintf('-------------------------\n'); -fprintf('$Id: fast_selxavg3b.m,v 1.4 2016/05/04 22:16:47 greve Exp $\n'); +fprintf('fast_selxavg3b.m @FS_VERSION@\n'); fprintf('-------------------------\n'); if(isempty(outtop)) outtop = fast_dirname(sess); end @@ -108,7 +107,7 @@ if(~monly) quit; end return; end -flac0.sxaversion = '$Id: fast_selxavg3b.m,v 1.4 2016/05/04 22:16:47 greve Exp $'; +flac0.sxaversion = 'fast_selxavg3b.m @FS_VERSION@'; % remove non-mask when analyzing. This does not change the results % at all, it just prevents the processing of voxels that are diff --git a/fsfast/toolbox/fast_sigmoid.m b/fsfast/toolbox/fast_sigmoid.m index 690f7f4d1ff..7e9ccbca36b 100644 --- a/fsfast/toolbox/fast_sigmoid.m +++ b/fsfast/toolbox/fast_sigmoid.m @@ -9,7 +9,6 @@ % y = 1 at x = +inf % y will be the same size as x. % -% $Id: fast_sigmoid.m,v 1.2 2011/03/02 00:04:05 nicks Exp $ % % fast_sigmoid.m diff --git a/fsfast/toolbox/fast_sincmtx.m b/fsfast/toolbox/fast_sincmtx.m index d213ff3ce3d..91a41f17869 100644 --- a/fsfast/toolbox/fast_sincmtx.m +++ b/fsfast/toolbox/fast_sincmtx.m @@ -9,7 +9,6 @@ % window, the less the effect of the window. Setting hw=0 is like % setting hw = infinity. % -% $Id: fast_sincmtx.m,v 1.6 2011/03/02 00:04:05 nicks Exp $ % fast_sincmtx.m % diff --git a/fsfast/toolbox/fast_spatev.m b/fsfast/toolbox/fast_spatev.m index 712b1a67fcf..fa146f964e5 100644 --- a/fsfast/toolbox/fast_spatev.m +++ b/fsfast/toolbox/fast_spatev.m @@ -1,6 +1,5 @@ function r = fast_spatev(varargin) % r = fast_spatev(varargin) -% '$Id: fast_spatev.m,v 1.3 2011/03/02 00:04:05 nicks Exp $' % @@ -19,7 +18,7 @@ % Reporting: freesurfer@nmr.mgh.harvard.edu % -version = '$Id: fast_spatev.m,v 1.3 2011/03/02 00:04:05 nicks Exp $'; +version = 'fast_spatev.m @FS_VERSION@'; fprintf(1,'%s\n',version); r = 1; diff --git a/fsfast/toolbox/fast_spatevfilter.m b/fsfast/toolbox/fast_spatevfilter.m index 65c1c06daca..2efb39fa5f9 100644 --- a/fsfast/toolbox/fast_spatevfilter.m +++ b/fsfast/toolbox/fast_spatevfilter.m @@ -1,6 +1,5 @@ function r = fast_spatevfilter(varargin) % r = fast_spatev(varargin) -% '$Id: fast_spatevfilter.m,v 1.3 2011/03/02 00:04:05 nicks Exp $' % @@ -19,7 +18,7 @@ % Reporting: freesurfer@nmr.mgh.harvard.edu % -version = '$Id: fast_spatevfilter.m,v 1.3 2011/03/02 00:04:05 nicks Exp $'; +version = 'fast_spatevfilter.m @FS_VERSION@'; fprintf(1,'%s\n',version); r = 1; diff --git a/fsfast/toolbox/fast_spmhrf_sampled.m b/fsfast/toolbox/fast_spmhrf_sampled.m index 3a2461a3ee0..244fbdc073b 100644 --- a/fsfast/toolbox/fast_spmhrf_sampled.m +++ b/fsfast/toolbox/fast_spmhrf_sampled.m @@ -27,7 +27,6 @@ % hrf = hrf/sum(hrf(:,1)); % % -% $Id: fast_spmhrf_sampled.m,v 1.2 2010/03/23 17:00:21 greve Exp $ hrf = []; if(nargin < 1 | nargin > 2) diff --git a/fsfast/toolbox/fast_sratio.m b/fsfast/toolbox/fast_sratio.m index 6dd738ddc60..de71c452bfa 100644 --- a/fsfast/toolbox/fast_sratio.m +++ b/fsfast/toolbox/fast_sratio.m @@ -4,7 +4,6 @@ % if num > den then sratio = +num/den % if num < den then sratio = -den/num % -% $Id: fast_sratio.m,v 1.3 2011/03/02 00:04:05 nicks Exp $ % % fast_fast_sratio.m diff --git a/fsfast/toolbox/fast_st2fir.m b/fsfast/toolbox/fast_st2fir.m index 56ef77170b1..ff68286f70d 100644 --- a/fsfast/toolbox/fast_st2fir.m +++ b/fsfast/toolbox/fast_st2fir.m @@ -20,7 +20,6 @@ % but it is a good idea. % 6. If two stimuli fall within the sam TR bin, the Xfir % matrix will have a 2 instead of a 1. -% $Id: fast_st2fir.m,v 1.21 2011/03/02 00:04:05 nicks Exp $ % diff --git a/fsfast/toolbox/fast_svana.m b/fsfast/toolbox/fast_svana.m index 0c3259c0427..0c26ae8c8ac 100644 --- a/fsfast/toolbox/fast_svana.m +++ b/fsfast/toolbox/fast_svana.m @@ -1,6 +1,5 @@ function [err,msg] = fast_svana(ananame,flac) % [err,msg] = fast_svana(ananame,ana) -% $Id: fast_svana.m,v 1.12 2010/04/03 00:09:17 greve Exp $ err = 1; if(nargin ~= 2) diff --git a/fsfast/toolbox/fast_svdfunctcvm.m b/fsfast/toolbox/fast_svdfunctcvm.m index 12847b51e56..c9230d6f499 100644 --- a/fsfast/toolbox/fast_svdfunctcvm.m +++ b/fsfast/toolbox/fast_svdfunctcvm.m @@ -1,6 +1,5 @@ function r = fast_svdfunctcvm(varargin) % r = fast_svdfunctcvm(varargin) -% '$Id: fast_svdfunctcvm.m,v 1.4 2011/03/02 00:04:05 nicks Exp $' % @@ -19,7 +18,7 @@ % Reporting: freesurfer@nmr.mgh.harvard.edu % -version = '$Id: fast_svdfunctcvm.m,v 1.4 2011/03/02 00:04:05 nicks Exp $' +version = 'fast_svdfunctcvm.m @FS_VERSION@'; fprintf(1,'%s\n',version); r = 1; diff --git a/fsfast/toolbox/fast_swfflac_nbhd_sess.m b/fsfast/toolbox/fast_swfflac_nbhd_sess.m index 162825d058c..0784f6f81de 100644 --- a/fsfast/toolbox/fast_swfflac_nbhd_sess.m +++ b/fsfast/toolbox/fast_swfflac_nbhd_sess.m @@ -46,7 +46,7 @@ -fast_swfflac_nbhd_sess_ver = '$Id: fast_swfflac_nbhd_sess.m,v 1.7 2011/03/02 00:04:05 nicks Exp $'; +fast_swfflac_nbhd_sess_ver = 'fast_swfflac_nbhd_sess.m @FS_VERSION@'; SynthSeed = round(sum(100*clock)); randn('state',SynthSeed); diff --git a/fsfast/toolbox/fast_swfflac_sess.m b/fsfast/toolbox/fast_swfflac_sess.m index a176746c8d9..56c9e3889c5 100644 --- a/fsfast/toolbox/fast_swfflac_sess.m +++ b/fsfast/toolbox/fast_swfflac_sess.m @@ -37,7 +37,7 @@ % Reporting: freesurfer@nmr.mgh.harvard.edu % -fast_swfflac_sess_ver = '$Id'; +fast_swfflac_sess_ver = 'fast_swfflac_sess.m @FS_VERSION@'; SynthSeed = round(sum(100*clock)); randn('state',SynthSeed); diff --git a/fsfast/toolbox/fast_volview.m b/fsfast/toolbox/fast_volview.m index 57de373ab36..93855c225ad 100644 --- a/fsfast/toolbox/fast_volview.m +++ b/fsfast/toolbox/fast_volview.m @@ -2,7 +2,6 @@ % Name: fast_volview(varargin) % Author: Douglas Greve % Questions or Comments: analysis-bugs@nmr.mgh.harvard.edu -% Version: $Id: fast_volview.m,v 1.3 2011/03/02 00:04:05 nicks Exp $ % diff --git a/fsfast/toolbox/fast_xcorr.m b/fsfast/toolbox/fast_xcorr.m index 835de31a264..4a7e4271e1d 100644 --- a/fsfast/toolbox/fast_xcorr.m +++ b/fsfast/toolbox/fast_xcorr.m @@ -2,7 +2,6 @@ % rho = fast_xcorr(x,y,demean) % Default is to demean. Set demean=0 to turn off. % rho = sum(x.*y)./sqrt(sum(x.^2) .* sum(y.^2)); -% $Id: fast_xcorr.m,v 1.1 2010/03/31 16:33:22 greve Exp $ rho = []; if(nargin < 2 | nargin > 3) diff --git a/fsfast/toolbox/flac_ev2irf.m b/fsfast/toolbox/flac_ev2irf.m index defc2b69b7d..edd00cd343f 100644 --- a/fsfast/toolbox/flac_ev2irf.m +++ b/fsfast/toolbox/flac_ev2irf.m @@ -7,7 +7,6 @@ % sets the scaling factor. One can expect an event of this % duration witha peak of 1% signal change to have a beta=1. % -% $Id: flac_ev2irf.m,v 1.10 2011/03/02 00:04:05 nicks Exp $ % % flac_ev2irf.m diff --git a/fsfast/toolbox/flac_funcstem.m b/fsfast/toolbox/flac_funcstem.m index 36a990c6fdd..3601b350522 100644 --- a/fsfast/toolbox/flac_funcstem.m +++ b/fsfast/toolbox/flac_funcstem.m @@ -3,7 +3,6 @@ % Determines the funcstem or maskstem. Should be % consistent with the getana script. % -% $Id: flac_funcstem.m,v 1.5 2015/11/04 20:53:30 greve Exp $ stem = []; if(nargin < 1 | nargin > 2) diff --git a/fsfast/toolbox/flac_resynth.m b/fsfast/toolbox/flac_resynth.m index 5361d969903..198fbbbbf19 100644 --- a/fsfast/toolbox/flac_resynth.m +++ b/fsfast/toolbox/flac_resynth.m @@ -17,7 +17,7 @@ % Reporting: freesurfer@nmr.mgh.harvard.edu % -flac_resynth_version = '$Id: flac_resynth.m,v 1.8 2011/03/02 00:04:05 nicks Exp $'; +flac_resynth_version = 'flac_resynth.m @FS_VERSION@'; flac_resynth_version_no = sscanf(flac_resynth_version,'%*s %*s %s',1); diff --git a/fsfast/toolbox/flac_tfilter.m b/fsfast/toolbox/flac_tfilter.m index 071a83dce9e..63017c77aee 100644 --- a/fsfast/toolbox/flac_tfilter.m +++ b/fsfast/toolbox/flac_tfilter.m @@ -3,7 +3,6 @@ % Builds a matrix to implement a temporal filter. flac.ntp and % flac.TR must be set. See flac_tfilter_parse.m. % -% $Id: flac_tfilter.m,v 1.2 2011/03/02 00:04:05 nicks Exp $ % % flac_tfilter.m diff --git a/fsfast/toolbox/flacview.m b/fsfast/toolbox/flacview.m index 7c212e6e0ad..7dd664bbdca 100644 --- a/fsfast/toolbox/flacview.m +++ b/fsfast/toolbox/flacview.m @@ -18,7 +18,7 @@ % Reporting: freesurfer@nmr.mgh.harvard.edu % -version = '$Id: flacview.m,v 1.5 2011/03/02 00:04:05 nicks Exp $'; +version = 'flacview.m @FS_VERSION@'; r = 1; %% Print usage if there are no arguments %% diff --git a/fsfast/toolbox/fmri_isxavg_fe.m b/fsfast/toolbox/fmri_isxavg_fe.m index 0b590998bfb..552740972f6 100644 --- a/fsfast/toolbox/fmri_isxavg_fe.m +++ b/fsfast/toolbox/fmri_isxavg_fe.m @@ -3,7 +3,6 @@ % for output of selxavg % Author: Douglas Greve % Questions or Comments: analysis-bugs@nmr.mgh.harvard.edu -% Version: $Id: fmri_isxavg_fe.m,v 1.4 2011/03/02 00:04:06 nicks Exp $ % diff --git a/fsfast/toolbox/fmri_ldbvolume.m b/fsfast/toolbox/fmri_ldbvolume.m index b5daa61f9fe..04fafe1a53a 100644 --- a/fsfast/toolbox/fmri_ldbvolume.m +++ b/fsfast/toolbox/fmri_ldbvolume.m @@ -6,7 +6,6 @@ % counts the number of slices and determines the extension % (unless extension is specified). % -% '$Id: fmri_ldbvolume.m,v 1.4 2011/03/02 00:04:06 nicks Exp $' % diff --git a/fsfast/toolbox/fmri_mrestriction2.m b/fsfast/toolbox/fmri_mrestriction2.m index 3a1d1f21fa4..a810329ab58 100644 --- a/fsfast/toolbox/fmri_mrestriction2.m +++ b/fsfast/toolbox/fmri_mrestriction2.m @@ -13,7 +13,6 @@ % ndelays for sumconds=1 % nc*nd for sumconds=0 and sumdelays=0 % -% '$Id: fmri_mrestriction2.m,v 1.3 2011/03/02 00:04:06 nicks Exp $' % diff --git a/fsfast/toolbox/fmri_norm.m b/fsfast/toolbox/fmri_norm.m index 649af3a03f2..bf1c44a360f 100644 --- a/fsfast/toolbox/fmri_norm.m +++ b/fsfast/toolbox/fmri_norm.m @@ -3,7 +3,6 @@ % % normalizes the columns of v. order=2 by default. % -% '$Id: fmri_norm.m,v 1.4 2011/03/02 00:04:06 nicks Exp $' % diff --git a/fsfast/toolbox/fmri_saxslice.m b/fsfast/toolbox/fmri_saxslice.m index ff527302a76..4c6b85f5de8 100644 --- a/fsfast/toolbox/fmri_saxslice.m +++ b/fsfast/toolbox/fmri_saxslice.m @@ -50,7 +50,7 @@ fprintf(1,'\n'); fprintf(1,' --- SAXSlice: Starting ------\n'); -fprintf(1,'$Id: fmri_saxslice.m,v 1.3 2011/03/02 00:04:06 nicks Exp $'); +fprintf(1,'fmri_saxslice.m @FS_VERSION@\n'); if( ~exist('QuitOnError') ) QuitOnError = 1; end diff --git a/fsfast/toolbox/fmri_svbvolume.m b/fsfast/toolbox/fmri_svbvolume.m index 4e32bfd9e64..188aa633b86 100644 --- a/fsfast/toolbox/fmri_svbvolume.m +++ b/fsfast/toolbox/fmri_svbvolume.m @@ -4,7 +4,6 @@ function fmri_ldbvolume(vol,stem,voldim,ext) % Saves a volume in bfile format where vol is a 4D structure % of dimension Nslices X Nrows X Ncols X Ndepth. % -% '$Id: fmri_svbvolume.m,v 1.3 2011/03/02 00:04:06 nicks Exp $' % diff --git a/fsfast/toolbox/fmri_sxaslice.m b/fsfast/toolbox/fmri_sxaslice.m index 158aadde5bd..f3fa2f0696f 100644 --- a/fsfast/toolbox/fmri_sxaslice.m +++ b/fsfast/toolbox/fmri_sxaslice.m @@ -32,7 +32,7 @@ fprintf(1,'\n'); fprintf(1,' --- fmri_sxaslice: Starting ------\n'); -fprintf(1,'$Id: fmri_sxaslice.m,v 1.3 2011/03/02 00:04:06 nicks Exp $\n'); +fprintf(1,'fmri_sxaslice.m @FS_VERSION@\n'); if( ~exist('QuitOnError') ) QuitOnError = 1; end diff --git a/fsfast/toolbox/fmri_sxavol.m b/fsfast/toolbox/fmri_sxavol.m index ba9466a1efb..5ce8fa8d62a 100644 --- a/fsfast/toolbox/fmri_sxavol.m +++ b/fsfast/toolbox/fmri_sxavol.m @@ -31,7 +31,7 @@ fprintf(1,'\n'); fprintf(1,' --- fmri_sxavol: Starting ------\n'); -fprintf(1,'$Id: fmri_sxavol.m,v 1.3 2011/03/02 00:04:06 nicks Exp $\n'); +fprintf(1,'fmri_sxavol.m @FS_VERSION@\n'); if( ~exist('QuitOnError') ) QuitOnError = 1; end diff --git a/fsfast/toolbox/fmri_synthpar3.m b/fsfast/toolbox/fmri_synthpar3.m index b05243ad92c..db47f9efc37 100644 --- a/fsfast/toolbox/fmri_synthpar3.m +++ b/fsfast/toolbox/fmri_synthpar3.m @@ -9,7 +9,6 @@ % tprescan - time of first stimulus prior to scanning (not included % in trun). % -% '$Id: fmri_synthpar3.m,v 1.3 2011/03/02 00:04:06 nicks Exp $' % diff --git a/fsfast/toolbox/fmri_wisxavg_fe.m b/fsfast/toolbox/fmri_wisxavg_fe.m index 1e5c899a187..8a4f8385249 100644 --- a/fsfast/toolbox/fmri_wisxavg_fe.m +++ b/fsfast/toolbox/fmri_wisxavg_fe.m @@ -3,7 +3,6 @@ % for output of selxavg % Author: Douglas Greve % Questions or Comments: analysis-bugs@nmr.mgh.harvard.edu -% Version: $Id: fmri_wisxavg_fe.m,v 1.3 2011/03/02 00:04:07 nicks Exp $ %%%% These variables must be specified %%%%%%%% % InStemList diff --git a/fsfast/toolbox/ldstruct.m b/fsfast/toolbox/ldstruct.m index 1bee1018457..9071bc8bf12 100644 --- a/fsfast/toolbox/ldstruct.m +++ b/fsfast/toolbox/ldstruct.m @@ -8,7 +8,6 @@ % ... % type is char or nonchar % -% $Id: ldstruct.m,v 1.5 2011/03/02 00:04:07 nicks Exp $ % diff --git a/fsfast/toolbox/mkanalysis_gui.m b/fsfast/toolbox/mkanalysis_gui.m index 12dfd231587..b3b09c5386e 100644 --- a/fsfast/toolbox/mkanalysis_gui.m +++ b/fsfast/toolbox/mkanalysis_gui.m @@ -51,7 +51,7 @@ function mkanalysis_gui_OpeningFcn(hObject, eventdata, handles, varargin) % Choose default command line output for mkanalysis_gui handles.output = hObject; -handles.version = '$Id: mkanalysis_gui.m,v 1.22 2010/04/06 23:08:34 greve Exp $'; +handles.version = 'mkanalysis_gui.m @FS_VERSION@'; handles.saveneeded = 1; handles.flac = []; handles.clone = ''; diff --git a/fsfast/toolbox/mkcontrast2m.m b/fsfast/toolbox/mkcontrast2m.m index 88ff357a2d2..1e7fa395d26 100644 --- a/fsfast/toolbox/mkcontrast2m.m +++ b/fsfast/toolbox/mkcontrast2m.m @@ -2,7 +2,6 @@ % err = mkcontrast2(configfile) % Config file is as created by the mkcontrast2 script % This matlab script was written to be compiled -% $Id: mkcontrast2m.m,v 1.1 2015/05/08 19:02:12 greve Exp $ fprintf('starting mkcontrast2m\n'); diff --git a/fsfast/toolbox/mkcontrast_gui.m b/fsfast/toolbox/mkcontrast_gui.m index cd3a2c844bd..41d22ebf39b 100644 --- a/fsfast/toolbox/mkcontrast_gui.m +++ b/fsfast/toolbox/mkcontrast_gui.m @@ -3,7 +3,6 @@ % mkcontrast_gui(cbstring); % Creates a cspec field in the hparent UserData struct % If Cancel is hit, this field is there but empty -% $Id: mkcontrast_gui.m,v 1.11 2009/04/10 01:55:34 greve Exp $ msg = []; ud = []; @@ -443,7 +442,7 @@ function argNcheck(cbflag,nflag,nmax,nargs) cspec.rdelta = [0 0]; cspec.rtau = [0 0]; cspec.ContrastMtx_0 = fast_contrastmtx(cspec); -cspec.creator = '$Id: mkcontrast_gui.m,v 1.11 2009/04/10 01:55:34 greve Exp $'; +cspec.creator = 'mkcontrast_gui.m @FS_VERSION@'; return; diff --git a/fsfast/toolbox/rft_zcluster_cdf.m b/fsfast/toolbox/rft_zcluster_cdf.m index b9e7c90a242..51481873d36 100644 --- a/fsfast/toolbox/rft_zcluster_cdf.m +++ b/fsfast/toolbox/rft_zcluster_cdf.m @@ -29,7 +29,6 @@ % Activations in PET and fMRI: Levels of Inference and Power. % Neuroimage 40, 223-235 (1996). % -% $Id: rft_zcluster_cdf.m,v 1.8 2016/11/01 19:44:16 greve Exp $ % % rft_zcluster_cdf.m diff --git a/fsfast/toolbox/svstruct.m b/fsfast/toolbox/svstruct.m index 475686bfccc..21abea561d8 100644 --- a/fsfast/toolbox/svstruct.m +++ b/fsfast/toolbox/svstruct.m @@ -14,7 +14,6 @@ function svstruct(strct, fid) % % See also: ldstruct() % -% $Id: svstruct.m,v 1.3 2011/03/02 00:04:07 nicks Exp $ % diff --git a/fsfast/toolbox/swapview.m b/fsfast/toolbox/swapview.m index 94603e91da3..8512337e031 100644 --- a/fsfast/toolbox/swapview.m +++ b/fsfast/toolbox/swapview.m @@ -18,7 +18,7 @@ % Reporting: freesurfer@nmr.mgh.harvard.edu % -version = '$Id: swapview.m,v 1.12 2011/03/02 00:04:07 nicks Exp $'; +version = 'swapview.m @FS_VERSION@'; r = 1; %% Print usage if there are no arguments %% diff --git a/fsfast/toolbox/tdr_epi_phtraj.m b/fsfast/toolbox/tdr_epi_phtraj.m index 7da65beeaef..f57b784e276 100644 --- a/fsfast/toolbox/tdr_epi_phtraj.m +++ b/fsfast/toolbox/tdr_epi_phtraj.m @@ -7,7 +7,6 @@ % % If delay is specified, then the waveform delayed by delay usec. % -% $Id: tdr_epi_phtraj.m,v 1.5 2011/03/02 00:04:07 nicks Exp $ % % tdr_epi_phtraj.m diff --git a/fsfast/toolbox/tdr_ghostcomp.m b/fsfast/toolbox/tdr_ghostcomp.m index a13fb858b14..54f48a7b88e 100644 --- a/fsfast/toolbox/tdr_ghostcomp.m +++ b/fsfast/toolbox/tdr_ghostcomp.m @@ -7,7 +7,6 @@ % % revenfixed = reven .* gcomp (careful with transpose) % -% $Id: tdr_ghostcomp.m,v 1.9 2010/03/22 17:41:44 greve Exp $ %order = 2; % poly order rthresh = .2; % keep the top rthresh diff --git a/fsfast/toolbox/yak.m b/fsfast/toolbox/yak.m index 7273a7ee204..7edf0ed9d62 100644 --- a/fsfast/toolbox/yak.m +++ b/fsfast/toolbox/yak.m @@ -37,7 +37,6 @@ function yak(varargin) if(nargin == 0) msg = 'USAGE: hfig = yak(flag,options)'; - msg = sprintf('%s\n$Id: yak.m,v 1.7 2011/03/02 00:04:08 nicks Exp $',msg); qoe(msg);error(msg); end diff --git a/fsfast/toolbox/yak2.m b/fsfast/toolbox/yak2.m index 86580ec8686..e7cff16b0a2 100644 --- a/fsfast/toolbox/yak2.m +++ b/fsfast/toolbox/yak2.m @@ -37,7 +37,6 @@ function yak2(varargin) if(nargin == 0) msg = 'USAGE: hfig = yak2(flag,options)'; - msg = sprintf('%s\n$Id: yak2.m,v 1.10 2011/03/02 00:04:08 nicks Exp $',msg); qoe(msg);error(msg); end diff --git a/gems/GUI/vtkFlRenderWindowInteractor.cxx b/gems/GUI/vtkFlRenderWindowInteractor.cxx index deb8227883d..f49fa8bda1b 100755 --- a/gems/GUI/vtkFlRenderWindowInteractor.cxx +++ b/gems/GUI/vtkFlRenderWindowInteractor.cxx @@ -19,7 +19,6 @@ * License along with this library; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * - * $Id: vtkFlRenderWindowInteractor.cxx,v 1.1 2016/12/02 17:16:12 zkaufman Exp $ */ /* @@ -381,10 +380,8 @@ int vtkFlRenderWindowInteractor::handle( int event ) { //--------------------------------------------------------------------------- //--------------------------------------------------------------------------- -static char const rcsid[] = - "$Id: vtkFlRenderWindowInteractor.cxx,v 1.1 2016/12/02 17:16:12 zkaufman Exp $"; const char *vtkFlRenderWindowInteractor_rcsid(void) { - return rcsid; + return "vtkFlRenderWindowInteractor"; } diff --git a/gems/GUI/vtkFlRenderWindowInteractor.h b/gems/GUI/vtkFlRenderWindowInteractor.h index 157a5a2ff97..e142902cb1c 100755 --- a/gems/GUI/vtkFlRenderWindowInteractor.h +++ b/gems/GUI/vtkFlRenderWindowInteractor.h @@ -21,7 +21,6 @@ * * See the .cxx for more notes. * - * $Id: vtkFlRenderWindowInteractor.h,v 1.1 2016/12/02 17:16:12 zkaufman Exp $ */ #ifndef _vtkFlRenderWindowInteractor_h diff --git a/hiam_make_template/hiam_make_template.cpp b/hiam_make_template/hiam_make_template.cpp index df44ec7b5bf..07fa18ef8fe 100644 --- a/hiam_make_template/hiam_make_template.cpp +++ b/hiam_make_template/hiam_make_template.cpp @@ -25,6 +25,7 @@ #include #include +#include "version.h" #include "macros.h" #include "error.h" #include "diag.h" @@ -33,7 +34,6 @@ #include "mri.h" #include "macros.h" -static char vcid[] = "$Id: hiam_make_template.c,v 1.5 2011/03/02 00:04:08 nicks Exp $"; int main(int argc, char *argv[]) ; @@ -351,6 +351,6 @@ print_help(void) { static void print_version(void) { - fprintf(stderr, "%s\n", vcid) ; + fprintf(stderr, "%s\n", getVersion().c_str()) ; exit(1) ; } diff --git a/hiam_register/hiam_register.cpp b/hiam_register/hiam_register.cpp index cdb9783864d..d24abf356f3 100644 --- a/hiam_register/hiam_register.cpp +++ b/hiam_register/hiam_register.cpp @@ -19,6 +19,7 @@ #include #include +#include "version.h" #include "macros.h" #include "mri.h" @@ -30,7 +31,6 @@ #include "proto.h" #include "timer.h" -static char vcid[] = "$Id: hiam_register.c,v 1.6 2011/12/12 03:28:32 greve Exp $"; static float sigmas[] = { @@ -425,7 +425,7 @@ print_help(void) { static void print_version(void) { - fprintf(stderr, "%s\n", vcid) ; + fprintf(stderr, "%s\n", getVersion().c_str()) ; exit(1) ; } diff --git a/histo_compute_joint_density/histo_compute_joint_density.cpp b/histo_compute_joint_density/histo_compute_joint_density.cpp index 0d11acf27f1..22fe832116c 100644 --- a/histo_compute_joint_density/histo_compute_joint_density.cpp +++ b/histo_compute_joint_density/histo_compute_joint_density.cpp @@ -33,8 +33,6 @@ #include "proto.h" #include "macros.h" -static char vcid[] = - "$Id: histo_compute_joint_density.c,v 1.4 2011/03/02 00:04:09 nicks Exp $"; const char *Progname ; static int get_option(int argc, char *argv[]) ; static void usage_exit(void) ; @@ -230,7 +228,7 @@ print_help(void) { static void print_version(void) { - fprintf(stderr, "%s\n", vcid) ; + fprintf(stderr, "%s\n", getVersion().c_str()) ; exit(1) ; } diff --git a/histo_register_block/histo_register_block.cpp b/histo_register_block/histo_register_block.cpp index 15087ef6245..90d730ba8f6 100644 --- a/histo_register_block/histo_register_block.cpp +++ b/histo_register_block/histo_register_block.cpp @@ -34,8 +34,6 @@ #define RGB_SIZE 500 -static char vcid[] = - "$Id: histo_register_block.c,v 1.9 2011/03/02 00:04:09 nicks Exp $"; static int powell_minimize(MRI *mri_block, MRI *mri_histo, @@ -384,7 +382,7 @@ print_help(void) { static void print_version(void) { - fprintf(stderr, "%s\n", vcid) ; + fprintf(stderr, "%s\n", getVersion().c_str()) ; exit(1) ; } diff --git a/include/cmdargs.h b/include/cmdargs.h index 21e9e61918a..8db597fd495 100644 --- a/include/cmdargs.h +++ b/include/cmdargs.h @@ -15,13 +15,11 @@ // cmdargs.h - include file for cmdargs.c (used for // handling command-line arguments) -// $Id: cmdargs.h,v 1.5 2011/03/02 00:04:09 nicks Exp $ #ifndef CMDARGS_H #define CMDARGS_H -const char * CMDSrcVersion(void); void CMDargNErr(char *option, int n); int CMDsingleDash(char *flag); int CMDisFlag(char *flag); diff --git a/include/dti.h b/include/dti.h index 7a262984ae0..b034ba2c956 100644 --- a/include/dti.h +++ b/include/dti.h @@ -13,7 +13,6 @@ */ -// $Id: dti.h,v 1.18 2015/04/16 18:49:31 greve Exp $ #ifndef DTI_INC #define DTI_INC @@ -33,7 +32,6 @@ typedef struct } DTI; -const char *DTIsrcVersion(void); int DTIfree(DTI **pdti); int DTIparamsFromSiemensAscii(const char *fname, float *bValue,int *nDir, int *nB0); int DTIloadGradients(DTI *dti,const char *GradFile); diff --git a/include/dtk.fs.h b/include/dtk.fs.h index b2e25547cf1..7ce16113ed6 100644 --- a/include/dtk.fs.h +++ b/include/dtk.fs.h @@ -54,7 +54,6 @@ typedef struct MRI *mri_template; // only need geometry } DTK_TRACK_SET; -const char *DTKFSSrcVersion(void); DTK_TRACK_SET *DTKloadTrackSet(char *trkfile, char *mrifile); DTK_TRACK *DTKreadTrack(FILE *fp, int n_scalars, int n_properties, float dc, float dr, float ds); diff --git a/include/fmriutils.h b/include/fmriutils.h index 41f5b2f73b3..4ce70569a06 100644 --- a/include/fmriutils.h +++ b/include/fmriutils.h @@ -67,7 +67,6 @@ typedef struct MRIGLM; /*---------------------------------------------------------*/ -const char *fMRISrcVersion(void); MRI *fMRImatrixMultiply(MRI *inmri, MATRIX *M, MRI *outmri); MRI *fMRIcovariance(MRI *fmri, int Lag, float DOFAdjust, MRI *mask, MRI *covar); diff --git a/include/fsenv.h b/include/fsenv.h index 629c5a2f822..b55ede96c42 100644 --- a/include/fsenv.h +++ b/include/fsenv.h @@ -39,7 +39,6 @@ typedef struct } FSENV; -const char *FSENVsrcVersion(void); FSENV *FSENVgetenv(void); int FSENVprintenv(FILE *fp,FSENV *env); int FSENVsetSUBJECTS_DIR(char *SUBJECTS_DIR); diff --git a/include/fsglm.h b/include/fsglm.h index 8a63a09bfb8..9bd48130654 100644 --- a/include/fsglm.h +++ b/include/fsglm.h @@ -14,14 +14,12 @@ // fsglm.h - include file for fsglm.c -// $Id: fsglm.h,v 1.17 2015/03/31 22:12:23 greve Exp $ #ifndef FSGLM_H #define FSGLM_H #include "matrix.h" -const char * GLMSrcVersion(void); #undef X #define GLMMAT_NCONTRASTS_MAX 100 diff --git a/include/mrisurf.h b/include/mrisurf.h index 9000282f617..2a31c5ececb 100644 --- a/include/mrisurf.h +++ b/include/mrisurf.h @@ -492,7 +492,6 @@ typedef struct } VALS_VP; -const char *MRISurfSrcVersion(void); /* new functions */ int MRISvectorRegister(MRI_SURFACE *mris, diff --git a/include/randomfields.h b/include/randomfields.h index 68788af766c..1e38fd5a2e8 100644 --- a/include/randomfields.h +++ b/include/randomfields.h @@ -13,7 +13,6 @@ */ -// $Id: randomfields.h,v 1.12 2016/12/06 20:25:48 greve Exp $ #ifndef RANDOMFIELDS_H #define RANDOMFIELDS_H @@ -42,7 +41,6 @@ typedef struct RANDOM_FIELD_SPEC, RFS; -const char *RFSrcVersion(void); RFS *RFspecInit(unsigned long int seed, sc_rng_type *rngtype); int RFspecFree(RFS **prfs); int RFname2Code(RFS *rfs); diff --git a/include/selxavgio.h b/include/selxavgio.h index d7f8434c1f0..a39cbcbed40 100644 --- a/include/selxavgio.h +++ b/include/selxavgio.h @@ -15,7 +15,6 @@ /*************************************************************** Name: selxavgio.h - $Id: selxavgio.h,v 1.6 2011/03/02 00:04:10 nicks Exp $ Author: Douglas Greve Purpose: Routines for handling header files for data created by selxavg or selavg (selectively averaged). diff --git a/include/surfcluster.h b/include/surfcluster.h index a27bac6b1c3..6936cc8e7d8 100644 --- a/include/surfcluster.h +++ b/include/surfcluster.h @@ -85,7 +85,6 @@ SCS *sclustPruneByCWPval(SCS *ClusterList, int nclusters, int sclustAnnot(MRIS *surf, int NClusters); int sclustGrowByDist(MRIS *surf, int seedvtxno, double dthresh, int shape, int vtxno, int *vtxlist); -const char *sculstSrcVersion(void); int sclustSaveAsPointSet(char *fname, SCS *scslist, int NClusters, MRIS *surf); #endif diff --git a/include/volcluster.h b/include/volcluster.h index 7828585a8ff..f158e2b997b 100644 --- a/include/volcluster.h +++ b/include/volcluster.h @@ -47,7 +47,6 @@ int VolClustFixMNI = 0; extern int VolClustFixMNI; #endif -const char *vclustSrcVersion(void); VOLCLUSTER *clustAllocCluster(int nmembers); int clustFreeCluster(VOLCLUSTER **ppvc); VOLCLUSTER *clustCopyCluster(VOLCLUSTER *vc); diff --git a/infant/check_infant_recon_success.csh b/infant/check_infant_recon_success.csh index 8b92d64bea7..990a16314af 100755 --- a/infant/check_infant_recon_success.csh +++ b/infant/check_infant_recon_success.csh @@ -5,9 +5,6 @@ ## set inputargs = ($argv); -set VERSION = '$Id: infant_recon_all,v 1.00 2017/01/10 12:27:40 lzollei Exp $'; - - set fsdirset = 0; ## read input diff --git a/infant/infant_recon_all b/infant/infant_recon_all index 865b025d3a4..df82c5f02ed 100755 --- a/infant/infant_recon_all +++ b/infant/infant_recon_all @@ -5,7 +5,7 @@ ## set inputargs = ($argv); -set VERSION = '$Id: infant_recon_all,v 1.00 2017/01/10 12:27:40 lzollei Exp $'; +set VERSION = 'infant_recon_all @FS_VERSION@'; set checkresults = 0 # after each processing step FreeView is called to visualize the results set nolog = 0 # keep logging the processing steps diff --git a/lta_convert/lta_convert.cpp b/lta_convert/lta_convert.cpp index 5a6850af2d2..b8f4eda0e5c 100644 --- a/lta_convert/lta_convert.cpp +++ b/lta_convert/lta_convert.cpp @@ -59,8 +59,6 @@ static struct Parameters P = static void printUsage(void); static bool parseCommandLine(int argc, char *argv[], Parameters & P); -static char vcid[] = - "$Id: lta_convert.cpp,v 1.10 2016/08/09 02:11:11 zkaufman Exp $"; const char *Progname = NULL; LTA * shallowCopyLTA(const LTA * lta) @@ -622,7 +620,7 @@ void writeITK(const string& fname, const LTA * lta) int main(int argc, char *argv[]) { - cout << vcid << endl << endl; + cout << getVersion() << endl << endl; // Default initialization int nargs = handleVersionOption(argc, argv, "lta_convert"); diff --git a/matlab/HippoSF/myMRIwrite.m b/matlab/HippoSF/myMRIwrite.m index f5b7a246730..72bcc4a2c5b 100644 --- a/matlab/HippoSF/myMRIwrite.m +++ b/matlab/HippoSF/myMRIwrite.m @@ -363,7 +363,6 @@ % reshaped to 27307x1x6xnframes. This is for handling the 7th % order icosahedron used by FS group analysis. % -% $Id: save_nifti.m,v 1.14 2011/10/17 19:58:37 nicks Exp $ % % save_nifti.m diff --git a/matlab/MRIsegReg.m b/matlab/MRIsegReg.m index 728511841b1..057b5ef4cb3 100644 --- a/matlab/MRIsegReg.m +++ b/matlab/MRIsegReg.m @@ -1,6 +1,5 @@ function err = MRIsegReg(subject) % err = MRIsegReg(subject) -% $Id: MRIsegReg.m,v 1.3 2007/09/28 00:41:52 greve Exp $ err = 1; if(nargin ~= 1) diff --git a/matlab/MRIvote.m b/matlab/MRIvote.m index 7222427bf79..9f54367880d 100644 --- a/matlab/MRIvote.m +++ b/matlab/MRIvote.m @@ -5,7 +5,6 @@ % frames. nocc is the number of times it occurs. % See also mri2.c::MRIvote() % -% $Id: MRIvote.m,v 1.2 2011/03/02 00:04:12 nicks Exp $ % % MRIvote.m diff --git a/matlab/Survival/mass_univariate/SStat_mass_FDR.m b/matlab/Survival/mass_univariate/SStat_mass_FDR.m index 37e0c57fdfe..14cde7f0a64 100644 --- a/matlab/Survival/mass_univariate/SStat_mass_FDR.m +++ b/matlab/Survival/mass_univariate/SStat_mass_FDR.m @@ -12,7 +12,6 @@ % assumption of "independence or positive dependence", % which should be "reasonable for imaging data". % -% $Id: SStat_mass_FDR.m,v 1.1 2015/01/06 17:03:59 mreuter Exp $ % if(nargin ~= 2) @@ -31,4 +30,4 @@ %This is just not to return the min(p) in this case pthresh = min(p)/10; end -return; \ No newline at end of file +return; diff --git a/matlab/angles2rotmat.m b/matlab/angles2rotmat.m index e32d8d72faa..351863a9f38 100644 --- a/matlab/angles2rotmat.m +++ b/matlab/angles2rotmat.m @@ -12,7 +12,6 @@ % See also: rotmat2angles % Ref: Craig, Intro to Robotics % -% $Id: angles2rotmat.m,v 1.4 2011/03/02 00:04:12 nicks Exp $ % % angles2rotmat.m diff --git a/matlab/convert_fieldsign.m b/matlab/convert_fieldsign.m index a3d85d25d5c..8bf3239bbc2 100644 --- a/matlab/convert_fieldsign.m +++ b/matlab/convert_fieldsign.m @@ -15,7 +15,6 @@ % tksurfer subjectname lh inflated \ % -overlay lh.fieldsign-masked.mgh -fthresh 0.5 % -% $Id: convert_fieldsign.m,v 1.1 2008/05/13 22:22:37 greve Exp $ err = 1; fp = fopen(infname,'r','ieee-be'); @@ -52,4 +51,4 @@ err = 0; -return \ No newline at end of file +return diff --git a/matlab/dtifa.m b/matlab/dtifa.m index bb28efe9ec3..44a7b873dc8 100644 --- a/matlab/dtifa.m +++ b/matlab/dtifa.m @@ -1,7 +1,6 @@ function fa = dtifa(T) % fa = dtifa(T) % Compute fractional anisotropy of a 3x3 tensor -% $Id: dtifa.m,v 1.1 2007/03/23 08:16:05 greve Exp $ if(nargin ~= 1) fprintf('fa = dtifa(T)\n'); diff --git a/matlab/dtimatrix.m b/matlab/dtimatrix.m index 2432a993221..f002f20f21f 100644 --- a/matlab/dtimatrix.m +++ b/matlab/dtimatrix.m @@ -12,7 +12,6 @@ % 2 4 5 % 3 5 6 % -% $Id: dtimatrix.m,v 1.2 2011/03/02 00:04:12 nicks Exp $ % % dtimatrix.m diff --git a/matlab/fisher_twoclass.m b/matlab/fisher_twoclass.m index 5c4a3081889..4f689923eb0 100644 --- a/matlab/fisher_twoclass.m +++ b/matlab/fisher_twoclass.m @@ -18,7 +18,6 @@ % w = fisher_twoclass(D1,D2) % w should be close to [0.707 0.707] (or neg of that) % -% $Id: fisher_twoclass.m,v 1.2 2011/03/02 00:04:12 nicks Exp $ % % fisher_twoclass(D1,D2) diff --git a/matlab/gc_classify.m b/matlab/gc_classify.m index 58109c76122..41246097d5d 100644 --- a/matlab/gc_classify.m +++ b/matlab/gc_classify.m @@ -11,7 +11,6 @@ % means - nClasses x nVariates % covar - nVariates x nVariates x nClasses % -% $Id: gc_classify.m,v 1.3 2012/04/20 16:03:47 greve Exp $ [nClasses nVariates] = size(means); nData = size(data,1); diff --git a/matlab/gc_pvalue.m b/matlab/gc_pvalue.m index 532024ec76d..35f716a02d1 100644 --- a/matlab/gc_pvalue.m +++ b/matlab/gc_pvalue.m @@ -11,7 +11,6 @@ % % See also gc_synth_params, gc_synth_data, gc_train % -% $Id: gc_pvalue.m,v 1.2 2012/05/01 20:23:20 greve Exp $ [nClasses nVariates] = size(means); nData = size(data,1); diff --git a/matlab/gc_synth_data.m b/matlab/gc_synth_data.m index 1c549607f82..87adeeb9194 100644 --- a/matlab/gc_synth_data.m +++ b/matlab/gc_synth_data.m @@ -12,7 +12,6 @@ % % See also gc_synth_params % -% $Id: gc_synth_data.m,v 1.2 2012/04/20 16:03:47 greve Exp $ data = []; if(nargin ~= 3) diff --git a/matlab/gc_synth_params.m b/matlab/gc_synth_params.m index 409d2cd7ff8..bae3a74aaa5 100644 --- a/matlab/gc_synth_params.m +++ b/matlab/gc_synth_params.m @@ -4,7 +4,6 @@ % a gaussian classifier. % See also gc_synth_data, gc_train, gc_classify % -% $Id: gc_synth_params.m,v 1.1 2011/09/19 21:32:43 greve Exp $ if(nargin ~= 2) fprintf('[means covar] = gc_synth_params(nClasses,nVariates)\n'); diff --git a/matlab/gc_train.m b/matlab/gc_train.m index cf365a9675b..93fbbb37cb8 100644 --- a/matlab/gc_train.m +++ b/matlab/gc_train.m @@ -7,7 +7,6 @@ % means - nClasses x nVariates % covar - nVariates x nVariates x nClasses % -% $Id: gc_train.m,v 1.2 2012/04/20 16:05:15 greve Exp $ cids = unique(datacid); nClasses = length(cids); diff --git a/matlab/irepifitvol.m b/matlab/irepifitvol.m index 4782f4b1a97..8e0c86ea8bd 100644 --- a/matlab/irepifitvol.m +++ b/matlab/irepifitvol.m @@ -1,6 +1,5 @@ function r = irepifitvol(varargin) -version = '$Id: irepifitvol.m,v 1.2 2016/04/11 03:19:06 greve Exp $'; r = 1; cmdargs.involfile = ''; @@ -32,7 +31,6 @@ cmdargs = check_params(cmdargs); if(isempty(cmdargs)) return; end -fprintf(1,'%s\n',version); tic; dce = MRIread(cmdargs.involfile); diff --git a/matlab/irepitiming.m b/matlab/irepitiming.m index c7a3886f564..d5fd30614d9 100644 --- a/matlab/irepitiming.m +++ b/matlab/irepitiming.m @@ -3,7 +3,6 @@ % % See irepistructure.m for more info on the struct parameters % -% $Id: irepitiming.m,v 1.2 2016/04/11 03:19:08 greve Exp $ InvFlip = 180; diff --git a/matlab/juelichmat2mat.m b/matlab/juelichmat2mat.m index ee9c63c6feb..365e826f837 100644 --- a/matlab/juelichmat2mat.m +++ b/matlab/juelichmat2mat.m @@ -1,6 +1,5 @@ function err = juelichmat2mat(matfile) % err = juelichmat2mat(matfile) -% $Id: juelichmat2mat.m,v 1.1 2007/08/16 02:10:12 greve Exp $ err = 1; if(nargin ~= 1) diff --git a/matlab/lme/mass_univariate/lme_mass_FDR.m b/matlab/lme/mass_univariate/lme_mass_FDR.m index 8d181b10f0e..82a4ba0f446 100755 --- a/matlab/lme/mass_univariate/lme_mass_FDR.m +++ b/matlab/lme/mass_univariate/lme_mass_FDR.m @@ -12,7 +12,6 @@ % assumption of "independence or positive dependence", % which should be "reasonable for imaging data". % -% $Id: lme_mass_FDR.m,v 1.2 2015/01/06 17:14:55 mreuter Exp $ % if(nargin ~= 2) @@ -31,4 +30,4 @@ %This is just to not return the min(p) in this case pthresh = min(p)/10; end -return; \ No newline at end of file +return; diff --git a/matlab/load_csd.m b/matlab/load_csd.m index 63742840ab3..4fbc59ab8c4 100644 --- a/matlab/load_csd.m +++ b/matlab/load_csd.m @@ -14,7 +14,6 @@ % searchspace in mm^D % anattype is volume or surface % -% $Id: load_csd.m,v 1.4 2011/03/02 00:04:12 nicks Exp $ % % load_csd.m diff --git a/matlab/load_nifti_hdr.m b/matlab/load_nifti_hdr.m index 71bf8e439c6..52fd5b9ad91 100644 --- a/matlab/load_nifti_hdr.m +++ b/matlab/load_nifti_hdr.m @@ -15,7 +15,6 @@ % reading hdr.glmin = ncols when hdr.dim(2) < 0. This % is FreeSurfer specific, for handling surfaces. % -% $Id: load_nifti_hdr.m,v 1.11 2016/08/02 21:03:26 greve Exp $ % diff --git a/matlab/mri_cdf2p.m b/matlab/mri_cdf2p.m index 494a7a12e0a..b488bb1ac70 100644 --- a/matlab/mri_cdf2p.m +++ b/matlab/mri_cdf2p.m @@ -8,7 +8,6 @@ % make sure to subtract xdelta from xcdf before % using this function. % -% $Id: mri_cdf2p.m,v 1.2 2011/03/02 00:04:12 nicks Exp $ % % mri_cdf2p.m diff --git a/matlab/mri_glmfit_pcc.m b/matlab/mri_glmfit_pcc.m index 8dba3f8bd8d..f602f165e33 100644 --- a/matlab/mri_glmfit_pcc.m +++ b/matlab/mri_glmfit_pcc.m @@ -9,7 +9,6 @@ % too). The output will be two files called pcc.ext and z.ext where % ext is the file format extension found in the glmdir folder. % -% $Id: mri_glmfit_pcc.m,v 1.2 2015/03/31 21:23:53 greve Exp $ % % Original Author: Douglas Greve diff --git a/matlab/mri_kurtosis.m b/matlab/mri_kurtosis.m index 22a8eabee81..82a1dbbb4b0 100644 --- a/matlab/mri_kurtosis.m +++ b/matlab/mri_kurtosis.m @@ -4,7 +4,6 @@ % Biased by default. For unbiased set unbiasedflag=1. % To make estimator zero mean, subtract 3. % -% $Id: mri_kurtosis.m,v 1.4 2011/03/02 00:04:12 nicks Exp $ % % mri_kurtosis.m diff --git a/matlab/mri_qoutlier.m b/matlab/mri_qoutlier.m index 2c84857c3b8..6ef350e90a5 100644 --- a/matlab/mri_qoutlier.m +++ b/matlab/mri_qoutlier.m @@ -9,7 +9,6 @@ % The output can be thresholded to do the outlier detection. % Typical threshold values are 1.5 or 2 % -% $Id: mri_qoutlier.m,v 1.2 2014/02/25 19:53:32 greve Exp $ if(nargin ~= 1) fprintf('qout = mri_qoutlier(y)\n'); diff --git a/matlab/mri_surfrft_jlbr.m b/matlab/mri_surfrft_jlbr.m index 8a838f9ad6f..4739c757228 100644 --- a/matlab/mri_surfrft_jlbr.m +++ b/matlab/mri_surfrft_jlbr.m @@ -27,7 +27,6 @@ % Limitations: does not work with per-voxel regressors, weighted-least % squares, fixed effects, or multi-variate contrasts. % -% $Id: mri_surfrft_jlbr.m,v 1.5 2012/02/15 16:29:59 greve Exp $ % % Original Author: Jorge Louis Bernal-Rusiel and Douglas Greve diff --git a/matlab/mris_circleROI.m b/matlab/mris_circleROI.m index c70cd9cb5c3..525b3612e2e 100644 --- a/matlab/mris_circleROI.m +++ b/matlab/mris_circleROI.m @@ -17,7 +17,6 @@ % [, astr_labelStem, ... % [, ab_progress]]]) % -% $Id: mris_circleROI.m,v 1.1 2011/07/05 20:52:45 rudolph Exp $ % % % ARGUMENTS diff --git a/matlab/mris_colorTableMake.m b/matlab/mris_colorTableMake.m index cdee82630a1..e7c83624f0d 100644 --- a/matlab/mris_colorTableMake.m +++ b/matlab/mris_colorTableMake.m @@ -3,7 +3,6 @@ % NAME % function [aS_ct] = mris_colorTableMake( a_labelVar, varargin) % -% $Id: mris_colorTableMake.m,v 1.1 2011/07/05 20:52:45 rudolph Exp $ % % % ARGUMENTS diff --git a/matlab/mris_read_m3z.m b/matlab/mris_read_m3z.m index bca7b5bf3b1..739ae50bf15 100644 --- a/matlab/mris_read_m3z.m +++ b/matlab/mris_read_m3z.m @@ -11,7 +11,6 @@ % jonathan polimeni , 2012/feb/05 % oliver hinds , 2015/dec/29 -% $Id: mris_read_m3z.m,v 1.1 2017/01/31 20:29:29 mreuter Exp $ %**************************************************************************% if ( nargin == 0 ), help(mfilename); return; end; diff --git a/matlab/peakfinder.m b/matlab/peakfinder.m index 110d2daf8ac..4dea041092d 100644 --- a/matlab/peakfinder.m +++ b/matlab/peakfinder.m @@ -9,7 +9,6 @@ % fmin,fmax are constraints on the fundamental frequency and are % given in units of items per time point (NOT IN Hz!). % -% $Id: peakfinder.m,v 1.9 2010/05/18 19:31:44 greve Exp $ indpeak = []; diff --git a/matlab/pearsoncc.m b/matlab/pearsoncc.m index 8d5e66ccfcb..3a6d2b347e8 100644 --- a/matlab/pearsoncc.m +++ b/matlab/pearsoncc.m @@ -3,7 +3,6 @@ % x and y should be column vectors % If x and y have multiple columns, then % rho is computed for each one -% $Id: pearsoncc.m,v 1.1 2014/07/15 21:39:28 greve Exp $ rho = []; if(size(x,1) ~= size(y,1)) diff --git a/matlab/read_meas_dat.m b/matlab/read_meas_dat.m index 72b34f74818..cf4ada194c8 100644 --- a/matlab/read_meas_dat.m +++ b/matlab/read_meas_dat.m @@ -82,7 +82,6 @@ % jonathan polimeni , 10/04/2006 -% $Id: read_meas_dat.m,v 1.12 2008/07/16 06:45:24 jonnyreb Exp $ %**************************************************************************% if ( nargin == 0 ), help(mfilename); return; end; diff --git a/matlab/read_meas_prot.m b/matlab/read_meas_prot.m index 00e3c36343e..0bb4cfcb843 100644 --- a/matlab/read_meas_prot.m +++ b/matlab/read_meas_prot.m @@ -4,7 +4,6 @@ % YAPS = read_meas_prot(filename) % jonathan polimeni , 2007/jan/03 -% $Id: read_meas_prot.m,v 1.1 2008/05/21 19:01:01 greve Exp $ %**************************************************************************% if ( nargin == 0 ), help(mfilename); return; end; diff --git a/matlab/read_meas_prot__struct.m b/matlab/read_meas_prot__struct.m index 28f1f87ba6d..c4c132698da 100644 --- a/matlab/read_meas_prot__struct.m +++ b/matlab/read_meas_prot__struct.m @@ -4,7 +4,6 @@ % [YAPS, param_list] = read_meas_prot__struct(varargin) % jonathan polimeni , 2007/nov/18 -% $Id: read_meas_prot__struct.m,v 1.1 2008/05/21 19:00:46 greve Exp $ %**************************************************************************% diff --git a/matlab/rotmat2angles.m b/matlab/rotmat2angles.m index dd019f371b6..45f1c243d80 100644 --- a/matlab/rotmat2angles.m +++ b/matlab/rotmat2angles.m @@ -14,7 +14,6 @@ % See also: angles2rotmat % Ref: Craig, Intro to Robotics % -% $Id: rotmat2angles.m,v 1.3 2011/03/02 00:04:13 nicks Exp $ % % rotmat2angles.m diff --git a/matlab/samseg/run_samseg.m b/matlab/samseg/run_samseg.m index 7491a9209b3..d17b16acadd 100644 --- a/matlab/samseg/run_samseg.m +++ b/matlab/samseg/run_samseg.m @@ -1,7 +1,6 @@ function retval = run_samseg(varargin) % Run with no arguments to get help retval = 1; -mfileversion = '$Id$'; % This is a structure to handle reading in of command-line args. When % adding a new arg, create a new field with the default value, then @@ -34,7 +33,6 @@ if(isempty(cmdargs)) return; end dump_args(cmdargs); -fprintf('%s\n',mfileversion); fprintf('Matlab version %s\n',version); fprintf('2 cmd Stiffness %g\n',cmdargs.stiffness); diff --git a/matlab/samseg/samseg b/matlab/samseg/samseg index cfff7d283ae..3196f98393d 100755 --- a/matlab/samseg/samseg +++ b/matlab/samseg/samseg @@ -1,7 +1,6 @@ #!/bin/tcsh -f # samseg -set VERSION = '$Id: samseg,v 1.1 2017/01/26 00:23:37 greve Exp $'; if(-e $FREESURFER_HOME/sources.csh) then source $FREESURFER_HOME/sources.csh @@ -74,7 +73,7 @@ if($n != 0) then endif set n = `echo $argv | grep -e -version | wc -l` if($n != 0) then - echo $VERSION + echo "samseg matlab" exit 0; endif goto parse_args; @@ -115,7 +114,6 @@ echo "cd `pwd`" | tee -a $LF echo $0 $inputargs | tee -a $LF echo "" | tee -a $LF cat $FREESURFER_HOME/build-stamp.txt | tee -a $LF -echo $VERSION | tee -a $LF echo SAMSEG_MCRROOT $SAMSEG_MCRROOT | tee -a $LF echo SAMSEG_DATA_DIR $SAMSEG_DATA_DIR | tee -a $LF uname -a | tee -a $LF @@ -652,7 +650,6 @@ usage_exit: echo " --ssdd SAMSEG_DATA_DIR : where the atlas is located" if(! $PrintHelp) exit 1; - echo $VERSION cat $0 | awk 'BEGIN{prt=0}{if(prt) print $0; if($1 == "BEGINHELP") prt = 1 }' exit 1; diff --git a/matlab/save_nifti.m b/matlab/save_nifti.m index 95e3d16b26a..eb88c10b6bd 100644 --- a/matlab/save_nifti.m +++ b/matlab/save_nifti.m @@ -10,7 +10,6 @@ % reshaped to 27307x1x6xnframes. This is for handling the 7th % order icosahedron used by FS group analysis. % -% $Id: save_nifti.m,v 1.14 2011/10/17 19:58:37 nicks Exp $ % % save_nifti.m diff --git a/matlab/ssblochgrad.m b/matlab/ssblochgrad.m index 3ceab76987b..c2eada7b923 100644 --- a/matlab/ssblochgrad.m +++ b/matlab/ssblochgrad.m @@ -17,7 +17,6 @@ % % See also ssbloch % -% $Id: ssblochgrad.m,v 1.2 2011/03/02 00:04:13 nicks Exp $ % % ssblochgrad.m diff --git a/matlab/stringunique.m b/matlab/stringunique.m index 35cc0ded25f..b58835d971e 100644 --- a/matlab/stringunique.m +++ b/matlab/stringunique.m @@ -5,7 +5,6 @@ % concatenated string list strvlist. Matches are determined % AFTER deblanking. % -% $Id: stringunique.m,v 1.2 2011/03/02 00:04:13 nicks Exp $ % % stringunique diff --git a/matlab/striphemi.m b/matlab/striphemi.m index d7772f3afb7..5bb77fbd0ba 100644 --- a/matlab/striphemi.m +++ b/matlab/striphemi.m @@ -6,7 +6,6 @@ % If ncut is nonempty and greater than 0 then removes ncut letters % from the end of each roiname. This can be helpful when removing % things like '_thickness'. -% $Id: striphemi.m,v 1.5 2014/10/07 22:13:01 greve Exp $ if(~exist('ncut','var')) ncut = []; end if(isempty(ncut)) ncut = 0; end diff --git a/matlab/sys_printf.m b/matlab/sys_printf.m index b7e1cc2c05d..2feccd812d0 100644 --- a/matlab/sys_printf.m +++ b/matlab/sys_printf.m @@ -3,7 +3,6 @@ % NAME % % function [s] = sys_printf(format, ...) -% $Id: sys_printf.m,v 1.2 2010/02/01 20:52:10 rudolph Exp $ % % ARGUMENTS % INPUT diff --git a/matlab/syslog_prefix.m b/matlab/syslog_prefix.m index ec49aab9728..a0d905413cf 100644 --- a/matlab/syslog_prefix.m +++ b/matlab/syslog_prefix.m @@ -3,7 +3,6 @@ % NAME % % function [s] = syslog_prefix() -% $Id: syslog_prefix.m,v 1.2 2010/02/01 20:52:10 rudolph Exp $ % % ARGUMENTS % INPUT @@ -72,4 +71,4 @@ end s = sprintf('%d %s %02d %02d:%02d:%02d %s', year, str_month, ... - day, hour, minute, seconds, str_host); \ No newline at end of file + day, hour, minute, seconds, str_host); diff --git a/matlab/triggerfinder.m b/matlab/triggerfinder.m index a48f31930a0..2572faf65d0 100644 --- a/matlab/triggerfinder.m +++ b/matlab/triggerfinder.m @@ -5,7 +5,6 @@ % be a (mostly) binary waveform. The threshold is set to half way % between the min and max. % -% $Id: triggerfinder.m,v 1.2 2010/02/06 22:15:28 greve Exp $ indtrig = []; if(nargin ~= 1) diff --git a/matlab/vox2ras_dfmeas.m b/matlab/vox2ras_dfmeas.m index a246b53d652..bfb4f17810c 100644 --- a/matlab/vox2ras_dfmeas.m +++ b/matlab/vox2ras_dfmeas.m @@ -8,10 +8,6 @@ %% %% Rudolph Pienaar %% -%% VERSION -%% -%% $Id: vox2ras_dfmeas.m,v 1.10 2011/03/02 00:04:13 nicks Exp $ -%% %% SYNOPSIS %% %% [M_V] = vox2ras_dfmeas(str_filename, ch_override, ... diff --git a/matlab/vox2ras_ksolve.m b/matlab/vox2ras_ksolve.m index 759676b692d..b2513139778 100644 --- a/matlab/vox2ras_ksolve.m +++ b/matlab/vox2ras_ksolve.m @@ -8,10 +8,6 @@ %% %% Rudolph Pienaar %% -%% VERSION -%% -%% $Id: vox2ras_ksolve.m,v 1.7 2011/03/02 00:04:13 nicks Exp $ -%% %% SYNOPSIS %% %% [M_V] = vox2ras_ksolve(M_R, Vc_Ps, Vr_logicalSpace) diff --git a/matlab/vox2ras_rsolve.m b/matlab/vox2ras_rsolve.m index 6cb75be4ede..aea6d90a42e 100644 --- a/matlab/vox2ras_rsolve.m +++ b/matlab/vox2ras_rsolve.m @@ -10,10 +10,6 @@ %% %% Rudolph Pienaar %% -%% VERSION -%% -%% $Id: vox2ras_rsolve.m,v 1.6 2011/03/02 00:04:13 nicks Exp $ -%% %% SYNOPSIS %% %% [M_Ru1 M_Ru2 M_v1 M_v2 ] = vox2ras_rsolve(Vc_C, inPlaneRotation) diff --git a/matlab/vox2ras_rsolveAA.m b/matlab/vox2ras_rsolveAA.m index c4c96149adb..6c42eec57ff 100644 --- a/matlab/vox2ras_rsolveAA.m +++ b/matlab/vox2ras_rsolveAA.m @@ -8,10 +8,6 @@ %% %% Rudolph Pienaar %% -%% VERSION -%% -%% $Id: vox2ras_rsolveAA.m,v 1.5 2011/03/02 00:04:13 nicks Exp $ -%% %% SYNOPSIS %% %% [M_R] = vox2ras_rsolveAA(Vc_C, inPlaneRotation, ch_orientation) diff --git a/matlab/x2fsgd.m b/matlab/x2fsgd.m index 1b9aabc3755..9a097317c8e 100644 --- a/matlab/x2fsgd.m +++ b/matlab/x2fsgd.m @@ -10,7 +10,6 @@ function x2fsgd(X,fp) % x2fsgd(X,fp); % fclose(fp); % -% $Id: x2fsgd.m,v 1.1 2012/01/30 17:08:50 greve Exp $ if(nargin ~= 2) fprintf('x2fsgd(X,fp)\n'); diff --git a/mkxsubjreg/mkxsubjreg.cpp b/mkxsubjreg/mkxsubjreg.cpp index ea885ae2e17..06be6c677ed 100644 --- a/mkxsubjreg/mkxsubjreg.cpp +++ b/mkxsubjreg/mkxsubjreg.cpp @@ -19,7 +19,6 @@ Date: 8/24/03 Purpose: Create a new registration matrix that will map a functional to the orig of another subject. - $Id: mkxsubjreg.c,v 1.5 2011/03/02 00:04:13 nicks Exp $ */ #include @@ -51,7 +50,6 @@ static int singledash(char *flag); int main(int argc, char *argv[]) ; -static char vcid[] = "$Id: mkxsubjreg.c,v 1.5 2011/03/02 00:04:13 nicks Exp $"; const char *Progname = NULL; char *srcregpath = NULL; @@ -261,7 +259,7 @@ static void dump_options(FILE *fp) { fprintf(fp,"xfm %s\n",xfmrname); fprintf(fp,"subjects_dir %s\n",subjects_dir); fprintf(fp,"Diag Level %d\n",Gdiag_no); - fprintf(fp,"%s\n",vcid); + fprintf(fp,"%s\n", getVersion().c_str()); return; } @@ -277,7 +275,7 @@ static int singledash(char *flag) { } /* --------------------------------------------- */ static void print_version(void) { - printf("%s\n", vcid) ; + std::cout << getVersion() << std::endl; exit(1) ; } /* --------------------------------------------- */ diff --git a/mri_and/mri_and.cpp b/mri_and/mri_and.cpp index 52c13e5f5ba..454332964a5 100644 --- a/mri_and/mri_and.cpp +++ b/mri_and/mri_and.cpp @@ -40,7 +40,6 @@ static void print_help(void) ; static void print_version(void) ; static int get_option(int argc, char *argv[]) ; -static char vcid[] = "$Id: mri_and.c,v 1.4 2011/03/02 00:04:13 nicks Exp $"; const char *Progname ; @@ -152,7 +151,7 @@ static void print_help(void) /* --------------------------------------------- */ static void print_version(void) { - printf("%s\n", vcid) ; + std::cout << getVersion() << std::endl; exit(1) ; } diff --git a/mri_and/mri_or.cpp b/mri_and/mri_or.cpp index ba22a3d6e4a..0ed2b25209a 100644 --- a/mri_and/mri_or.cpp +++ b/mri_and/mri_or.cpp @@ -40,7 +40,6 @@ static void print_help(void) ; static void print_version(void) ; static int get_option(int argc, char *argv[]) ; -static char vcid[] = "$Id: mri_or.c,v 1.5 2013/03/20 15:03:29 lzollei Exp $"; const char *Progname ; int use_orig_value = 0; @@ -172,7 +171,7 @@ static void print_help(void) /* --------------------------------------------- */ static void print_version(void) { - printf("%s\n", vcid) ; + std::cout << getVersion() << std::endl; exit(1) ; } diff --git a/mri_annotation2label/mri_annotation2label.cpp b/mri_annotation2label/mri_annotation2label.cpp index f31c64b35ef..04681ab64de 100644 --- a/mri_annotation2label/mri_annotation2label.cpp +++ b/mri_annotation2label/mri_annotation2label.cpp @@ -51,7 +51,6 @@ static int singledash(char *flag); int main(int argc, char *argv[]) ; -static char vcid[] = "$Id: mri_annotation2label.c,v 1.32 2016/08/02 21:20:27 nicks Exp $"; const char *Progname = NULL; char *subject = NULL; @@ -661,7 +660,7 @@ static void print_help(void) /* --------------------------------------------- */ static void print_version(void) { - printf("%s\n", vcid) ; + std::cout << getVersion() << std::endl; exit(1) ; } /* --------------------------------------------- */ diff --git a/mri_aparc2aseg/mri_aparc2aseg.cpp b/mri_aparc2aseg/mri_aparc2aseg.cpp index b1d005b90c3..b02d7fa1c01 100644 --- a/mri_aparc2aseg/mri_aparc2aseg.cpp +++ b/mri_aparc2aseg/mri_aparc2aseg.cpp @@ -74,8 +74,6 @@ int CCSegment(MRI *seg, int segid, int segidunknown); int main(int argc, char *argv[]) ; -static char vcid[] = - "$Id: mri_aparc2aseg.c,v 1.54 2016/12/26 15:29:30 fischl Exp $"; const char *Progname = NULL; static char *relabel_gca_name = NULL ; static char *relabel_norm_name = NULL ; @@ -1500,7 +1498,7 @@ static void print_help(void) /* --------------------------------------------- */ static void print_version(void) { - printf("%s\n", vcid) ; + std::cout << getVersion() << std::endl; exit(1) ; } /* --------------------------------------------- */ diff --git a/mri_aparc2aseg/mri_surf2volseg.cpp b/mri_aparc2aseg/mri_surf2volseg.cpp index 37f0ab6e3b6..7aee9068ac9 100644 --- a/mri_aparc2aseg/mri_surf2volseg.cpp +++ b/mri_aparc2aseg/mri_surf2volseg.cpp @@ -97,7 +97,6 @@ static void dump_options(FILE *fp); int main(int argc, char *argv[]) ; -static char vcid[] = "$Id$"; const char *Progname = NULL; char *OutSegFile = NULL; int nthreads=1; @@ -347,7 +346,7 @@ static void print_help(void) /* --------------------------------------------- */ static void print_version(void) { - printf("%s\n", vcid) ; + std::cout << getVersion() << std::endl; exit(1) ; } /* --------------------------------------------- */ diff --git a/mri_aparc2wmseg/mri_aparc2wmseg.cpp b/mri_aparc2wmseg/mri_aparc2wmseg.cpp index 3f8eb96d573..2a77075b152 100644 --- a/mri_aparc2wmseg/mri_aparc2wmseg.cpp +++ b/mri_aparc2wmseg/mri_aparc2wmseg.cpp @@ -49,7 +49,6 @@ static int singledash(char *flag); int main(int argc, char *argv[]) ; -static char vcid[] = "$Id: mri_aparc2wmseg.c,v 1.6 2011/03/02 00:04:13 nicks Exp $"; const char *Progname = NULL; char *SUBJECTS_DIR = NULL; char *subject = NULL; @@ -97,7 +96,7 @@ int main(int argc, char **argv) { dump_options(stdout); printf("\n"); - printf("%s\n",vcid); + printf("%s\n",getVersion().c_str()); printf("cwd %s\n",cwd); printf("cmdline %s\n",cmdline); printf("sysname %s\n",uts.sysname); @@ -323,7 +322,7 @@ static void print_usage(void) { printf(" --help print out information on how to use this program\n"); printf(" --version print out version and exit\n"); printf("\n"); - printf("%s\n", vcid) ; + std::cout << getVersion() << std::endl; printf("\n"); } /* --------------------------------------------- */ @@ -334,7 +333,7 @@ static void print_help(void) { } /* --------------------------------------------- */ static void print_version(void) { - printf("%s\n", vcid) ; + std::cout << getVersion() << std::endl; exit(1) ; } /* --------------------------------------------- */ diff --git a/mri_binarize/mri_binarize.cpp b/mri_binarize/mri_binarize.cpp index de4fd3a9d32..3d766e07c71 100644 --- a/mri_binarize/mri_binarize.cpp +++ b/mri_binarize/mri_binarize.cpp @@ -21,7 +21,6 @@ */ -// $Id: mri_binarize.c,v 1.43 2016/06/09 20:46:21 greve Exp $ /* BEGINHELP @@ -198,7 +197,6 @@ static void print_version(void) ; static void dump_options(FILE *fp); int main(int argc, char *argv[]) ; -static char vcid[] = "$Id: mri_binarize.c,v 1.43 2016/06/09 20:46:21 greve Exp $"; const char *Progname = NULL; char *cmdline, cwd[2000]; int debug=0; @@ -989,7 +987,7 @@ static void print_usage(void) { printf(" --help print out information on how to use this program\n"); printf(" --version print out version and exit\n"); printf("\n"); - printf("%s\n", vcid) ; + std::cout << getVersion() << std::endl; printf("\n"); } /* --------------------------------------------- */ @@ -1109,7 +1107,7 @@ printf("\n"); } /* --------------------------------------------- */ static void print_version(void) { - printf("%s\n", vcid) ; + std::cout << getVersion() << std::endl; exit(1) ; } /* --------------------------------------------- */ @@ -1155,7 +1153,7 @@ static void dump_options(FILE *fp) { int n; fprintf(fp,"\n"); - fprintf(fp,"%s\n",vcid); + fprintf(fp,"%s\n", getVersion().c_str()); fprintf(fp,"cwd %s\n",cwd); fprintf(fp,"cmdline %s\n",cmdline); fprintf(fp,"sysname %s\n",uts.sysname); diff --git a/mri_cnr/mri_cnr.cpp b/mri_cnr/mri_cnr.cpp index 89a706457b7..783672957f5 100644 --- a/mri_cnr/mri_cnr.cpp +++ b/mri_cnr/mri_cnr.cpp @@ -34,7 +34,6 @@ #include "version.h" #include "label.h" -static char vcid[] = "$Id: mri_cnr.c,v 1.11 2016/05/05 18:44:03 fischl Exp $"; int main(int argc, char *argv[]) ; @@ -268,7 +267,7 @@ print_usage(void) { static void print_version(void) { - fprintf(stderr, "%s\n", vcid) ; + fprintf(stderr, "%s\n", getVersion().c_str()) ; exit(1) ; } /* diff --git a/mri_compute_volume_fractions/mri_compute_volume_fractions.cpp b/mri_compute_volume_fractions/mri_compute_volume_fractions.cpp index c9aeb97d9f9..38855a48121 100644 --- a/mri_compute_volume_fractions/mri_compute_volume_fractions.cpp +++ b/mri_compute_volume_fractions/mri_compute_volume_fractions.cpp @@ -52,7 +52,6 @@ static void print_help(void) ; static void print_version(void) ; static void dump_options(FILE *fp); -static char vcid[] = "$Id: mri_compute_volume_fractions.c,v 1.22 2015/09/14 12:25:01 fischl Exp $"; const char *Progname = NULL; char *cmdline, cwd[2000]; int debug=0; @@ -470,7 +469,7 @@ static void print_usage(void) { printf(" --help print out information on how to use this program\n"); printf(" --version print out version and exit\n"); printf("\n"); - printf("%s\n", vcid) ; + std::cout << getVersion() << std::endl; printf("\n"); } /*---------------------------------------------*/ @@ -487,7 +486,7 @@ static void print_help(void) { } /*---------------------------------------------*/ static void print_version(void) { - printf("%s\n", vcid) ; + std::cout << getVersion() << std::endl; exit(1) ; } /*---------------------------------------------*/ @@ -541,7 +540,7 @@ static void check_options(void) { /*---------------------------------------------*/ static void dump_options(FILE *fp) { fprintf(fp,"\n"); - fprintf(fp,"%s\n",vcid); + fprintf(fp,"%s\n", getVersion().c_str()); fprintf(fp,"sysname %s\n",uts.sysname); fprintf(fp,"hostname %s\n",uts.nodename); fprintf(fp,"machine %s\n",uts.machine); diff --git a/mri_concat/mri_concat.cpp b/mri_concat/mri_concat.cpp index 38a547104dc..2b265e751d6 100644 --- a/mri_concat/mri_concat.cpp +++ b/mri_concat/mri_concat.cpp @@ -58,7 +58,6 @@ static void dump_options(FILE *fp); int main(int argc, char *argv[]) ; -static char vcid[] = "$Id: mri_concat.c,v 1.67 2017/02/16 19:49:35 greve Exp $"; const char *Progname = NULL; int debug = 0; #define NInMAX 400000 // such a large number may break valgrind @@ -1181,7 +1180,7 @@ static void print_usage(void) printf(" --help print out information on how to use this program\n"); printf(" --version print out version and exit\n"); printf("\n"); - printf("%s\n", vcid) ; + std::cout << getVersion() << std::endl; printf("\n"); } /* --------------------------------------------- */ @@ -1213,7 +1212,7 @@ static void print_help(void) /* --------------------------------------------- */ static void print_version(void) { - printf("%s\n", vcid) ; + std::cout << getVersion() << std::endl; exit(1) ; } /* --------------------------------------------- */ diff --git a/mri_convert/mri_convert.cpp b/mri_convert/mri_convert.cpp index a3d4d8bb130..7d04b824dc6 100644 --- a/mri_convert/mri_convert.cpp +++ b/mri_convert/mri_convert.cpp @@ -1740,7 +1740,6 @@ int main(int argc, char *argv[]) "= --zero_ge_z_offset option ignored.\n"); } - printf("$Id: mri_convert.c,v 1.227 2017/02/16 19:15:42 greve Exp $\n"); printf("reading from %s...\n", in_name_only); if (in_volume_type == MGH_MORPH) diff --git a/mri_cor2label/mri_cor2label.cpp b/mri_cor2label/mri_cor2label.cpp index e2b5de69e17..bcae690d279 100644 --- a/mri_cor2label/mri_cor2label.cpp +++ b/mri_cor2label/mri_cor2label.cpp @@ -13,7 +13,6 @@ */ /*---------------------------------------------------------- Name: mri_cor2label.c - $Id: mri_cor2label.c,v 1.12 2011/03/02 00:04:14 nicks Exp $ Author: Douglas Greve Purpose: Converts values in any volume file (not just cor) to a label. @@ -114,7 +113,6 @@ static void print_help(void) ; static void print_version(void) ; static void argnerr(char *option, int n); -static char vcid[] = "$Id: mri_cor2label.c,v 1.12 2011/03/02 00:04:14 nicks Exp $"; const char *Progname ; int main(int argc, char *argv[]) ; @@ -174,7 +172,7 @@ int main(int argc, char **argv) { parse_commandline(argc, argv); check_options(); - printf("%s\n",vcid); + printf("%s\n",getVersion().c_str()); fprintf(stderr,"Loading mri %s\n",infile); mri = MRIread(infile); @@ -456,7 +454,7 @@ printf("\n"); /* --------------------------------------------- */ static void print_help(void) { print_usage() ; - printf("\n%s\n\n",vcid); + printf("\n%s\n\n",getVersion().c_str()); printf("\n"); printf("Converts values in a volume or surface overlay to a label. The program\n"); printf("searches the input for values equal to labelid. The xyz values for\n"); @@ -513,7 +511,7 @@ printf("\n"); } /* --------------------------------------------- */ static void print_version(void) { - fprintf(stderr, "%s\n", vcid) ; + fprintf(stderr, "%s\n", getVersion().c_str()) ; exit(1) ; } /* --------------------------------------------- */ diff --git a/mri_coreg/mri_coreg.cpp b/mri_coreg/mri_coreg.cpp index a05068e1bfe..7480ed0690b 100644 --- a/mri_coreg/mri_coreg.cpp +++ b/mri_coreg/mri_coreg.cpp @@ -69,7 +69,6 @@ static void print_version(void) ; static void dump_options(FILE *fp); int main(int argc, char *argv[]) ; -static char vcid[] = "$Id: mri_coreg.c,v 1.27 2016/04/30 15:11:49 greve Exp $"; const char *Progname = NULL; char *cmdline, cwd[2000]; int debug=0; @@ -807,7 +806,7 @@ static void print_usage(void) { printf(" --help print out information on how to use this program\n"); printf(" --version print out version and exit\n"); printf("\n"); - printf("%s\n", vcid) ; + std::cout << getVersion() << std::endl; printf("\n"); } /* -------------------------------------------------------- */ @@ -820,7 +819,7 @@ static void print_help(void) { } /* -------------------------------------------------------- */ static void print_version(void) { - printf("%s\n", vcid) ; + std::cout << getVersion() << std::endl; exit(1) ; } /* -------------------------------------------------------- */ @@ -859,7 +858,7 @@ static void check_options(void) { /* -------------------------------------------------------- */ static void dump_options(FILE *fp) { fprintf(fp,"\n"); - fprintf(fp,"%s\n",vcid); + fprintf(fp,"%s\n", getVersion().c_str()); fprintf(fp,"cwd %s\n",cwd); fprintf(fp,"cmdline %s\n",cmdline); fprintf(fp,"sysname %s\n",uts.sysname); diff --git a/mri_correct_segmentations/mri_correct_segmentations.cpp b/mri_correct_segmentations/mri_correct_segmentations.cpp index bec02d0599b..3a1072385df 100644 --- a/mri_correct_segmentations/mri_correct_segmentations.cpp +++ b/mri_correct_segmentations/mri_correct_segmentations.cpp @@ -33,7 +33,6 @@ MRI * correct_largestCC_and_fill_holes(MRI *segmri, MRI *outmri); MRI * fill_leftover_voxels(MRI *segmri, MRI *inmri, MRI *outmri); static int get_option(int argc, char *argv[]) ; -static char vcid[] = "$Id: mri_correct_segmentations.c,v 1.1 2015/08/25 01:18:09 lzollei Exp $"; const char *Progname ; // int use_orig_value = 0; @@ -195,7 +194,7 @@ static void print_help(void) /* --------------------------------------------- */ static void print_version(void) { - printf("%s\n", vcid) ; + std::cout << getVersion() << std::endl; exit(1) ; } diff --git a/mri_cvs_register/CMakeLists.txt b/mri_cvs_register/CMakeLists.txt index a005cb1f380..36ec46d0055 100644 --- a/mri_cvs_register/CMakeLists.txt +++ b/mri_cvs_register/CMakeLists.txt @@ -1,5 +1,5 @@ project(mri_cvs_register) install_append_help(mri_cvs_register mri_cvs_register.help.xml bin) -install(PROGRAMS mri_cvs_check mri_cvs_data_copy DESTINATION bin) +install_configured(mri_cvs_check mri_cvs_data_copy DESTINATION bin) install(FILES mri_cvs_requiredfiles.txt id.xfm DESTINATION bin) diff --git a/mri_cvs_register/mri_cvs_check b/mri_cvs_register/mri_cvs_check index d270a0ad81f..d9654a58cca 100755 --- a/mri_cvs_register/mri_cvs_check +++ b/mri_cvs_register/mri_cvs_check @@ -9,7 +9,7 @@ # Created: 07-14-2010 set inputargs = ($argv); -set VERSION = '$Id: mri_cvs_check,v 1.2 2013/10/29 14:50:17 lzollei Exp $'; +set VERSION = 'mri_cvs_check @FS_VERSION@'; set PrintHelp = 0; set movingid = (); diff --git a/mri_cvs_register/mri_cvs_data_copy b/mri_cvs_register/mri_cvs_data_copy index 663410da78f..56f4e7c6427 100755 --- a/mri_cvs_register/mri_cvs_data_copy +++ b/mri_cvs_register/mri_cvs_data_copy @@ -9,7 +9,7 @@ # Created: 07-15-2010 set inputargs = ($argv); -set VERSION = '$Id: mri_cvs_data_copy,v 1.1 2011/03/24 23:07:52 nicks Exp $'; +set VERSION = 'mri_cvs_data_copy @FS_VERSION@'; set PrintHelp = 0; set subjid = (); diff --git a/mri_cvs_register/mri_cvs_register b/mri_cvs_register/mri_cvs_register index 5d0eddf4fb5..67ddad34271 100755 --- a/mri_cvs_register/mri_cvs_register +++ b/mri_cvs_register/mri_cvs_register @@ -36,7 +36,7 @@ # set inputargs = ($argv); -set VERSION = '$Id: mri_cvs_register,v 1.48 2016/03/06 21:31:56 lzollei Exp $'; +set VERSION = 'mri_cvs_register @FS_VERSION@'; set movingid = (); set templateid = (); diff --git a/mri_diff/mri_diff.cpp b/mri_diff/mri_diff.cpp index cdde1e44adc..c7d7880c719 100644 --- a/mri_diff/mri_diff.cpp +++ b/mri_diff/mri_diff.cpp @@ -167,7 +167,6 @@ static void print_version(void) ; static void dump_options(FILE *fp); int main(int argc, char *argv[]) ; -static char vcid[] = "$Id: mri_diff.c,v 1.37 2017/01/11 18:15:33 greve Exp $"; const char *Progname = NULL; char *cmdline, cwd[2000]; int debug=0; @@ -742,7 +741,7 @@ static int parse_commandline(int argc, char **argv) { } /* --------------------------------------------- */ static void print_version(void) { - printf("%s\n", vcid) ; + std::cout << getVersion() << std::endl; exit(1) ; } /* --------------------------------------------- */ @@ -765,7 +764,7 @@ static void usage_exit(void) { /* --------------------------------------------- */ static void dump_options(FILE *fp) { fprintf(fp,"\n"); - fprintf(fp,"%s\n",vcid); + fprintf(fp,"%s\n", getVersion().c_str()); fprintf(fp,"%s\n",Progname); fprintf(fp,"FREESURFER_HOME %s\n",getenv("FREESURFER_HOME")); fprintf(fp,"cwd %s\n",cwd); @@ -842,7 +841,7 @@ static void print_usage(void) { printf(" --help print out information on how to use this program\n"); printf(" --version print out version and exit\n"); printf("\n"); - printf("%s\n", vcid) ; + std::cout << getVersion() << std::endl; printf("\n"); } /* --------------------------------------------- */ diff --git a/mri_edit_segmentation_with_surfaces/mri_edit_segmentation_with_surfaces.cpp b/mri_edit_segmentation_with_surfaces/mri_edit_segmentation_with_surfaces.cpp index 444152aaa36..4c2aae2e934 100644 --- a/mri_edit_segmentation_with_surfaces/mri_edit_segmentation_with_surfaces.cpp +++ b/mri_edit_segmentation_with_surfaces/mri_edit_segmentation_with_surfaces.cpp @@ -24,6 +24,7 @@ #include #include +#include "version.h" #include "macros.h" #include "error.h" #include "diag.h" @@ -38,7 +39,6 @@ #include "colortab.h" #include "gca.h" -static char vcid[] = "$Id: mri_edit_segmentation_with_surfaces.c,v 1.23 2015/03/24 17:57:20 greve Exp $"; int main(int argc, char *argv[]) ; @@ -471,7 +471,7 @@ print_help(void) static void print_version(void) { - fprintf(stderr, "%s\n", vcid) ; + fprintf(stderr, "%s\n", getVersion().c_str()) ; exit(1) ; } diff --git a/mri_evaluate_morph/mri_evaluate_morph.cpp b/mri_evaluate_morph/mri_evaluate_morph.cpp index d567ffc09f0..438195efef8 100644 --- a/mri_evaluate_morph/mri_evaluate_morph.cpp +++ b/mri_evaluate_morph/mri_evaluate_morph.cpp @@ -29,7 +29,6 @@ #include "transform.h" #include "version.h" -static char vcid[] = "$Id: mri_evaluate_morph.c,v 1.5 2011/03/02 00:04:15 nicks Exp $"; int main(int argc, char *argv[]) ; @@ -195,7 +194,7 @@ print_help(void) { static void print_version(void) { - fprintf(stderr, "%s\n", vcid) ; + fprintf(stderr, "%s\n", getVersion().c_str()) ; exit(1) ; } diff --git a/mri_extract_label/mri_extract_label.cpp b/mri_extract_label/mri_extract_label.cpp index 84caaa15322..06d169d60de 100644 --- a/mri_extract_label/mri_extract_label.cpp +++ b/mri_extract_label/mri_extract_label.cpp @@ -35,8 +35,6 @@ #define UNIT_VOLUME 128 -static char vcid[] = - "$Id: mri_extract_label.c,v 1.13 2011/03/02 00:04:15 nicks Exp $"; int main(int argc, char *argv[]) ; @@ -284,7 +282,7 @@ print_help(void) static void print_version(void) { - fprintf(stderr, "%s\n", vcid) ; + fprintf(stderr, "%s\n", getVersion().c_str()) ; exit(1) ; } diff --git a/mri_fdr/mri_fdr.cpp b/mri_fdr/mri_fdr.cpp index 61fb159bfaa..2c6343539b9 100644 --- a/mri_fdr/mri_fdr.cpp +++ b/mri_fdr/mri_fdr.cpp @@ -66,7 +66,6 @@ static void print_version(void) ; static void dump_options(FILE *fp); int main(int argc, char *argv[]) ; -static char vcid[] = "$Id: mri_fdr.c,v 1.2 2016/01/07 22:23:57 greve Exp $"; const char *Progname = NULL; char *cmdline, cwd[2000]; int debug=0; @@ -287,7 +286,7 @@ static void print_usage(void) { printf(" --help print out information on how to use this program\n"); printf(" --version print out version and exit\n"); printf("\n"); - printf("%s\n", vcid) ; + std::cout << getVersion() << std::endl; printf("\n"); } /* -------------------------------------------------------- */ @@ -316,7 +315,7 @@ static void print_help(void) { } /* -------------------------------------------------------- */ static void print_version(void) { - printf("%s\n", vcid) ; + std::cout << getVersion() << std::endl; exit(1) ; } /* -------------------------------------------------------- */ @@ -334,7 +333,7 @@ static void check_options(void) { /* -------------------------------------------------------- */ static void dump_options(FILE *fp) { fprintf(fp,"\n"); - fprintf(fp,"%s\n",vcid); + fprintf(fp,"%s\n", getVersion().c_str()); fprintf(fp,"cwd %s\n",cwd); fprintf(fp,"cmdline %s\n",cmdline); fprintf(fp,"sysname %s\n",uts.sysname); diff --git a/mri_fieldsign/mri_fieldsign.cpp b/mri_fieldsign/mri_fieldsign.cpp index 2098dd25d40..73695e68538 100644 --- a/mri_fieldsign/mri_fieldsign.cpp +++ b/mri_fieldsign/mri_fieldsign.cpp @@ -27,7 +27,6 @@ */ -// $Id: mri_fieldsign.c,v 1.15 2011/10/05 21:57:21 greve Exp $ /* BEGINHELP @@ -80,7 +79,6 @@ MRI *SFA2MRI(MRI *eccen, MRI *polar, int SFATrue); int main(int argc, char *argv[]) ; -static char vcid[] = "$Id: mri_fieldsign.c,v 1.15 2011/10/05 21:57:21 greve Exp $"; const char *Progname = NULL; char *cmdline, cwd[2000]; int debug=0; @@ -484,7 +482,7 @@ static void print_usage(void) { printf(" --help print out information on how to use this program\n"); printf(" --version print out version and exit\n"); printf("\n"); - printf("%s\n", vcid) ; + std::cout << getVersion() << std::endl; printf("\n"); } /*--------------------------------------------------*/ @@ -495,7 +493,7 @@ static void print_help(void) { } /*--------------------------------------------------*/ static void print_version(void) { - printf("%s\n", vcid) ; + std::cout << getVersion() << std::endl; exit(1) ; } /*--------------------------------------------------*/ @@ -527,7 +525,7 @@ static void check_options(void) /*--------------------------------------------------*/ static void dump_options(FILE *fp) { fprintf(fp,"\n"); - fprintf(fp,"%s\n",vcid); + fprintf(fp,"%s\n", getVersion().c_str()); fprintf(fp,"cwd %s\n",cwd); fprintf(fp,"cmdline %s\n",cmdline); fprintf(fp,"sysname %s\n",uts.sysname); diff --git a/mri_fill/mri_fill.cpp b/mri_fill/mri_fill.cpp index c2bbe385335..f36e96c86e7 100644 --- a/mri_fill/mri_fill.cpp +++ b/mri_fill/mri_fill.cpp @@ -48,8 +48,6 @@ #include "connectcomp.h" #include "mrisegment.h" -static char vcid[] = - "$Id: mri_fill.c,v 1.119 2011/10/25 14:09:58 fischl Exp $"; /*------------------------------------------------------------------- CONSTANTS @@ -3782,7 +3780,7 @@ get_option(int argc, char *argv[]) static void print_version(void) { - fprintf(stderr, "fill version %s\n", vcid) ; + fprintf(stderr, "fill version %s\n", getVersion().c_str()) ; exit(0) ; } diff --git a/mri_fit_bias/mri_fit_bias.cpp b/mri_fit_bias/mri_fit_bias.cpp index 180a9f8ff30..e6d6810fb28 100644 --- a/mri_fit_bias/mri_fit_bias.cpp +++ b/mri_fit_bias/mri_fit_bias.cpp @@ -95,7 +95,6 @@ static void dump_options(FILE *fp); int main(int argc, char *argv[]) ; MRI *MRIpolyfitBiasField(MRI *vol2, int order2, MRI *seg2, MRI *bias2); -static char vcid[] = "$Id: mri_fit_bias.c,v 1.3 2012/04/30 21:32:21 greve Exp $"; const char *Progname = NULL; char *cmdline, cwd[2000]; int debug=0; @@ -340,7 +339,7 @@ static void print_usage(void) { printf(" --help print out information on how to use this program\n"); printf(" --version print out version and exit\n"); printf("\n"); - printf("%s\n", vcid) ; + std::cout << getVersion() << std::endl; printf("\n"); } /* -----------------------------------------------------------------------*/ @@ -351,7 +350,7 @@ static void print_help(void) { } /* -----------------------------------------------------------------------*/ static void print_version(void) { - printf("%s\n", vcid) ; + std::cout << getVersion() << std::endl; exit(1) ; } /* -----------------------------------------------------------------------*/ @@ -374,7 +373,7 @@ static void check_options(void) { /* -----------------------------------------------------------------------*/ static void dump_options(FILE *fp) { fprintf(fp,"\n"); - fprintf(fp,"%s\n",vcid); + fprintf(fp,"%s\n", getVersion().c_str()); fprintf(fp,"cwd %s\n",cwd); fprintf(fp,"cmdline %s\n",cmdline); fprintf(fp,"sysname %s\n",uts.sysname); diff --git a/mri_fwhm/mri_fwhm.cpp b/mri_fwhm/mri_fwhm.cpp index 94fef8531bc..0f81412b6fd 100644 --- a/mri_fwhm/mri_fwhm.cpp +++ b/mri_fwhm/mri_fwhm.cpp @@ -256,7 +256,6 @@ static void print_version(void) ; static void dump_options(FILE *fp); int main(int argc, char *argv[]) ; -static char vcid[] = "$Id: mri_fwhm.c,v 1.35 2016/11/01 20:25:24 greve Exp $"; const char *Progname = NULL; char *cmdline, cwd[2000]; int debug=0; @@ -977,7 +976,7 @@ static void print_usage(void) { printf(" --help print out information on how to use this program\n"); printf(" --version print out version and exit\n"); printf("\n"); - printf("%s\n", vcid) ; + std::cout << getVersion() << std::endl; printf("\n"); } /* --------------------------------------------- */ @@ -1171,7 +1170,7 @@ printf("\n"); } /* --------------------------------------------- */ static void print_version(void) { - printf("%s\n", vcid) ; + std::cout << getVersion() << std::endl; exit(1) ; } /* --------------------------------------------- */ @@ -1200,7 +1199,7 @@ static void check_options(void) { /* --------------------------------------------- */ static void dump_options(FILE *fp) { fprintf(fp,"\n"); - fprintf(fp,"%s\n",vcid); + fprintf(fp,"%s\n", getVersion().c_str()); fprintf(fp,"%s\n",Progname); fprintf(fp,"FREESURFER_HOME %s\n",getenv("FREESURFER_HOME")); fprintf(fp,"cwd %s\n",cwd); diff --git a/mri_gca_ambiguous/mri_gca_ambiguous.cpp b/mri_gca_ambiguous/mri_gca_ambiguous.cpp index bd85b0d5c4a..95472696cd8 100644 --- a/mri_gca_ambiguous/mri_gca_ambiguous.cpp +++ b/mri_gca_ambiguous/mri_gca_ambiguous.cpp @@ -31,7 +31,6 @@ #include "gca.h" #include "flash.h" -static char vcid[] = "$Id: mri_gca_ambiguous.c,v 1.4 2011/03/02 00:04:15 nicks Exp $"; static double scale = 1e12 ; @@ -436,7 +435,7 @@ print_help(void) { static void print_version(void) { - fprintf(stderr, "%s\n", vcid) ; + fprintf(stderr, "%s\n", getVersion().c_str()) ; exit(1) ; } diff --git a/mri_gcut/mri_gcut.cpp b/mri_gcut/mri_gcut.cpp index f91b4224bb5..b19ea816294 100644 --- a/mri_gcut/mri_gcut.cpp +++ b/mri_gcut/mri_gcut.cpp @@ -78,8 +78,6 @@ #include "graphcut.cpp" const char *Progname; -static char vcid[] = - "$Id: mri_gcut.cpp,v 1.14 2011/03/02 00:04:16 nicks Exp $"; static char in_filename[STRLEN]; static char out_filename[STRLEN]; static char mask_filename[STRLEN]; @@ -132,7 +130,7 @@ static void print_help(void) /* --------------------------------------------- */ static void print_version(void) { - printf("%s\n", vcid) ; + std::cout << getVersion() << std::endl; exit(1) ; } diff --git a/mri_glmfit/mri_glmfit.cpp b/mri_glmfit/mri_glmfit.cpp index 6ba972470b8..ebb3d9bb47e 100644 --- a/mri_glmfit/mri_glmfit.cpp +++ b/mri_glmfit/mri_glmfit.cpp @@ -562,8 +562,6 @@ static int SmoothSurfOrVol(MRIS *surf, MRI *mri, MRI *mask, double SmthLevel); int main(int argc, char *argv[]) ; -static char vcid[] = -"$Id: mri_glmfit.c,v 1.246 2017/02/15 21:04:18 greve Exp $"; const char *Progname = "mri_glmfit"; int SynthSeed = -1; @@ -3389,7 +3387,7 @@ static void usage_exit(void) { } /* --------------------------------------------- */ static void print_version(void) { - printf("%s\n", vcid) ; + std::cout << getVersion() << std::endl; exit(1) ; } /* --------------------------------------------- */ @@ -3555,7 +3553,7 @@ static void dump_options(FILE *fp) { int n; fprintf(fp,"\n"); - fprintf(fp,"%s\n",vcid); + fprintf(fp,"%s\n", getVersion().c_str()); fprintf(fp,"cwd %s\n",cwd); fprintf(fp,"cmdline %s\n",cmdline); fprintf(fp,"sysname %s\n",uts.sysname); diff --git a/mri_gtmpvc/mri_gtmpvc.cpp b/mri_gtmpvc/mri_gtmpvc.cpp index 392559c689a..75504bd6065 100644 --- a/mri_gtmpvc/mri_gtmpvc.cpp +++ b/mri_gtmpvc/mri_gtmpvc.cpp @@ -28,7 +28,6 @@ */ -// $Id: mri_gtmpvc.c,v 1.70 2016/07/07 15:39:49 greve Exp $ /* BEGINHELP @@ -88,7 +87,6 @@ static void print_version(void) ; static void dump_options(FILE *fp); int main(int argc, char *argv[]) ; -static char vcid[] = "$Id: mri_gtmpvc.c,v 1.70 2016/07/07 15:39:49 greve Exp $"; const char *Progname = NULL; char *cmdline, cwd[2000]; int debug=0; @@ -1744,7 +1742,7 @@ static void print_usage(void) { printf(" --help print out information on how to use this program\n"); printf(" --version print out version and exit\n"); printf("\n"); - printf("%s\n", vcid) ; + std::cout << getVersion() << std::endl; printf("\n"); } /*---------------------------------------------------------------*/ @@ -1755,7 +1753,7 @@ static void print_help(void) { } /*---------------------------------------------------------------*/ static void print_version(void) { - printf("%s\n", vcid) ; + std::cout << getVersion() << std::endl; exit(1) ; } /*---------------------------------------------------------------*/ @@ -1900,7 +1898,7 @@ static void check_options(void) static void dump_options(FILE *fp) { int n; fprintf(fp,"\n"); - fprintf(fp,"%s\n",vcid); + fprintf(fp,"%s\n", getVersion().c_str()); fprintf(fp,"setenv SUBJECTS_DIR %s\n",SUBJECTS_DIR); fprintf(fp,"cd %s\n",cwd); fprintf(fp,"%s\n",cmdline); diff --git a/mri_gtmseg/mri_gtmseg.cpp b/mri_gtmseg/mri_gtmseg.cpp index 3c463c712fe..34f4e7ebed6 100644 --- a/mri_gtmseg/mri_gtmseg.cpp +++ b/mri_gtmseg/mri_gtmseg.cpp @@ -16,7 +16,6 @@ * Reporting: freesurfer@nmr.mgh.harvard.edu * */ -// $Id: mri_gtmseg.c,v 1.10 2016/08/02 21:07:24 greve Exp $ /* BEGINHELP @@ -60,7 +59,6 @@ static void dump_options(FILE *fp); int main(int argc, char *argv[]) ; MRI *MRIErodeWMSeg(MRI *seg, int nErode3d, MRI *outseg); -static char vcid[] = "$Id: mri_gtmseg.c,v 1.10 2016/08/02 21:07:24 greve Exp $"; const char *Progname = NULL; char *cmdline, cwd[2000]; int debug=0; @@ -376,7 +374,7 @@ static void print_usage(void) { printf(" --help print out information on how to use this program\n"); printf(" --version print out version and exit\n"); printf("\n"); - printf("%s\n", vcid) ; + std::cout << getVersion() << std::endl; printf("\n"); } /*-----------------------------------------------------------------------------------*/ @@ -387,7 +385,7 @@ static void print_help(void) { } /*-----------------------------------------------------------------------------------*/ static void print_version(void) { - printf("%s\n", vcid) ; + std::cout << getVersion() << std::endl; exit(1) ; } /*-----------------------------------------------------------------------------------*/ @@ -397,7 +395,7 @@ static void check_options(void) { /*-----------------------------------------------------------------------------------*/ static void dump_options(FILE *fp) { fprintf(fp,"\n"); - fprintf(fp,"%s\n",vcid); + fprintf(fp,"%s\n", getVersion().c_str()); fprintf(fp,"cwd %s\n",cwd); fprintf(fp,"cmdline %s\n",cmdline); fprintf(fp,"sysname %s\n",uts.sysname); diff --git a/mri_hausdorff_dist/mri_hausdorff_dist.cpp b/mri_hausdorff_dist/mri_hausdorff_dist.cpp index 0a1f5017173..e3ebdc841fb 100644 --- a/mri_hausdorff_dist/mri_hausdorff_dist.cpp +++ b/mri_hausdorff_dist/mri_hausdorff_dist.cpp @@ -49,7 +49,6 @@ static void print_usage(void) ; static void usage_exit(void); static void print_help(void) ; static double compute_hdist(MRI **mri, int nvolumes, int index, double *hdists, int which); -static char vcid[] = "$Id: mri_hausdorff_dist.c,v 1.14 2014/07/18 20:19:23 lzollei Exp $"; static int fromFile = 0; const char *Progname ; @@ -486,6 +485,6 @@ get_option(int argc, char *argv[]) { } static void print_version(void) { - fprintf(stderr, "%s\n", vcid) ; + fprintf(stderr, "%s\n", getVersion().c_str()) ; exit(1) ; } diff --git a/mri_info/mri_info.cpp b/mri_info/mri_info.cpp index 644fa920178..33c601e25e6 100644 --- a/mri_info/mri_info.cpp +++ b/mri_info/mri_info.cpp @@ -50,8 +50,6 @@ static void usage_exit(void); static void print_help(void) ; static void print_version(void) ; -static char vcid[] = - "$Id: mri_info.c,v 1.87 2014/11/20 23:46:54 greve Exp $"; const char *Progname ; static char *inputlist[100]; @@ -553,7 +551,7 @@ static void print_help(void) /* --------------------------------------------- */ static void print_version(void) { - printf("%s\n", vcid) ; + std::cout << getVersion() << std::endl; exit(1) ; } /* --------------------------------------------- */ diff --git a/mri_label2label/mri_label2label.cpp b/mri_label2label/mri_label2label.cpp index fe5e9fba944..870fdc74bb0 100644 --- a/mri_label2label/mri_label2label.cpp +++ b/mri_label2label/mri_label2label.cpp @@ -85,8 +85,6 @@ static int nth_is_arg(int nargc, char **argv, int nth); int main(int argc, char *argv[]) ; -static char vcid[] = - "$Id: mri_label2label.c,v 1.50 2016/12/10 22:57:43 fischl Exp $"; const char *Progname = NULL; static int label_erode = 0 ; @@ -1349,7 +1347,7 @@ static void dump_options(FILE *fp) { } /* --------------------------------------------- */ static void print_version(void) { - fprintf(stderr, "%s\n", vcid) ; + fprintf(stderr, "%s\n", getVersion().c_str()) ; exit(1) ; } /* --------------------------------------------- */ diff --git a/mri_label2vol/mri_label2vol.cpp b/mri_label2vol/mri_label2vol.cpp index fa698420eea..5b15415b733 100644 --- a/mri_label2vol/mri_label2vol.cpp +++ b/mri_label2vol/mri_label2vol.cpp @@ -75,7 +75,6 @@ static int *NthLabelMap(MRI *aseg, int *nlabels); int main(int argc, char *argv[]) ; -static char vcid[] = "$Id: mri_label2vol.c,v 1.46 2014/12/08 21:11:54 greve Exp $"; const char *Progname = NULL; char *LabelList[100]; @@ -174,7 +173,7 @@ int main(int argc, char **argv) { parse_commandline(argc, argv); check_options(); dump_options(stdout); - printf("%s\n",vcid); + printf("%s\n",getVersion().c_str()); if(TempVolId){ // Load the template volume @@ -825,7 +824,7 @@ static void print_usage(void) { printf(" --version : print version and exit\n"); printf(" --help \n"); printf("\n"); - printf("%s\n",vcid); + printf("%s\n",getVersion().c_str()); printf("\n"); } /* --------------------------------------------- */ @@ -1087,7 +1086,7 @@ static void print_help(void) { } /* --------------------------------------------- */ static void print_version(void) { - printf("%s\n", vcid) ; + std::cout << getVersion() << std::endl; exit(1) ; } /* --------------------------------------------- */ diff --git a/mri_mask/mri_mask.cpp b/mri_mask/mri_mask.cpp index ee0a1f86e06..e8d8906b4f9 100644 --- a/mri_mask/mri_mask.cpp +++ b/mri_mask/mri_mask.cpp @@ -45,7 +45,6 @@ #include "region.h" #include "cma.h" -static char vcid[] = "$Id: mri_mask.c,v 1.24 2016/11/28 20:30:57 fischl Exp $"; void usage(int exit_val); @@ -349,7 +348,7 @@ void usage(int exit_val) /* --------------------------------------------- */ static void print_version(void) { - fprintf(stdout, "%s\n", vcid) ; + fprintf(stdout, "%s\n", getVersion().c_str()) ; exit(1) ; } diff --git a/mri_mcsim/mri_mcsim.cpp b/mri_mcsim/mri_mcsim.cpp index 9dd75856877..97189a3faca 100644 --- a/mri_mcsim/mri_mcsim.cpp +++ b/mri_mcsim/mri_mcsim.cpp @@ -112,7 +112,6 @@ static void dump_options(FILE *fp); int SaveOutput(void); int main(int argc, char *argv[]) ; -static char vcid[] = "$Id: mri_mcsim.c,v 1.27 2016/11/01 19:47:46 greve Exp $"; const char *Progname = NULL; char *cmdline, cwd[2000]; int debug=0; @@ -711,7 +710,7 @@ static void print_usage(void) { printf(" --help print out information on how to use this program\n"); printf(" --version print out version and exit\n"); printf("\n"); - printf("%s\n", vcid) ; + std::cout << getVersion() << std::endl; printf("\n"); } /* --------------------------------------------- */ @@ -775,7 +774,7 @@ printf("\n"); } /* --------------------------------------------- */ static void print_version(void) { - printf("%s\n", vcid) ; + std::cout << getVersion() << std::endl; exit(1) ; } /* --------------------------------------------- */ @@ -832,7 +831,7 @@ static void check_options(void) { /* --------------------------------------------- */ static void dump_options(FILE *fp) { fprintf(fp,"\n"); - fprintf(fp,"%s\n",vcid); + fprintf(fp,"%s\n", getVersion().c_str()); fprintf(fp,"cwd %s\n",cwd); fprintf(fp,"cmdline %s\n",cmdline); fprintf(fp,"sysname %s\n",uts.sysname); @@ -879,7 +878,7 @@ int SaveOutput(void) fprintf(fp,"# ClusterSimulationData 2\n"); fprintf(fp,"# mri_mcsim\n"); fprintf(fp,"# %s\n",cmdline); - fprintf(fp,"# %s\n",vcid); + fprintf(fp,"# %s\n",getVersion().c_str()); fprintf(fp,"# hostname %s\n",uts.nodename); fprintf(fp,"# machine %s\n",uts.machine); fprintf(fp,"# runtime_min %g\n",msecTime/(1000*60.0)); diff --git a/mri_mi/mri_mi.cpp b/mri_mi/mri_mi.cpp index 8e4b0ce2ac5..2f7ff76f04b 100644 --- a/mri_mi/mri_mi.cpp +++ b/mri_mi/mri_mi.cpp @@ -43,7 +43,6 @@ static void print_help(void) ; static void print_version(void) ; static int get_option(int argc, char *argv[]) ; -static char vcid[] = "$Id: mri_mi.c,v 1.1 2017/02/07 04:02:05 lzollei Exp $"; const char *Progname = NULL; int silent_mode = 0; @@ -266,7 +265,7 @@ static void print_help(void) /* --------------------------------------------- */ static void print_version(void) { - printf("%s\n", vcid) ; + std::cout << getVersion() << std::endl; exit(1) ; } diff --git a/mri_modify/mri_copy_params.cpp b/mri_modify/mri_copy_params.cpp index 85f4a603966..53bc6ae63aa 100644 --- a/mri_modify/mri_copy_params.cpp +++ b/mri_modify/mri_copy_params.cpp @@ -30,8 +30,6 @@ static int get_option(int argc, char *argv[]) ; static void usage_exit(void) ; static void print_version(void) ; -static char vcid[] = - "$Id: mri_copy_params.cpp,v 1.5 2011/03/02 00:04:23 nicks Exp $"; static int copy_pulse_params_only = 0 ; static int copy_ras_only = 0 ; @@ -196,7 +194,7 @@ get_option(int argc, char *argv[]) { static void print_version(void) { - fprintf(stderr, "%s\n", vcid) ; + fprintf(stderr, "%s\n", getVersion().c_str()) ; exit(1) ; } static void diff --git a/mri_nlfilter/mri_nlfilter.cpp b/mri_nlfilter/mri_nlfilter.cpp index 61aae1f07cc..d7d0005a47a 100644 --- a/mri_nlfilter/mri_nlfilter.cpp +++ b/mri_nlfilter/mri_nlfilter.cpp @@ -29,7 +29,6 @@ #include "region.h" #include "version.h" -static char vcid[] = "$Id: mri_nlfilter.c,v 1.17 2016/12/08 17:27:53 fischl Exp $"; int main(int argc, char *argv[]) ; static int get_option(int argc, char *argv[]) ; @@ -571,7 +570,7 @@ print_help(void) { static void print_version(void) { - fprintf(stderr, "%s\n", vcid) ; + fprintf(stderr, "%s\n", getVersion().c_str()) ; exit(1) ; } diff --git a/mri_paint/mri_paint.cpp b/mri_paint/mri_paint.cpp index 92b9ed08046..f65f4169611 100644 --- a/mri_paint/mri_paint.cpp +++ b/mri_paint/mri_paint.cpp @@ -27,7 +27,6 @@ #include "transform.h" #include "version.h" -static char vcid[] = "$Id: mri_paint.c,v 1.5 2011/03/02 00:04:23 nicks Exp $"; int main(int argc, char *argv[]) ; @@ -189,7 +188,7 @@ print_help(void) { static void print_version(void) { - fprintf(stderr, "%s\n", vcid) ; + fprintf(stderr, "%s\n", getVersion().c_str()) ; exit(1) ; } diff --git a/mri_parse_sdcmdir/mri_parse_sdcmdir.cpp b/mri_parse_sdcmdir/mri_parse_sdcmdir.cpp index 83eba9edfe5..c43391bab75 100644 --- a/mri_parse_sdcmdir/mri_parse_sdcmdir.cpp +++ b/mri_parse_sdcmdir/mri_parse_sdcmdir.cpp @@ -49,7 +49,6 @@ extern int isblank(int c); int main(int argc, char *argv[]) ; -static char vcid[] = "$Id: mri_parse_sdcmdir.c,v 1.22 2015/05/21 16:37:12 greve Exp $"; const char *Progname = NULL; static int parse_commandline(int argc, char **argv); @@ -106,7 +105,7 @@ int main(int argc, char **argv) { uname(&uts); getcwd(cwd,2000); - fprintf(stdout,"%s\n",vcid); + fprintf(stdout,"%s\n",getVersion().c_str()); fprintf(stdout,"cwd %s\n",cwd); fprintf(stdout,"cmdline %s\n",cmdline); fprintf(stdout,"sysname %s\n",uts.sysname); @@ -387,7 +386,7 @@ static void check_options(void) { } /* --------------------------------------------- */ static void print_version(void) { - fprintf(stderr, "%s\n", vcid) ; + fprintf(stderr, "%s\n", getVersion().c_str()) ; exit(1) ; } /* --------------------------------------------- */ diff --git a/mri_path2label/mri_path2label.cpp b/mri_path2label/mri_path2label.cpp index a65ca93a428..ce099aa60d9 100644 --- a/mri_path2label/mri_path2label.cpp +++ b/mri_path2label/mri_path2label.cpp @@ -92,8 +92,6 @@ static void usage_exit(void); static void print_version(void) ; static int MRISfill(MRIS *mris, int seedvtxno); -static char vcid[] = -"$Id: mri_path2label.c,v 1.23 2011/03/02 00:04:23 nicks Exp $"; char* source_file = NULL; char* dest_file = NULL; @@ -328,7 +326,7 @@ static void usage_exit(void) { } /*-----------------------------------------------------------*/ static void print_version(void) { - printf("%s\n", vcid) ; + std::cout << getVersion() << std::endl; exit(1) ; } /*-----------------------------------------------------------*/ diff --git a/mri_probe_ima/mri_probe_ima.cpp b/mri_probe_ima/mri_probe_ima.cpp index 699db260a19..7229158511f 100644 --- a/mri_probe_ima/mri_probe_ima.cpp +++ b/mri_probe_ima/mri_probe_ima.cpp @@ -38,7 +38,6 @@ int main(int argc, char *argv[]) ; -static char vcid[] = "$Id: mri_probe_ima.c,v 1.13 2011/03/02 00:04:24 nicks Exp $"; const char *Progname = NULL; static int parse_commandline(int argc, char **argv); @@ -496,13 +495,13 @@ static void print_help(void) { "VERSION\n" "\n" ); - printf(" %s\n\n", vcid) ; + printf(" %s\n\n", getVersion().c_str()) ; exit(1) ; } /* --------------------------------------------- */ static void print_version(void) { - fprintf(stderr, "%s\n", vcid) ; + fprintf(stderr, "%s\n", getVersion().c_str()) ; exit(1) ; } /* --------------------------------------------- */ diff --git a/mri_probedicom/mri_probedicom.cpp b/mri_probedicom/mri_probedicom.cpp index 4cd902ac33e..4c4ef010034 100644 --- a/mri_probedicom/mri_probedicom.cpp +++ b/mri_probedicom/mri_probedicom.cpp @@ -62,7 +62,6 @@ int main(int argc, char *argv[]) ; -static char vcid[] = "$Id: mri_probedicom.c,v 1.45 2015/07/28 21:51:22 greve Exp $"; const char *Progname = NULL; static int parse_commandline(int argc, char **argv); @@ -629,7 +628,7 @@ static void print_help(void) { } /* --------------------------------------------- */ static void print_version(void) { - fprintf(stderr, "%s\n", vcid) ; + fprintf(stderr, "%s\n", getVersion().c_str()) ; exit(1) ; } /* --------------------------------------------- */ diff --git a/mri_rbvpvc/mri_rbvpvc.c b/mri_rbvpvc/mri_rbvpvc.c index af504dbd882..4a7a8e2b84d 100644 --- a/mri_rbvpvc/mri_rbvpvc.c +++ b/mri_rbvpvc/mri_rbvpvc.c @@ -28,7 +28,6 @@ */ -// $Id: mri_rbvpvc.c,v 1.44 2014/08/17 17:47:57 greve Exp $ /* BEGINHELP @@ -91,7 +90,6 @@ static void print_version(void) ; static void dump_options(FILE *fp); int main(int argc, char *argv[]) ; -static char vcid[] = "$Id: mri_rbvpvc.c,v 1.44 2014/08/17 17:47:57 greve Exp $"; const char *Progname = NULL; char *cmdline, cwd[2000]; int debug=0; @@ -884,7 +882,7 @@ static void print_usage(void) { printf(" --help print out information on how to use this program\n"); printf(" --version print out version and exit\n"); printf("\n"); - printf("%s\n", vcid) ; + std::cout << getVersion() << std::endl; printf("\n"); } /*---------------------------------------------------------------*/ @@ -895,7 +893,7 @@ static void print_help(void) { } /*---------------------------------------------------------------*/ static void print_version(void) { - printf("%s\n", vcid) ; + std::cout << getVersion() << std::endl; exit(1) ; } /*---------------------------------------------------------------*/ @@ -970,7 +968,7 @@ static void check_options(void) /*---------------------------------------------------------------*/ static void dump_options(FILE *fp) { fprintf(fp,"\n"); - fprintf(fp,"%s\n",vcid); + fprintf(fp,"%s\n", getVersion().c_str()); fprintf(fp,"setenv SUBJECTS_DIR %s\n",SUBJECTS_DIR); fprintf(fp,"cd %s\n",cwd); fprintf(fp,"%s\n",cmdline); diff --git a/mri_relabel_hypointensities/mri_relabel_hypointensities.cpp b/mri_relabel_hypointensities/mri_relabel_hypointensities.cpp index 576b5c3c3b1..882d2085a21 100644 --- a/mri_relabel_hypointensities/mri_relabel_hypointensities.cpp +++ b/mri_relabel_hypointensities/mri_relabel_hypointensities.cpp @@ -35,8 +35,6 @@ #include "cma.h" #include "version.h" -static char vcid[] = - "$Id: mri_relabel_hypointensities.c,v 1.13 2015/05/15 18:44:10 nicks Exp $"; int main(int argc, char *argv[]) ; @@ -193,7 +191,7 @@ print_help(void) static void print_version(void) { - fprintf(stderr, "%s\n", vcid) ; + fprintf(stderr, "%s\n", getVersion().c_str()) ; exit(1) ; } diff --git a/mri_relabel_nonwm_hypos/mri_relabel_nonwm_hypos.cpp b/mri_relabel_nonwm_hypos/mri_relabel_nonwm_hypos.cpp index 02b871ac3ad..1e4a5f574d0 100644 --- a/mri_relabel_nonwm_hypos/mri_relabel_nonwm_hypos.cpp +++ b/mri_relabel_nonwm_hypos/mri_relabel_nonwm_hypos.cpp @@ -22,7 +22,6 @@ */ -// $Id: mri_relabel_nonwm_hypos.c,v 1.2 2014/04/17 18:03:22 greve Exp $ /* BEGINHELP @@ -66,7 +65,6 @@ int main(int argc, char *argv[]) ; int PrintSegIds(int nsegs, int *segidlist, int *outsegidlist); int DefaultSegIds(int *segidlist, int *outsegidlist); -static char vcid[] = "$Id: mri_relabel_nonwm_hypos.c,v 1.2 2014/04/17 18:03:22 greve Exp $"; const char *Progname = NULL; char *cmdline, cwd[2000]; int debug=0; @@ -187,7 +185,7 @@ static void print_usage(void) { printf(" --help print out information on how to use this program\n"); printf(" --version print out version and exit\n"); printf("\n"); - printf("%s\n", vcid) ; + std::cout << getVersion() << std::endl; printf("\n"); } /*-------------------------------------------------------*/ @@ -213,7 +211,7 @@ static void print_help(void) { } /*-------------------------------------------------------*/ static void print_version(void) { - printf("%s\n", vcid) ; + std::cout << getVersion() << std::endl; exit(1) ; } /*-------------------------------------------------------*/ @@ -235,7 +233,7 @@ static void check_options(void) { /*-------------------------------------------------------*/ static void dump_options(FILE *fp) { fprintf(fp,"\n"); - fprintf(fp,"%s\n",vcid); + fprintf(fp,"%s\n", getVersion().c_str()); fprintf(fp,"cwd %s\n",cwd); fprintf(fp,"cmdline %s\n",cmdline); fprintf(fp,"sysname %s\n",uts.sysname); diff --git a/mri_robust_register/mri_create_tests.cpp b/mri_robust_register/mri_create_tests.cpp index ee9e58c1f27..4493ea6b90f 100644 --- a/mri_robust_register/mri_create_tests.cpp +++ b/mri_robust_register/mri_create_tests.cpp @@ -81,8 +81,6 @@ static struct Parameters P = static void printUsage(void); static bool parseCommandLine(int argc, char *argv[], Parameters & P); -static char vcid[] = - "$Id: mri_create_tests.cpp,v 1.9 2012/11/10 15:35:01 mreuter Exp $"; const char *Progname = NULL; std::vector get_random(int lowest, int highest, int num = 3) @@ -159,7 +157,7 @@ int main(int argc, char *argv[]) // testvnl(); { // for valgrind, so that everything is freed - cout << vcid << endl; + cout << getVersion() << endl; // Default initialization int nargs = handleVersionOption(argc, argv, "mri_create_tests"); diff --git a/mri_robust_register/mri_gradient_info.cpp b/mri_robust_register/mri_gradient_info.cpp index 1f7664eac32..3f2f7774c41 100644 --- a/mri_robust_register/mri_gradient_info.cpp +++ b/mri_robust_register/mri_gradient_info.cpp @@ -36,8 +36,6 @@ #include "transform.h" using namespace std; - -//static char vcid[] = "$Id: mri_gradient_info.cpp,v 1.5 2012/09/21 23:05:17 mreuter Exp $"; const char *Progname = NULL; double scanX(MRI* mri_grad, MRI* mri_mask) diff --git a/mri_robust_register/mri_robust_register.cpp b/mri_robust_register/mri_robust_register.cpp index 272e46c3774..9d8ea644f9b 100644 --- a/mri_robust_register/mri_robust_register.cpp +++ b/mri_robust_register/mri_robust_register.cpp @@ -140,8 +140,6 @@ static void printUsage(void); static bool parseCommandLine(int argc, char *argv[], Parameters & P); static void initRegistration(Registration & R, Parameters & P); -static char vcid[] = - "$Id: mri_robust_register.cpp,v 1.77 2016/01/20 23:36:17 greve Exp $"; const char *Progname = NULL; //static MORPH_PARMS parms ; @@ -590,7 +588,7 @@ int main(int argc, char *argv[]) { { // for valgrind, so that everything is freed - cout << vcid << endl << endl; + cout << getVersion() << endl << endl; // setenv("SURFER_FRONTDOOR","",1) ; // set the environment variable // to store mri as chunk in memory: diff --git a/mri_robust_register/mri_robust_template.cpp b/mri_robust_register/mri_robust_template.cpp index 990a0ed99b0..a19f5ccd3ac 100644 --- a/mri_robust_register/mri_robust_template.cpp +++ b/mri_robust_register/mri_robust_template.cpp @@ -130,8 +130,6 @@ static struct Parameters P = static void printUsage(void); static bool parseCommandLine(int argc, char *argv[], Parameters & P); -static char vcid[] = - "$Id: mri_robust_template.cpp,v 1.54 2016/05/05 21:17:08 mreuter Exp $"; const char *Progname = NULL; int getRandomNumber(int start, int end, unsigned int & seed) @@ -156,7 +154,7 @@ int getRandomNumber(int start, int end, unsigned int & seed) int main(int argc, char *argv[]) { { - cout << vcid << endl << endl; + cout << getVersion() << endl << endl; // set the environment variable // setenv("SURFER_FRONTDOOR","",1) ; // to store mri as chunk in memory: diff --git a/mri_sbbr/mri_sbbr.cpp b/mri_sbbr/mri_sbbr.cpp index 791e2df185e..4d7be66b58c 100644 --- a/mri_sbbr/mri_sbbr.cpp +++ b/mri_sbbr/mri_sbbr.cpp @@ -18,7 +18,6 @@ * */ -// $Id: mri_sbbr.c,v 1.7 2016/09/23 20:23:11 greve Exp $ /* BEGINHELP @@ -137,7 +136,6 @@ int SSBmin1D(SBBR *sbbr); int MRIScomputeFaceNormal(MRIS *surf, int faceno, double snorm[3]); int NormalizeVect3(double v[3]) ; -static char vcid[] = "$Id: mri_sbbr.c,v 1.7 2016/09/23 20:23:11 greve Exp $"; const char *Progname = NULL; char *cmdline, cwd[2000]; int debug=0; @@ -488,7 +486,7 @@ static void print_usage(void) { printf(" --help print out information on how to use this program\n"); printf(" --version print out version and exit\n"); printf("\n"); - printf("%s\n", vcid) ; + std::cout << getVersion() << std::endl; printf("\n"); } /* -------------------------------------------------- */ @@ -501,7 +499,7 @@ static void print_help(void) { } /* -------------------------------------------------- */ static void print_version(void) { - printf("%s\n", vcid) ; + std::cout << getVersion() << std::endl; exit(1) ; } /* -------------------------------------------------- */ @@ -523,7 +521,7 @@ static void check_options(void) { /* -------------------------------------------------- */ static void dump_options(FILE *fp) { fprintf(fp,"\n"); - fprintf(fp,"%s\n",vcid); + fprintf(fp,"%s\n", getVersion().c_str()); fprintf(fp,"cwd %s\n",cwd); fprintf(fp,"cmdline %s\n",cmdline); fprintf(fp,"sysname %s\n",uts.sysname); diff --git a/mri_seg_diff/mri_seg_diff.cpp b/mri_seg_diff/mri_seg_diff.cpp index f37fd6d8f53..66dc876abb3 100644 --- a/mri_seg_diff/mri_seg_diff.cpp +++ b/mri_seg_diff/mri_seg_diff.cpp @@ -99,7 +99,6 @@ static void print_version(void) ; static void dump_options(FILE *fp); int main(int argc, char *argv[]) ; -static char vcid[] = "$Id: mri_seg_diff.c,v 1.5 2011/03/02 00:04:24 nicks Exp $"; const char *Progname = NULL; char *cmdline, cwd[2000]; int debug=0; @@ -263,7 +262,7 @@ static void print_usage(void) { printf(" --help print out information on how to use this program\n"); printf(" --version print out version and exit\n"); printf("\n"); - printf("%s\n", vcid) ; + std::cout << getVersion() << std::endl; printf("\n"); } /*-------------------------------------------------------*/ @@ -299,7 +298,7 @@ printf("\n"); } /*-------------------------------------------------------*/ static void print_version(void) { - printf("%s\n", vcid) ; + std::cout << getVersion() << std::endl; exit(1) ; } /*-------------------------------------------------------*/ @@ -342,7 +341,7 @@ static void check_options(void) { /*-------------------------------------------------------*/ static void dump_options(FILE *fp) { fprintf(fp,"\n"); - fprintf(fp,"%s\n",vcid); + fprintf(fp,"%s\n", getVersion().c_str()); fprintf(fp,"cwd %s\n",cwd); fprintf(fp,"cmdline %s\n",cmdline); fprintf(fp,"sysname %s\n",uts.sysname); diff --git a/mri_seghead/mri_seghead.cpp b/mri_seghead/mri_seghead.cpp index 9d584baafa6..5be25baf493 100644 --- a/mri_seghead/mri_seghead.cpp +++ b/mri_seghead/mri_seghead.cpp @@ -19,7 +19,6 @@ email: analysis-bugs@nmr.mgh.harvard.edu Date: 2/27/02 Purpose: Segment the head. - $Id: mri_seghead.c,v 1.8 2014/03/25 16:06:42 greve Exp $ */ #include @@ -28,6 +27,7 @@ #include #include +#include "version.h" #include "error.h" #include "diag.h" #include "proto.h" @@ -52,7 +52,6 @@ static int singledash(char *flag); static int stringmatch(char *str1, char *str2); int main(int argc, char *argv[]) ; -static char vcid[] = "$Id: mri_seghead.c,v 1.8 2014/03/25 16:06:42 greve Exp $"; const char *Progname = NULL; int debug = 0; char *subjid; @@ -540,7 +539,7 @@ static void print_usage(void) { static void print_help(void) { print_usage() ; - printf("\n%s\n\n",vcid); + printf("\n%s\n\n",getVersion().c_str()); printf( "This program binarizes the input volume such that all the voxels in the \n" @@ -575,7 +574,7 @@ static void print_help(void) { } /* --------------------------------------------- */ static void print_version(void) { - printf("%s\n", vcid) ; + std::cout << getVersion() << std::endl; exit(1) ; } /* --------------------------------------------- */ diff --git a/mri_segreg/mri_segreg.cpp b/mri_segreg/mri_segreg.cpp index 21566b6c9ff..9d69fa853a0 100644 --- a/mri_segreg/mri_segreg.cpp +++ b/mri_segreg/mri_segreg.cpp @@ -210,8 +210,6 @@ double VertexCost(double vctx, double vwm, double slope, int main(int argc, char *argv[]) ; -static char vcid[] = -"$Id: mri_segreg.c,v 1.113 2016/05/10 03:23:20 greve Exp $"; const char *Progname = NULL; int debug = 0, gdiagno = -1; @@ -1642,7 +1640,7 @@ printf(" --surf-con basename : saves final contrast as basename.?h.mgh\n"); /* --------------------------------------------- */ static void print_help(void) { print_usage() ; - printf("\n%s\n\n",vcid); + printf("\n%s\n\n",getVersion().c_str()); exit(1) ; } /* --------------------------------------------- */ @@ -1699,7 +1697,7 @@ static void check_options(void) static void dump_options(FILE *fp) { int n; - fprintf(fp,"%s\n",vcid); + fprintf(fp,"%s\n", getVersion().c_str()); fprintf(fp,"setenv SUBJECTS_DIR %s\n",SUBJECTS_DIR); fprintf(fp,"cd %s\n",getcwd(tmpstr,sizeof(tmpstr))); fprintf(fp,"%s\n",cmdline2); @@ -1782,7 +1780,7 @@ static void dump_options(FILE *fp) } /* --------------------------------------------- */ static void print_version(void) { - printf("%s\n", vcid) ; + std::cout << getVersion() << std::endl; exit(1) ; } /* --------------------------------------------- */ diff --git a/mri_segstats/mri_segstats.cpp b/mri_segstats/mri_segstats.cpp index a7a5770ea7c..895b75484eb 100644 --- a/mri_segstats/mri_segstats.cpp +++ b/mri_segstats/mri_segstats.cpp @@ -99,8 +99,6 @@ float *WMAnatStats(char *subject, char *volname, int nErodes, float Pct); int main(int argc, char *argv[]) ; -static char vcid[] = - "$Id: mri_segstats.c,v 1.122 2017/01/23 18:23:14 greve Exp $"; const char *Progname = NULL; char *SUBJECTS_DIR = NULL, *FREESURFER_HOME=NULL; char *SegVolFile = NULL; @@ -1032,7 +1030,7 @@ int main(int argc, char **argv) fprintf(fp,"# Title Segmentation Statistics \n"); fprintf(fp,"# \n"); fprintf(fp,"# generating_program %s\n",Progname); - fprintf(fp,"# cvs_version %s\n",vcid); + fprintf(fp,"# cvs_version %s\n",getVersion().c_str()); fprintf(fp,"# cmdline %s\n",cmdline); fprintf(fp,"# sysname %s\n",uts.sysname); fprintf(fp,"# hostname %s\n",uts.nodename); @@ -2043,7 +2041,7 @@ static void print_help(void) /* --------------------------------------------- */ static void print_version(void) { - printf("%s\n", vcid) ; + std::cout << getVersion() << std::endl; exit(1) ; } /* --------------------------------------------- */ @@ -2134,7 +2132,7 @@ static void check_options(void) static void dump_options(FILE *fp) { fprintf(fp,"\n"); - fprintf(fp,"%s\n",vcid); + fprintf(fp,"%s\n", getVersion().c_str()); fprintf(fp,"cwd %s\n",cwd); fprintf(fp,"cmdline %s\n",cmdline); fprintf(fp,"sysname %s\n",uts.sysname); diff --git a/mri_stats2seg/mri_stats2seg.cpp b/mri_stats2seg/mri_stats2seg.cpp index bb288131752..480eb12c0dd 100644 --- a/mri_stats2seg/mri_stats2seg.cpp +++ b/mri_stats2seg/mri_stats2seg.cpp @@ -81,7 +81,6 @@ static void print_version(void) ; static void dump_options(FILE *fp); int main(int argc, char *argv[]) ; -static char vcid[] = "$Id: mri_stats2seg.c,v 1.9 2011/03/02 00:04:24 nicks Exp $"; const char *Progname = NULL; char *cmdline, cwd[2000]; int debug=0; @@ -284,7 +283,7 @@ static void print_usage(void) { printf(" --help print out information on how to use this program\n"); printf(" --version print out version and exit\n"); printf("\n"); - printf("%s\n", vcid) ; + std::cout << getVersion() << std::endl; printf("\n"); } /* --------------------------------------------- */ @@ -295,7 +294,7 @@ static void print_help(void) { } /* --------------------------------------------- */ static void print_version(void) { - printf("%s\n", vcid) ; + std::cout << getVersion() << std::endl; exit(1) ; } /* --------------------------------------------- */ @@ -318,7 +317,7 @@ static void check_options(void) { /* --------------------------------------------- */ static void dump_options(FILE *fp) { fprintf(fp,"\n"); - fprintf(fp,"%s\n",vcid); + fprintf(fp,"%s\n", getVersion().c_str()); fprintf(fp,"cwd %s\n",cwd); fprintf(fp,"cmdline %s\n",cmdline); fprintf(fp,"sysname %s\n",uts.sysname); diff --git a/mri_surf2surf/mri_surf2surf.cpp b/mri_surf2surf/mri_surf2surf.cpp index d2ea2457f5d..e7b184e1080 100644 --- a/mri_surf2surf/mri_surf2surf.cpp +++ b/mri_surf2surf/mri_surf2surf.cpp @@ -375,7 +375,6 @@ MATRIX *MRIleftRightRevMatrix(MRI *mri); int main(int argc, char *argv[]) ; -static char vcid[] = "$Id: mri_surf2surf.c,v 1.103 2015/11/05 22:07:33 greve Exp $"; const char *Progname = NULL; char *srcsurfregfile = NULL; @@ -1871,7 +1870,7 @@ static void print_usage(void) printf(" --rms rms.dat : save rms of reg1-reg2 (primarily for testing)\n"); printf(" --rms-mask mask : only compute rms in mask (primarily for testing)\n"); printf("\n"); - printf("%s\n", vcid) ; + std::cout << getVersion() << std::endl; printf("\n"); } @@ -2157,7 +2156,7 @@ printf("\n"); static void dump_options(FILE *fp) { fprintf(fp,"\n"); - fprintf(fp,"%s\n",vcid); + fprintf(fp,"%s\n", getVersion().c_str()); fprintf(fp,"\n"); fprintf(fp,"setenv SUBJECTS_DIR %s\n",getenv("SUBJECTS_DIR")); fprintf(fp,"cd %s\n",cwd); @@ -2190,7 +2189,7 @@ static void dump_options(FILE *fp) /* --------------------------------------------- */ static void print_version(void) { - printf("%s\n", vcid) ; + std::cout << getVersion() << std::endl; exit(1) ; } /* --------------------------------------------- */ diff --git a/mri_surf2vol/mri_surf2vol.cpp b/mri_surf2vol/mri_surf2vol.cpp index 1fb3b13f107..dbd2703ef07 100644 --- a/mri_surf2vol/mri_surf2vol.cpp +++ b/mri_surf2vol/mri_surf2vol.cpp @@ -19,7 +19,6 @@ email: analysis-bugs@nmr.mgh.harvard.edu Date: 2/27/02 Purpose: converts values on a surface to a volume - $Id: mri_surf2vol.c,v 1.28 2014/12/08 19:49:02 greve Exp $ */ #include @@ -59,8 +58,6 @@ static int istringnmatch(char *str1, char *str2, int n); int main(int argc, char *argv[]) ; -static char vcid[] = - "$Id: mri_surf2vol.c,v 1.28 2014/12/08 19:49:02 greve Exp $"; const char *Progname = NULL; int debug = 0, gdiagno = -1; @@ -685,7 +682,7 @@ static void print_usage(void) { static void print_help(void) { print_usage() ; - printf("\n%s\n\n",vcid); + printf("\n%s\n\n",getVersion().c_str()); printf ( @@ -866,7 +863,7 @@ static void print_help(void) { /* --------------------------------------------- */ static void print_version(void) { - printf("%s\n", vcid) ; + std::cout << getVersion() << std::endl; exit(1) ; } diff --git a/mri_surfcluster/mri_surfcluster.cpp b/mri_surfcluster/mri_surfcluster.cpp index 878f9b8cdae..9f4dc164740 100644 --- a/mri_surfcluster/mri_surfcluster.cpp +++ b/mri_surfcluster/mri_surfcluster.cpp @@ -62,7 +62,6 @@ static int stringmatch(char *str1, char *str2); int main(int argc, char *argv[]) ; -static char vcid[] = "$Id: mri_surfcluster.c,v 1.60 2016/11/01 19:49:22 greve Exp $"; const char *Progname = NULL; char *subjectdir = NULL; @@ -521,8 +520,8 @@ int main(int argc, char **argv) { exit(1); } fprintf(fp,"# Cluster Growing Summary (mri_surfcluster)\n"); - fprintf(fp,"# %s\n",vcid); - fprintf(fp,"# %s\n",MRISurfSrcVersion()); + fprintf(fp,"# %s\n",getVersion().c_str()); + fprintf(fp,"# %s\n",getVersion().c_str()); fprintf(fp,"# CreationTime %s\n",VERcurTimeStamp()); fprintf(fp,"# cmdline %s\n",cmdline); fprintf(fp,"# cwd %s\n",cwd); @@ -1069,7 +1068,7 @@ static void print_usage(void) { static void print_help(void) { print_usage() ; - printf("\n%s\n\n",vcid); + printf("\n%s\n\n",getVersion().c_str()); printf( "This program assigns each vertex on a cortical surface to a cluster \n" @@ -1267,7 +1266,6 @@ static void print_help(void) { "summary file is shown below.\n" "\n" "Cluster Growing Summary (mri_surfcluster)\n" - "$Id: mri_surfcluster.c,v 1.60 2016/11/01 19:49:22 greve Exp $\n" "Input : minsig-0-lh.w\n" "Frame Number: 0\n" "Minimum Threshold: 5\n" @@ -1462,7 +1460,7 @@ static void check_options(void) { } /* --------------------------------------------- */ static void dump_options(FILE *fp) { - fprintf(fp,"version %s\n",vcid); + fprintf(fp,"version %s\n",getVersion().c_str()); fprintf(fp,"hemi = %s\n",hemi); fprintf(fp,"srcid = %s %s\n",srcid,srcfmt); fprintf(fp,"srcsubjid = %s\n",srcsubjid); @@ -1542,7 +1540,7 @@ static int stringmatch(char *str1, char *str2) { } /* --------------------------------------------- */ static void print_version(void) { - printf("%s\n", vcid) ; + std::cout << getVersion() << std::endl; exit(1) ; } /* --------------------------------------------- */ diff --git a/mri_synthesize/mri_synthesize.cpp b/mri_synthesize/mri_synthesize.cpp index 00d4b5b6c50..18f8ef6a006 100644 --- a/mri_synthesize/mri_synthesize.cpp +++ b/mri_synthesize/mri_synthesize.cpp @@ -31,7 +31,6 @@ #include "tags.h" #include "flash.h" -static char vcid[] = "$Id: mri_synthesize.c,v 1.19 2015/02/05 23:34:40 zkaufman Exp $"; int main(int argc, char *argv[]) ; @@ -397,7 +396,7 @@ print_help(void) { static void print_version(void) { - fprintf(stderr, "%s\n", vcid) ; + fprintf(stderr, "%s\n", getVersion().c_str()) ; exit(1) ; } diff --git a/mri_tessellate/mri_tessellate.cpp b/mri_tessellate/mri_tessellate.cpp index ff8749b0750..a604cc3099c 100644 --- a/mri_tessellate/mri_tessellate.cpp +++ b/mri_tessellate/mri_tessellate.cpp @@ -84,8 +84,6 @@ #include "diag.h" #include "mrisurf.h" -static char vcid[] = - "$Id: mri_tessellate.c,v 1.39 2016/07/20 21:05:04 zkaufman Exp $"; ///////////////////////////////////////////// #define MAXV 10000000 @@ -199,8 +197,8 @@ int main(int argc, char *argv[]) all_flag = 1 ; } - printf("%s\n",vcid); - printf(" %s\n",MRISurfSrcVersion()); + printf("%s\n",getVersion().c_str()); + printf(" %s\n",getVersion().c_str()); fflush(stdout); if(UseMRIStessellate){ diff --git a/mri_transform/mri_transform.cpp b/mri_transform/mri_transform.cpp index 6e6b8a022ce..d3ad8bf8d76 100644 --- a/mri_transform/mri_transform.cpp +++ b/mri_transform/mri_transform.cpp @@ -38,7 +38,6 @@ #include "fsinit.h" double MRIcomputeLinearTransformLabelDist(MRI *mri_src, MATRIX *mA, int label) ; -static char vcid[] = "$Id: mri_transform.c,v 1.18 2013/04/21 17:10:41 fischl Exp $"; //E/ For transformations: for case LINEAR_RAS_TO_RAS, we convert to //vox2vox with MRIrasXformToVoxelXform() in mri.c; for case @@ -599,7 +598,7 @@ print_help(void) { static void print_version(void) { - fprintf(stderr, "%s\n", vcid) ; + fprintf(stderr, "%s\n", getVersion().c_str()) ; exit(1) ; } diff --git a/mri_twoclass/mri_twoclass.cpp b/mri_twoclass/mri_twoclass.cpp index 8b9c33dbce4..e3ed6a9bedc 100644 --- a/mri_twoclass/mri_twoclass.cpp +++ b/mri_twoclass/mri_twoclass.cpp @@ -36,7 +36,6 @@ #include "mri_conform.h" #include "vlabels.h" -static char vcid[] = "$Id: mri_twoclass.c,v 1.16 2015/02/05 23:34:40 zkaufman Exp $"; /*-------------------------------- STRUCTURES ----------------------------*/ @@ -541,7 +540,7 @@ print_help(void) { static void print_version(void) { - printf( "%s\n", vcid) ; + printf( "%s\n", getVersion().c_str()) ; exit(1) ; } diff --git a/mri_vol2surf/mri_vol2surf.cpp b/mri_vol2surf/mri_vol2surf.cpp index c6ba15d6e7d..b69475b48ce 100644 --- a/mri_vol2surf/mri_vol2surf.cpp +++ b/mri_vol2surf/mri_vol2surf.cpp @@ -77,8 +77,6 @@ static void dump_options(FILE *fp); static int singledash(char *flag); int main(int argc, char *argv[]) ; -static char vcid[] = -"$Id: mri_vol2surf.c,v 1.68 2014/05/30 20:58:47 greve Exp $"; const char *Progname = NULL; @@ -1231,7 +1229,7 @@ static void print_usage(void) { printf("\n"); printf(" --interp interpolation method ( or trilinear)\n"); printf(" --vg-thresh thrshold : threshold for 'ERROR: LTAconcat(): LTAs 0 and 1 do not match'\n"); - printf("%s\n", vcid) ; + std::cout << getVersion() << std::endl; printf("\n"); //printf(" --src_type input volume format \n"); } @@ -1478,7 +1476,7 @@ static void print_help(void) { } /* --------------------------------------------- */ static void print_version(void) { - printf("%s\n", vcid) ; + std::cout << getVersion() << std::endl; exit(1) ; } /* --------------------------------------------- */ diff --git a/mri_vol2vol/mri_vol2vol.cpp b/mri_vol2vol/mri_vol2vol.cpp index ec1e3b8f766..4a4c41fe0fa 100644 --- a/mri_vol2vol/mri_vol2vol.cpp +++ b/mri_vol2vol/mri_vol2vol.cpp @@ -503,7 +503,6 @@ MATRIX *LoadRfsl(char *fname); int main(int argc, char *argv[]) ; -static char vcid[] = "$Id: mri_vol2vol.c,v 1.89 2016/06/22 22:33:40 fischl Exp $"; const char *Progname = NULL; int debug = 0, gdiagno = -1; @@ -1650,7 +1649,7 @@ printf("\n"); /* --------------------------------------------- */ static void print_help(void) { print_usage() ; - printf("\n%s\n\n",vcid); + printf("\n%s\n\n",getVersion().c_str()); printf("\n"); printf("Resamples a volume into another field-of-view using various types of\n"); printf("matrices (FreeSurfer, FSL, SPM, and MNI). This is meant to be used\n"); @@ -2157,7 +2156,7 @@ static void dump_options(FILE *fp) { } /* --------------------------------------------- */ static void print_version(void) { - printf("%s\n", vcid) ; + std::cout << getVersion() << std::endl; exit(1) ; } /* --------------------------------------------- */ diff --git a/mri_volcluster/mri_volcluster.cpp b/mri_volcluster/mri_volcluster.cpp index fb2e95f5f74..78e59f6bb99 100644 --- a/mri_volcluster/mri_volcluster.cpp +++ b/mri_volcluster/mri_volcluster.cpp @@ -85,8 +85,6 @@ double round(double); // why is this never defined?!? int main(int argc, char *argv[]) ; -static char vcid[] = - "$Id: mri_volcluster.c,v 1.49 2016/11/01 19:51:04 greve Exp $"; const char *Progname = NULL; static char tmpstr[2000]; @@ -527,7 +525,7 @@ int main(int argc, char **argv) { /* Dump summary to file or stdout */ fprintf(fpsum,"# Cluster Growing Summary (mri_volcluster)\n"); - fprintf(fpsum,"# %s\n",vcid); + fprintf(fpsum,"# %s\n",getVersion().c_str()); fprintf(fpsum,"# cwd %s\n",cwd); fprintf(fpsum,"# cmdline %s\n",cmdline); if(SUBJECTS_DIR) fprintf(fpsum,"# SUBJECTS_DIR %s\n",SUBJECTS_DIR); @@ -1339,7 +1337,7 @@ static void print_help(void) { } /* --------------------------------------------- */ static void print_version(void) { - fprintf(stderr, "%s\n", vcid) ; + fprintf(stderr, "%s\n", getVersion().c_str()) ; exit(1) ; } /* --------------------------------------------- */ diff --git a/mri_voldiff/mri_voldiff.cpp b/mri_voldiff/mri_voldiff.cpp index 4abad5297a3..e6221a4a371 100644 --- a/mri_voldiff/mri_voldiff.cpp +++ b/mri_voldiff/mri_voldiff.cpp @@ -58,7 +58,6 @@ static void print_version(void) ; static void dump_options(FILE *fp); int main(int argc, char *argv[]) ; -static char vcid[] = "$Id: mri_voldiff.c,v 1.6 2011/03/02 00:04:25 nicks Exp $"; const char *Progname = NULL; char *vol1File = NULL, *vol2File=NULL; @@ -101,7 +100,7 @@ int main(int argc, char **argv) { if (checkoptsonly) return(0); printf("\n"); - printf("%s\n",vcid); + printf("%s\n",getVersion().c_str()); printf("cwd %s\n",cwd); printf("cmdline %s\n",cmdline); printf("sysname %s\n",uts.sysname); @@ -252,7 +251,7 @@ static void print_usage(void) { printf(" --help print out information on how to use this program\n"); printf(" --version print out version and exit\n"); printf("\n"); - printf("%s\n", vcid) ; + std::cout << getVersion() << std::endl; printf("\n"); } /* --------------------------------------------- */ @@ -280,7 +279,7 @@ static void print_help(void) { } /* --------------------------------------------- */ static void print_version(void) { - printf("%s\n", vcid) ; + std::cout << getVersion() << std::endl; exit(1) ; } /* --------------------------------------------- */ diff --git a/mri_volsynth/mri_volsynth.cpp b/mri_volsynth/mri_volsynth.cpp index 90b8c0311f2..77ea26f8cf0 100644 --- a/mri_volsynth/mri_volsynth.cpp +++ b/mri_volsynth/mri_volsynth.cpp @@ -25,6 +25,7 @@ #include #include +#include "version.h" #include "error.h" #include "diag.h" #include "proto.h" @@ -59,8 +60,6 @@ static int isflag(char *flag); int main(int argc, char *argv[]) ; -static char vcid[] = -"$Id: mri_volsynth.c,v 1.56 2017/02/16 19:50:57 greve Exp $"; const char *Progname = NULL; @@ -876,7 +875,7 @@ static void print_help(void) { } /* --------------------------------------------- */ static void print_version(void) { - printf("%s\n", vcid) ; + std::cout << getVersion() << std::endl; exit(1) ; } /* --------------------------------------------- */ diff --git a/mri_warp_convert/mri_warp_convert.cpp b/mri_warp_convert/mri_warp_convert.cpp index aee0c278ed7..88d3db94201 100644 --- a/mri_warp_convert/mri_warp_convert.cpp +++ b/mri_warp_convert/mri_warp_convert.cpp @@ -51,8 +51,6 @@ static struct Parameters P = static void printUsage(void); static bool parseCommandLine(int argc, char *argv[], Parameters & P); -static char vcid[] = - "$Id: mri_warp_convert.cpp,v 1.1 2016/06/16 19:57:06 ohinds Exp $"; const char *Progname = NULL; GCAM* readM3Z(const string& warp_file) @@ -414,7 +412,7 @@ void write_voxel(const string& fname, GCAM* gcam) int main(int argc, char *argv[]) { - cout << vcid << endl << endl; + cout << getVersion() << endl << endl; // Default initialization int nargs = handleVersionOption(argc, argv, "mri_warp_convert"); diff --git a/mri_wbc/mri_wbc.cpp b/mri_wbc/mri_wbc.cpp index de7f206ad25..36c67479ffe 100644 --- a/mri_wbc/mri_wbc.cpp +++ b/mri_wbc/mri_wbc.cpp @@ -106,7 +106,6 @@ static void print_version(void) ; static void dump_options(FILE *fp); int main(int argc, char *argv[]) ; -static char vcid[] = "$Id: mri_wbc.c,v 1.8 2015/07/22 21:51:35 zkaufman Exp $"; const char *Progname = NULL; char *cmdline, cwd[2000]; int debug=0; @@ -539,7 +538,7 @@ static void print_usage(void) { printf(" --help print out information on how to use this program\n"); printf(" --version print out version and exit\n"); printf("\n"); - printf("%s\n", vcid) ; + std::cout << getVersion() << std::endl; printf("\n"); } /* -------------------------------------------------------- */ @@ -550,7 +549,7 @@ static void print_help(void) { } /* -------------------------------------------------------- */ static void print_version(void) { - printf("%s\n", vcid) ; + std::cout << getVersion() << std::endl; exit(1) ; } /* -------------------------------------------------------- */ @@ -618,7 +617,7 @@ static void check_options(void) { /* -------------------------------------------------------- */ static void dump_options(FILE *fp) { fprintf(fp,"\n"); - fprintf(fp,"%s\n",vcid); + fprintf(fp,"%s\n", getVersion().c_str()); fprintf(fp,"cwd %s\n",cwd); fprintf(fp,"cmdline %s\n",cmdline); fprintf(fp,"sysname %s\n",uts.sysname); diff --git a/mri_xvolavg/mri_xvolavg.cpp b/mri_xvolavg/mri_xvolavg.cpp index 96c11326d4a..3cd1e9b0b4a 100644 --- a/mri_xvolavg/mri_xvolavg.cpp +++ b/mri_xvolavg/mri_xvolavg.cpp @@ -15,7 +15,6 @@ /*---------------------------------------------------------- Name: mri_xvolavg - $Id: mri_xvolavg.c,v 1.6 2011/03/02 00:04:26 nicks Exp $ Author: Douglas Greve Purpose: averages multiple volumes together into a single volume. The volumes can be 4D. @@ -43,7 +42,6 @@ static int singledash(char *flag); int main(int argc, char *argv[]) ; -static char vcid[] = "$Id: mri_xvolavg.c,v 1.6 2011/03/02 00:04:26 nicks Exp $"; const char *Progname = NULL; char *defaulttypestring; @@ -264,7 +262,7 @@ static void print_usage(void) { printf(" --help print out information on how to use this program\n"); printf(" --version print out version and exit\n"); printf("\n"); - printf("%s\n", vcid) ; + std::cout << getVersion() << std::endl; printf("\n"); } /* --------------------------------------------- */ @@ -301,7 +299,7 @@ static void print_help(void) { } /* --------------------------------------------- */ static void print_version(void) { - printf("%s\n", vcid) ; + std::cout << getVersion() << std::endl; exit(-1) ; } /* --------------------------------------------- */ diff --git a/mri_z2p/mri_z2p.cpp b/mri_z2p/mri_z2p.cpp index 7ea06a4dd0b..4befffe2631 100644 --- a/mri_z2p/mri_z2p.cpp +++ b/mri_z2p/mri_z2p.cpp @@ -64,7 +64,6 @@ static void print_version(void) ; static void dump_options(FILE *fp); int main(int argc, char *argv[]) ; -static char vcid[] = "$Id: mri_z2p.c,v 1.12 2011/03/02 00:04:26 nicks Exp $"; const char *Progname = NULL; char *cmdline, cwd[2000]; int debug=0; @@ -316,7 +315,7 @@ static void print_usage(void) { printf(" --help print out information on how to use this program\n"); printf(" --version print out version and exit\n"); printf("\n"); - printf("%s\n", vcid) ; + std::cout << getVersion() << std::endl; printf("\n"); } /* -- Doxygen markup starts on the line below (this line not needed for Doxygen) -- */ @@ -337,7 +336,7 @@ static void print_help(void) { */ /* ------ Doxygen markup ends on the line above (this line not needed for Doxygen) -- */ static void print_version(void) { - printf("%s\n", vcid) ; + std::cout << getVersion() << std::endl; exit(1) ; } /* -- Doxygen markup starts on the line below (this line not needed for Doxygen) -- */ @@ -370,7 +369,7 @@ static void check_options(void) { /* ------ Doxygen markup ends on the line above (this line not needed for Doxygen) -- */ static void dump_options(FILE *fp) { fprintf(fp,"\n"); - fprintf(fp,"%s\n",vcid); + fprintf(fp,"%s\n", getVersion().c_str()); fprintf(fp,"cwd %s\n",cwd); fprintf(fp,"cmdline %s\n",cmdline); fprintf(fp,"sysname %s\n",uts.sysname); diff --git a/mris2rgb/mris2rgb.cpp b/mris2rgb/mris2rgb.cpp index a566a91d9a8..e372f6f967e 100644 --- a/mris2rgb/mris2rgb.cpp +++ b/mris2rgb/mris2rgb.cpp @@ -51,7 +51,6 @@ #include "macros.h" #include "version.h" -static char vcid[] = "$Id: mris2rgb.c,v 1.38 2011/03/02 00:04:26 nicks Exp $"; /*-------------------------------- CONSTANTS -----------------------------*/ @@ -996,7 +995,7 @@ print_help(void) { static void print_version(void) { - fprintf(stderr, "%s\n", vcid) ; + fprintf(stderr, "%s\n", getVersion().c_str()) ; exit(1) ; } diff --git a/mris2rgb/oglutil.cpp b/mris2rgb/oglutil.cpp index 1f8300f9971..b59d1773acc 100644 --- a/mris2rgb/oglutil.cpp +++ b/mris2rgb/oglutil.cpp @@ -41,7 +41,6 @@ #include "oglutil.h" #if 0 -static char vcid[] = "$Id: oglutil.c,v 1.30 2011/03/02 00:04:41 nicks Exp $"; #endif /*-------------------------------- CONSTANTS -----------------------------*/ diff --git a/mris_BA_segment/mris_BA_segment.cpp b/mris_BA_segment/mris_BA_segment.cpp index f2eb5be1bf5..0510811a1a1 100644 --- a/mris_BA_segment/mris_BA_segment.cpp +++ b/mris_BA_segment/mris_BA_segment.cpp @@ -36,7 +36,6 @@ #include "macros.h" #include "version.h" -static char vcid[] = "$Id: mris_BA_segment.c,v 1.4 2015/02/05 23:34:40 zkaufman Exp $"; int main(int argc, char *argv[]) ; @@ -198,7 +197,7 @@ print_help(void) { static void print_version(void) { - fprintf(stderr, "%s\n", vcid) ; + fprintf(stderr, "%s\n", getVersion().c_str()) ; exit(1) ; } diff --git a/mris_anatomical_stats/mris_anatomical_stats.cpp b/mris_anatomical_stats/mris_anatomical_stats.cpp index e390c4bda78..91830b25992 100644 --- a/mris_anatomical_stats/mris_anatomical_stats.cpp +++ b/mris_anatomical_stats/mris_anatomical_stats.cpp @@ -37,8 +37,6 @@ #include "cma.h" #include "mrisutils.h" -static char vcid[] = - "$Id: mris_anatomical_stats.c,v 1.79 2016/03/14 15:15:34 greve Exp $"; int main(int argc, char *argv[]) ; static int get_option(int argc, char *argv[]) ; @@ -501,8 +499,8 @@ main(int argc, char *argv[]) fprintf(fp,"# \n"); fprintf(fp,"# CreationTime %s\n",VERcurTimeStamp()); fprintf(fp,"# generating_program %s\n",Progname); - fprintf(fp,"# cvs_version %s\n",vcid); - fprintf(fp,"# mrisurf.c-cvs_version %s\n",MRISurfSrcVersion()); + fprintf(fp,"# cvs_version %s\n",getVersion().c_str()); + fprintf(fp,"# mrisurf.c-cvs_version %s\n",getVersion().c_str()); fprintf(fp,"# cmdline %s\n",cmdline); fprintf(fp,"# sysname %s\n",uts.sysname); fprintf(fp,"# hostname %s\n",uts.nodename); @@ -1260,7 +1258,7 @@ print_help(void) static void print_version(void) { - fprintf(stderr, "%s\n", vcid) ; + fprintf(stderr, "%s\n", getVersion().c_str()) ; exit(1) ; } diff --git a/mris_apply_reg/mris_apply_reg.cpp b/mris_apply_reg/mris_apply_reg.cpp index 37c113568d6..87c93aff463 100644 --- a/mris_apply_reg/mris_apply_reg.cpp +++ b/mris_apply_reg/mris_apply_reg.cpp @@ -27,7 +27,6 @@ */ -// $Id: mris_apply_reg.c,v 1.9 2016/12/06 19:40:48 greve Exp $ /* BEGINHELP @@ -73,7 +72,6 @@ void usage_message(FILE *stream); void usage(FILE *stream); int main(int argc, char *argv[]) ; -static char vcid[] = "$Id: mris_apply_reg.c,v 1.9 2016/12/06 19:40:48 greve Exp $"; const char *Progname = NULL; static int center_surface=0 ; char *cmdline, cwd[2000]; @@ -449,7 +447,7 @@ static void print_usage(void) { printf(" --help print out information on how to use this program\n"); printf(" --version print out version and exit\n"); printf("\n"); - printf("%s\n", vcid) ; + std::cout << getVersion() << std::endl; printf("\n"); } /*--------------------------------------------------------------*/ @@ -460,7 +458,7 @@ static void print_help(void) { } /*--------------------------------------------------------------*/ static void print_version(void) { - printf("%s\n", vcid) ; + std::cout << getVersion() << std::endl; exit(1) ; } /*--------------------------------------------------------------*/ @@ -509,7 +507,7 @@ static void check_options(void) { /*--------------------------------------------------------------*/ static void dump_options(FILE *fp) { fprintf(fp,"\n"); - fprintf(fp,"%s\n",vcid); + fprintf(fp,"%s\n", getVersion().c_str()); fprintf(fp,"cwd %s\n",cwd); fprintf(fp,"cmdline %s\n",cmdline); fprintf(fp,"sysname %s\n",uts.sysname); diff --git a/mris_average_curvature/mris_average_curvature.cpp b/mris_average_curvature/mris_average_curvature.cpp index 3dd03e71a6d..157776a06a2 100644 --- a/mris_average_curvature/mris_average_curvature.cpp +++ b/mris_average_curvature/mris_average_curvature.cpp @@ -36,7 +36,6 @@ #include "macros.h" #include "version.h" -static char vcid[] = "$Id: mris_average_curvature.c,v 1.17 2011/03/02 00:04:26 nicks Exp $"; int main(int argc, char *argv[]) ; @@ -330,7 +329,7 @@ print_help(void) { static void print_version(void) { - fprintf(stderr, "%s\n", vcid) ; + fprintf(stderr, "%s\n", getVersion().c_str()) ; exit(1) ; } diff --git a/mris_ca_label/mris_ca_label.cpp b/mris_ca_label/mris_ca_label.cpp index 6f1da23e7ea..b2ecc87005a 100644 --- a/mris_ca_label/mris_ca_label.cpp +++ b/mris_ca_label/mris_ca_label.cpp @@ -46,8 +46,6 @@ #include "version.h" #include "cma.h" -static char vcid[] = - "$Id: mris_ca_label.c,v 1.37 2014/02/04 17:46:42 fischl Exp $"; int main(int argc, char *argv[]) ; static int get_option(int argc, char *argv[]) ; @@ -140,8 +138,8 @@ main(int argc, char *argv[]) canon_surf_name = argv[3] ; out_fname = argv[5] ; - printf("%s\n",vcid); - printf(" %s\n",MRISurfSrcVersion()); + printf("%s\n",getVersion().c_str()); + printf(" %s\n",getVersion().c_str()); fflush(stdout); printf("reading atlas from %s...\n", argv[4]) ; @@ -579,7 +577,7 @@ print_help(void) static void print_version(void) { - fprintf(stderr, "%s\n", vcid) ; + fprintf(stderr, "%s\n", getVersion().c_str()) ; exit(1) ; } diff --git a/mris_ca_train/mris_ca_train.cpp b/mris_ca_train/mris_ca_train.cpp index 2cefb8814b6..31818ac47a6 100644 --- a/mris_ca_train/mris_ca_train.cpp +++ b/mris_ca_train/mris_ca_train.cpp @@ -54,8 +54,6 @@ #include "version.h" #include "label.h" -static char vcid[] = - "$Id: mris_ca_train.c,v 1.17 2011/03/02 00:04:27 nicks Exp $"; #define MAX_LABELS 1000 #if 0 @@ -561,7 +559,7 @@ print_help(void) static void print_version(void) { - fprintf(stderr, "%s\n", vcid) ; + fprintf(stderr, "%s\n", getVersion().c_str()) ; exit(1) ; } diff --git a/mris_calc/mris_calc.cpp b/mris_calc/mris_calc.cpp index ce008bedf87..aefe6713c09 100644 --- a/mris_calc/mris_calc.cpp +++ b/mris_calc/mris_calc.cpp @@ -59,8 +59,6 @@ #define CE( x ) fprintf(stderr, ( x )) #define START_i 3 -static const char vcid[] = - "$Id: mris_calc.c,v 1.55 2016/09/27 18:50:16 greve Exp $"; double fn_sign(float af_A); // ---------------------------------------------------------------------------- @@ -1619,7 +1617,7 @@ options_parse(int argc, char *argv[]) static void version_print(void) { - fprintf(stderr, "%s\n", vcid) ; + fprintf(stderr, "%s\n", getVersion().c_str()) ; exit(1) ; } diff --git a/mris_compute_acorr/mris_compute_acorr.cpp b/mris_compute_acorr/mris_compute_acorr.cpp index 4a5d316e169..37b31a8a601 100644 --- a/mris_compute_acorr/mris_compute_acorr.cpp +++ b/mris_compute_acorr/mris_compute_acorr.cpp @@ -31,7 +31,6 @@ #include "sig.h" #include "version.h" -static char vcid[] = "$Id: mris_compute_acorr.c,v 1.7 2011/03/02 00:04:30 nicks Exp $"; /*-------------------------------- CONSTANTS -----------------------------*/ @@ -586,7 +585,7 @@ print_help(void) { static void print_version(void) { - fprintf(stderr, "%s\n", vcid) ; + fprintf(stderr, "%s\n", getVersion().c_str()) ; exit(1) ; } diff --git a/mris_compute_lgi/CMakeLists.txt b/mris_compute_lgi/CMakeLists.txt index df9d367eb0c..f1ac301b214 100644 --- a/mris_compute_lgi/CMakeLists.txt +++ b/mris_compute_lgi/CMakeLists.txt @@ -1,6 +1,6 @@ project(mris_compute_lgi) -install(PROGRAMS mris_compute_lgi DESTINATION bin) +install_configured(mris_compute_lgi DESTINATION bin) install(FILES ComputeGeodesicProjection.m diff --git a/mris_compute_lgi/mris_compute_lgi b/mris_compute_lgi/mris_compute_lgi index 74844bc4c10..dd9c10e084c 100755 --- a/mris_compute_lgi/mris_compute_lgi +++ b/mris_compute_lgi/mris_compute_lgi @@ -26,7 +26,7 @@ # Bug reports: analysis-bugs@nmr.mgh.harvard.edu # -set VERSION = '$Id: mris_compute_lgi,v 1.23 2009/01/26 22:14:05 nicks Exp $' +set VERSION = 'mris_compute_lgi @FS_VERSION@'; set PrintHelp = 0; set RunIt = 1; set cmdargs = ($argv); diff --git a/mris_compute_parc_overlap/mris_compute_parc_overlap.cpp b/mris_compute_parc_overlap/mris_compute_parc_overlap.cpp index fad9944d77f..9943b119028 100644 --- a/mris_compute_parc_overlap/mris_compute_parc_overlap.cpp +++ b/mris_compute_parc_overlap/mris_compute_parc_overlap.cpp @@ -111,8 +111,6 @@ static int singledash(char *flag); static void padWhite(char* str, int maxLen); const char *Progname; -static char vcid[] = - "$Id: mris_compute_parc_overlap.c,v 1.19 2016/03/28 17:20:11 fischl Exp $"; static char *FREESURFER_HOME = NULL; static char *SUBJECTS_DIR = NULL; static char *subject = NULL; @@ -1300,7 +1298,7 @@ static void usage(int exit_val) /* --------------------------------------------- */ static void print_version(void) { - printf("%s\n", vcid) ; + std::cout << getVersion() << std::endl; exit(1) ; } diff --git a/mris_compute_volume_fractions/mris_compute_volume_fractions.cpp b/mris_compute_volume_fractions/mris_compute_volume_fractions.cpp index de9dfb68a79..7fee65050d5 100644 --- a/mris_compute_volume_fractions/mris_compute_volume_fractions.cpp +++ b/mris_compute_volume_fractions/mris_compute_volume_fractions.cpp @@ -43,7 +43,6 @@ static void print_help(void) ; static void print_version(void) ; static void dump_options(FILE *fp); -static char vcid[] = "$Id: mris_compute_volume_fractions.c,v 1.4 2013/05/17 15:19:06 enderk Exp $"; const char *Progname = NULL; char *cmdline, cwd[2000]; int debug=0; @@ -176,7 +175,7 @@ static void print_usage(void) { printf(" --help print out information on how to use this program\n"); printf(" --version print out version and exit\n"); printf("\n"); - printf("%s\n", vcid) ; + std::cout << getVersion() << std::endl; printf("\n"); } /* -- Doxygen markup starts on the line below (this line not needed for Doxygen) -- */ @@ -197,7 +196,7 @@ static void print_help(void) { */ /* ------ Doxygen markup ends on the line above (this line not needed for Doxygen) -- */ static void print_version(void) { - printf("%s\n", vcid) ; + std::cout << getVersion() << std::endl; exit(1) ; } /* -- Doxygen markup starts on the line below (this line not needed for Doxygen) -- */ @@ -225,7 +224,7 @@ static void check_options(void) { /* ------ Doxygen markup ends on the line above (this line not needed for Doxygen) -- */ static void dump_options(FILE *fp) { fprintf(fp,"\n"); - fprintf(fp,"%s\n",vcid); + fprintf(fp,"%s\n", getVersion().c_str()); fprintf(fp,"Working Directory: %s\n",cwd); fprintf(fp,"cmdline: %s\n",cmdline); /* diff --git a/mris_congeal/mris_congeal.cpp b/mris_congeal/mris_congeal.cpp index 125e9ac56a9..82ae157dc8d 100644 --- a/mris_congeal/mris_congeal.cpp +++ b/mris_congeal/mris_congeal.cpp @@ -38,8 +38,6 @@ #include "version.h" #include "gcsa.h" -static char vcid[] = -"$Id: mris_congeal.c,v 1.4 2011/03/02 00:04:30 nicks Exp $"; int main(int argc, char *argv[]) ; @@ -212,8 +210,8 @@ main(int argc, char *argv[]) parms.which_norm = which_norm ; if (argc < 4) usage_exit() ; - printf("%s\n", vcid) ; - printf(" %s\n",MRISurfSrcVersion()); + std::cout << getVersion() << std::endl; + printf(" %s\n",getVersion().c_str()); fflush(stdout); hemi = argv[1] ; @@ -848,7 +846,7 @@ print_help(void) static void print_version(void) { - fprintf(stderr, "%s\n", vcid) ; + fprintf(stderr, "%s\n", getVersion().c_str()) ; exit(1) ; } diff --git a/mris_convert/mris_convert.cpp b/mris_convert/mris_convert.cpp index eac1a497bcf..0e4e8945639 100644 --- a/mris_convert/mris_convert.cpp +++ b/mris_convert/mris_convert.cpp @@ -44,8 +44,6 @@ #include "compilerdefs.h" //------------------------------------------------------------------------ -static char vcid[] = - "$Id$"; /*-------------------------------- CONSTANTS -----------------------------*/ // this mini colortable is used when .label file gets converted to gifti @@ -970,7 +968,7 @@ print_help(void) static void print_version(void) { - printf( "%s\n", vcid) ; + printf( "%s\n", getVersion().c_str()) ; exit(1) ; } diff --git a/mris_curvature/mris_curvature.cpp b/mris_curvature/mris_curvature.cpp index e0d34cae0ed..c5a380a8a14 100644 --- a/mris_curvature/mris_curvature.cpp +++ b/mris_curvature/mris_curvature.cpp @@ -35,8 +35,6 @@ #include "macros.h" #include "version.h" -static char vcid[] = - "$Id: mris_curvature.c,v 1.31 2011/03/02 00:04:30 nicks Exp $"; int main(int argc, char *argv[]) ; @@ -549,7 +547,7 @@ print_help(void) static void print_version(void) { - fprintf(stderr, "%s\n", vcid) ; + fprintf(stderr, "%s\n", getVersion().c_str()) ; exit(1) ; } diff --git a/mris_curvature_stats/mris_curvature_stats.cpp b/mris_curvature_stats/mris_curvature_stats.cpp index 623712ed69e..ca23abdeaa2 100644 --- a/mris_curvature_stats/mris_curvature_stats.cpp +++ b/mris_curvature_stats/mris_curvature_stats.cpp @@ -114,8 +114,6 @@ typedef struct _minMax { short b_maxViolation; // If true, max value != explicit max } s_MINMAX; -static char vcid[] = - "$Id: mris_curvature_stats.c,v 1.65 2015/06/04 20:50:51 nicks Exp $"; int main(int argc, char *argv[]) ; @@ -3284,7 +3282,7 @@ print_help(void) static void print_version(void) { - fprintf(stderr, "%s\n", vcid) ; + fprintf(stderr, "%s\n", getVersion().c_str()) ; exit(1) ; } diff --git a/mris_decimate/main.cpp b/mris_decimate/main.cpp index 0fa29c596dd..a52dd535264 100644 --- a/mris_decimate/main.cpp +++ b/mris_decimate/main.cpp @@ -37,7 +37,6 @@ /// on the command-line. /// -// $Id: main.cpp,v 1.3 2011/03/02 00:04:30 nicks Exp $ #include @@ -77,7 +76,6 @@ int main(int argc, char *argv[]) ; /// // Global Variables // -static char vcid[] = "$Id: main.cpp,v 1.3 2011/03/02 00:04:30 nicks Exp $"; const char *Progname = NULL; char *cmdline; int debug=0; @@ -308,7 +306,7 @@ static void print_help(void) /// static void print_version(void) { - printf("%s\n", vcid) ; + std::cout << getVersion() << std::endl; exit(1) ; } @@ -321,7 +319,7 @@ static void print_version(void) static void dump_options(FILE *fp) { fprintf(fp,"\n"); - fprintf(fp,"%s\n",vcid); + fprintf(fp,"%s\n", getVersion().c_str()); fprintf(fp,"cmdline %s\n",cmdline); fprintf(fp,"sysname %s\n",uts.sysname); fprintf(fp,"hostname %s\n",uts.nodename); diff --git a/mris_decimate/mris_decimate.cpp b/mris_decimate/mris_decimate.cpp index b87a4ddaddc..920af078506 100644 --- a/mris_decimate/mris_decimate.cpp +++ b/mris_decimate/mris_decimate.cpp @@ -42,7 +42,6 @@ /// -// $Id: mris_decimate.cpp,v 1.6 2011/03/02 00:04:30 nicks Exp $ #include #include diff --git a/mris_diff/mris_diff.cpp b/mris_diff/mris_diff.cpp index 720e944bf92..85f4496b860 100644 --- a/mris_diff/mris_diff.cpp +++ b/mris_diff/mris_diff.cpp @@ -113,7 +113,6 @@ static void print_version(void) ; static void dump_options(FILE *fp); int main(int argc, char *argv[]) ; -static char vcid[] = "$Id: mris_diff.c,v 1.20 2014/03/21 23:57:48 greve Exp $"; const char *Progname = NULL; char *cmdline, cwd[2000]; static int debug=0; @@ -1172,7 +1171,7 @@ static void print_usage(void) { printf(" --help print out information on how to use program\n"); printf(" --version print out version and exit\n"); printf("\n"); - printf("%s\n", vcid) ; + std::cout << getVersion() << std::endl; printf("\n"); } /* --------------------------------------------- */ @@ -1183,7 +1182,7 @@ static void print_help(void) { } /* --------------------------------------------- */ static void print_version(void) { - printf("%s\n", vcid) ; + std::cout << getVersion() << std::endl; exit(1) ; } /* --------------------------------------------- */ @@ -1237,7 +1236,7 @@ static void check_options(void) { /* --------------------------------------------- */ static void dump_options(FILE *fp) { fprintf(fp,"\n"); - fprintf(fp,"%s\n",vcid); + fprintf(fp,"%s\n", getVersion().c_str()); fprintf(fp,"%s\n",Progname); fprintf(fp,"FREESURFER_HOME %s\n",getenv("FREESURFER_HOME")); fprintf(fp,"SUBJECTS_DIR %s\n",getenv("SUBJECTS_DIR")); diff --git a/mris_distance_map/mris_distance_map.cpp b/mris_distance_map/mris_distance_map.cpp index 0818f8ae627..4e6a9ba9513 100644 --- a/mris_distance_map/mris_distance_map.cpp +++ b/mris_distance_map/mris_distance_map.cpp @@ -39,8 +39,6 @@ //------------------------------------------------------------------------ -static char vcid[] = - "$Id: mris_distance_map.c,v 1.2 2011/03/02 00:04:31 nicks Exp $"; /*-------------------------------- CONSTANTS -----------------------------*/ @@ -166,7 +164,7 @@ print_help(void) { static void print_version(void) { - printf( "%s\n", vcid) ; + printf( "%s\n", getVersion().c_str()) ; exit(1) ; } MRI * diff --git a/mris_distance_to_label/mris_distance_to_label.cpp b/mris_distance_to_label/mris_distance_to_label.cpp index 9260fbb4699..7291465a206 100644 --- a/mris_distance_to_label/mris_distance_to_label.cpp +++ b/mris_distance_to_label/mris_distance_to_label.cpp @@ -25,7 +25,6 @@ #include #include #include - #include "macros.h" #include "error.h" @@ -36,12 +35,8 @@ #include "macros.h" #include "version.h" #include "timer.h" - - #include "fastmarching.h" -static const char vcid[] = - "$Id: mris_distance_to_label.cpp,v 1.8 2011/03/02 00:04:31 nicks Exp $"; static char *aseg_fname=NULL; @@ -427,7 +422,7 @@ print_help(void) { static void print_version(void) { - fprintf(stderr, "%s\n", vcid) ; + fprintf(stderr, "%s\n", getVersion().c_str()) ; exit(1) ; } diff --git a/mris_distance_transform/mris_distance_transform.cpp b/mris_distance_transform/mris_distance_transform.cpp index a278a3fe5db..884cddf9b70 100644 --- a/mris_distance_transform/mris_distance_transform.cpp +++ b/mris_distance_transform/mris_distance_transform.cpp @@ -37,8 +37,6 @@ #include "annotation.h" #include "MARS_DT_Boundary.h" -static char vcid[] = -"$Id: mris_distance_transform.c,v 1.5 2013/04/12 20:59:17 fischl Exp $"; int main(int argc, char *argv[]) ; static int get_option(int argc, char *argv[]) ; @@ -357,7 +355,7 @@ print_help(void) static void print_version(void) { - fprintf(stderr, "%s\n", vcid) ; + fprintf(stderr, "%s\n", getVersion().c_str()) ; exit(1) ; } diff --git a/mris_divide_parcellation/mris_divide_parcellation.cpp b/mris_divide_parcellation/mris_divide_parcellation.cpp index 0bac8b9718d..ec90ba73a58 100644 --- a/mris_divide_parcellation/mris_divide_parcellation.cpp +++ b/mris_divide_parcellation/mris_divide_parcellation.cpp @@ -100,7 +100,6 @@ ENDHELP ---------------------------------------------------------------- */ -// $Id: mris_divide_parcellation.c,v 1.12 2012/10/24 19:50:06 maritza Exp $ @@ -130,7 +129,6 @@ static void print_help(void) ; static void print_version(void) ; int main(int argc, char *argv[]) ; -static char vcid[] = "$Id: mris_divide_parcellation.c,v 1.12 2012/10/24 19:50:06 maritza Exp $"; const char *Progname = NULL; static char sdir[STRLEN] = "" ; @@ -361,7 +359,7 @@ printf("\n"); static void print_version(void) { - fprintf(stderr, "%s\n", vcid) ; + fprintf(stderr, "%s\n", getVersion().c_str()) ; exit(1) ; } diff --git a/mris_entropy/mris_entropy.cpp b/mris_entropy/mris_entropy.cpp index d8812a8eaff..e1927757f31 100644 --- a/mris_entropy/mris_entropy.cpp +++ b/mris_entropy/mris_entropy.cpp @@ -29,7 +29,6 @@ #include "macros.h" #include "version.h" -static char vcid[] = "$Id: mris_entropy.c,v 1.7 2011/03/02 00:04:31 nicks Exp $"; int main(int argc, char *argv[]) ; @@ -210,7 +209,7 @@ print_help(void) { static void print_version(void) { - fprintf(stderr, "%s\n", vcid) ; + fprintf(stderr, "%s\n", getVersion().c_str()) ; exit(1) ; } diff --git a/mris_errors/mris_errors.cpp b/mris_errors/mris_errors.cpp index 2970c9c9bc7..92b4ed62e00 100644 --- a/mris_errors/mris_errors.cpp +++ b/mris_errors/mris_errors.cpp @@ -29,7 +29,7 @@ #include "utils.h" #include "version.h" -static char vcid[]="$Id: mris_errors.c,v 1.11 2011/03/02 00:04:31 nicks Exp $"; + int main(int argc, char *argv[]) ; @@ -218,7 +218,7 @@ print_help(void) { static void print_version(void) { - fprintf(stderr, "%s\n", vcid) ; + fprintf(stderr, "%s\n", getVersion().c_str()) ; exit(1) ; } diff --git a/mris_euler_number/mris_euler_number.cpp b/mris_euler_number/mris_euler_number.cpp index cfd66633067..e480bf04bca 100644 --- a/mris_euler_number/mris_euler_number.cpp +++ b/mris_euler_number/mris_euler_number.cpp @@ -33,8 +33,6 @@ #include "macros.h" #include "version.h" -static char vcid[] = - "$Id: mris_euler_number.c,v 1.10 2013/01/14 22:39:14 greve Exp $"; int main(int argc, char *argv[]) ; @@ -218,7 +216,7 @@ print_help(void) static void print_version(void) { - fprintf(stderr, "%s\n", vcid) ; + fprintf(stderr, "%s\n", getVersion().c_str()) ; exit(1) ; } diff --git a/mris_fill/mris_fill.cpp b/mris_fill/mris_fill.cpp index f634d1393ba..7d86d60cc0b 100644 --- a/mris_fill/mris_fill.cpp +++ b/mris_fill/mris_fill.cpp @@ -36,7 +36,6 @@ #include "macros.h" #include "version.h" -static char vcid[] = "$Id: mris_fill.c,v 1.6 2011/03/02 00:04:32 nicks Exp $"; int main(int argc, char *argv[]) ; @@ -213,7 +212,7 @@ print_help(void) static void print_version(void) { - fprintf(stderr, "%s\n", vcid) ; + fprintf(stderr, "%s\n", getVersion().c_str()) ; exit(1) ; } diff --git a/mris_find_flat_regions/mris_find_flat_regions.cpp b/mris_find_flat_regions/mris_find_flat_regions.cpp index 0ec0f073e48..d73e8b1a985 100644 --- a/mris_find_flat_regions/mris_find_flat_regions.cpp +++ b/mris_find_flat_regions/mris_find_flat_regions.cpp @@ -31,7 +31,6 @@ #include "label.h" #include "mri_identify.h" -static char vcid[] = "$Id: mris_find_flat_regions.c,v 1.4 2011/03/02 00:04:32 nicks Exp $"; int main(int argc, char *argv[]) ; @@ -158,7 +157,7 @@ print_help(void) { static void print_version(void) { - fprintf(stderr, "%s\n", vcid) ; + fprintf(stderr, "%s\n", getVersion().c_str()) ; exit(1) ; } diff --git a/mris_fix_topology/mris_fix_topology.cpp b/mris_fix_topology/mris_fix_topology.cpp index 55b4a2ba814..83b264e4db3 100644 --- a/mris_fix_topology/mris_fix_topology.cpp +++ b/mris_fix_topology/mris_fix_topology.cpp @@ -48,8 +48,6 @@ #include "timer.h" #include "version.h" -static char vcid[] = - "$Id: mris_fix_topology.c,v 1.51 2016/10/27 19:43:58 fischl Exp $"; int main(int argc, char *argv[]) ; @@ -173,8 +171,8 @@ main(int argc, char *argv[]) print_parameters(); - printf("%s\n",vcid); - printf(" %s\n",MRISurfSrcVersion()); + printf("%s\n",getVersion().c_str()); + printf(" %s\n",getVersion().c_str()); fflush(stdout); then.reset() ; @@ -810,7 +808,7 @@ print_help(void) static void print_version(void) { - fprintf(stderr, "%s\n", vcid) ; + fprintf(stderr, "%s\n", getVersion().c_str()) ; exit(1) ; } diff --git a/mris_fix_topology/mris_remove_intersection.cpp b/mris_fix_topology/mris_remove_intersection.cpp index c0c18eeb758..d1109749bb0 100644 --- a/mris_fix_topology/mris_remove_intersection.cpp +++ b/mris_fix_topology/mris_remove_intersection.cpp @@ -35,8 +35,6 @@ #include "timer.h" #include "version.h" -static char vcid[]= - "$Id: mris_remove_intersection.c,v 1.6 2011/03/02 00:04:32 nicks Exp $"; int main(int argc, char *argv[]) ; @@ -176,7 +174,7 @@ print_help(void) static void print_version(void) { - fprintf(stderr, "%s\n", vcid) ; + fprintf(stderr, "%s\n", getVersion().c_str()) ; exit(1) ; } diff --git a/mris_flatten/mris_flatten.cpp b/mris_flatten/mris_flatten.cpp index cb043e6fb56..3afd1cb4067 100644 --- a/mris_flatten/mris_flatten.cpp +++ b/mris_flatten/mris_flatten.cpp @@ -40,8 +40,6 @@ #include "mri2.h" #include "mrishash.h" -static char vcid[] = - "$Id: mris_flatten.c,v 1.42 2016/12/10 22:57:46 fischl Exp $"; int main(int argc, char *argv[]) ; @@ -1011,7 +1009,7 @@ print_help(void) static void print_version(void) { - fprintf(stderr, "%s\n", vcid) ; + fprintf(stderr, "%s\n", getVersion().c_str()) ; exit(1) ; } diff --git a/mris_fwhm/mris_fwhm.cpp b/mris_fwhm/mris_fwhm.cpp index 770a533fcad..697fbb20de3 100644 --- a/mris_fwhm/mris_fwhm.cpp +++ b/mris_fwhm/mris_fwhm.cpp @@ -146,7 +146,6 @@ static void print_version(void) ; static void dump_options(FILE *fp); int main(int argc, char *argv[]) ; -static char vcid[] = "$Id: mris_fwhm.c,v 1.45 2016/12/08 19:25:38 greve Exp $"; const char *Progname = NULL; char *cmdline, cwd[2000]; int debug=0; @@ -736,7 +735,7 @@ static void print_usage(void) { printf(" --help print out information on how to use this program\n"); printf(" --version print out version and exit\n"); printf("\n"); - printf("%s\n", vcid) ; + std::cout << getVersion() << std::endl; printf("\n"); } /* --------------------------------------------- */ @@ -832,7 +831,7 @@ printf("\n"); } /* --------------------------------------------- */ static void print_version(void) { - printf("%s\n", vcid) ; + std::cout << getVersion() << std::endl; exit(1) ; } /* --------------------------------------------- */ @@ -885,7 +884,7 @@ static void check_options(void) { /* --------------------------------------------- */ static void dump_options(FILE *fp) { fprintf(fp,"\n"); - fprintf(fp,"%s\n",vcid); + fprintf(fp,"%s\n", getVersion().c_str()); fprintf(fp,"%s\n",Progname); fprintf(fp,"FREESURFER_HOME %s\n",getenv("FREESURFER_HOME")); fprintf(fp,"SUBJECTS_DIR %s\n",getenv("SUBJECTS_DIR")); diff --git a/mris_hausdorff_dist/mris_hausdorff_dist.cpp b/mris_hausdorff_dist/mris_hausdorff_dist.cpp index ec6803729ce..ad683f4245e 100644 --- a/mris_hausdorff_dist/mris_hausdorff_dist.cpp +++ b/mris_hausdorff_dist/mris_hausdorff_dist.cpp @@ -37,8 +37,6 @@ #include "MARS_DT_Boundary.h" #include "mri_identify.h" -static char vcid[] = -"$Id: mris_hausdorff_dist.c,v 1.3 2011/03/02 00:04:32 nicks Exp $"; int main(int argc, char *argv[]) ; static int get_option(int argc, char *argv[]) ; @@ -283,7 +281,7 @@ print_help(void) static void print_version(void) { - fprintf(stderr, "%s\n", vcid) ; + fprintf(stderr, "%s\n", getVersion().c_str()) ; exit(1) ; } diff --git a/mris_inflate/mris_inflate.cpp b/mris_inflate/mris_inflate.cpp index 3eb317db9f3..d5d186e2ad5 100644 --- a/mris_inflate/mris_inflate.cpp +++ b/mris_inflate/mris_inflate.cpp @@ -41,8 +41,6 @@ #include "macros.h" #include "version.h" -static char vcid[] = - "$Id: mris_inflate.c,v 1.45 2016/01/20 23:42:15 greve Exp $"; int main(int argc, char *argv[]) ; @@ -672,7 +670,7 @@ print_help(void) static void print_version(void) { - fprintf(stderr, "%s\n", vcid) ; + fprintf(stderr, "%s\n", getVersion().c_str()) ; exit(1) ; } static int diff --git a/mris_info/mris_info.cpp b/mris_info/mris_info.cpp index f181c5b01db..ae351bc59d7 100644 --- a/mris_info/mris_info.cpp +++ b/mris_info/mris_info.cpp @@ -59,8 +59,6 @@ static void print_version(void); #define TRIANGLE_FILE_MAGIC_NUMBER (-2 & 0x00ffffff) #define NEW_QUAD_FILE_MAGIC_NUMBER (-3 & 0x00ffffff) -static char vcid[] = -"$Id: mris_info.cpp,v 1.33 2012/12/04 19:17:57 greve Exp $"; using namespace std; char *surffile=NULL, *outfile=NULL, *curvfile=NULL, *annotfile=NULL; char *SUBJECTS_DIR=NULL, *subject=NULL, *hemi=NULL, *surfname=NULL; @@ -591,7 +589,7 @@ static void print_usage(void) { static void print_help(void) { print_usage() ; printf("\n"); - printf("%s\n", vcid) ; + std::cout << getVersion() << std::endl; printf("\n"); printf("Prints out information about a surface file.\n"); printf("\n"); @@ -609,7 +607,7 @@ static void argnerr(char *option, int n) { /* --------------------------------------------- */ static void print_version(void) { - printf("%s\n", vcid) ; + std::cout << getVersion() << std::endl; exit(1) ; } diff --git a/mris_jacobian/mris_jacobian.cpp b/mris_jacobian/mris_jacobian.cpp index 7b6f03d5610..51118626e96 100644 --- a/mris_jacobian/mris_jacobian.cpp +++ b/mris_jacobian/mris_jacobian.cpp @@ -32,8 +32,6 @@ #include "macros.h" #include "version.h" -static char vcid[] = - "$Id: mris_jacobian.c,v 1.11 2015/02/05 23:34:40 zkaufman Exp $"; int main(int argc, char *argv[]) ; @@ -199,7 +197,7 @@ print_help(void) static void print_version(void) { - fprintf(stderr, "%s\n", vcid) ; + fprintf(stderr, "%s\n", getVersion().c_str()) ; exit(1) ; } diff --git a/mris_label2annot/mris_label2annot.cpp b/mris_label2annot/mris_label2annot.cpp index 6f56cbd53e3..feee1e05475 100644 --- a/mris_label2annot/mris_label2annot.cpp +++ b/mris_label2annot/mris_label2annot.cpp @@ -167,8 +167,6 @@ static void print_version(void) ; static void dump_options(FILE *fp); int main(int argc, char *argv[]) ; -static char vcid[] = -"$Id: mris_label2annot.c,v 1.20 2016/01/07 23:28:11 greve Exp $"; static int dilate_label_into_unknown(MRI_SURFACE *mris, int annot) ; @@ -478,7 +476,7 @@ static void print_usage(void) { printf(" --help print out information on how to use this program\n"); printf(" --version print out version and exit\n"); printf("\n"); - printf("%s\n", vcid) ; + std::cout << getVersion() << std::endl; printf("\n"); } @@ -587,7 +585,7 @@ printf("\n"); /* --------------------------------------------- */ static void print_version(void) { - printf("%s\n", vcid) ; + std::cout << getVersion() << std::endl; exit(1) ; } @@ -676,7 +674,7 @@ static void check_options(void) { /* --------------------------------------------- */ static void dump_options(FILE *fp) { fprintf(fp,"\n"); - fprintf(fp,"%s\n",vcid); + fprintf(fp,"%s\n", getVersion().c_str()); fprintf(fp,"cwd %s\n",cwd); fprintf(fp,"cmdline %s\n",cmdline); fprintf(fp,"sysname %s\n",uts.sysname); diff --git a/mris_label_calc/mris_label_calc.cpp b/mris_label_calc/mris_label_calc.cpp index e9d34c965d7..d6746f8855f 100644 --- a/mris_label_calc/mris_label_calc.cpp +++ b/mris_label_calc/mris_label_calc.cpp @@ -36,10 +36,9 @@ #include "label.h" using namespace std; - -//static char vcid[] = "$Id: mris_label_calc.cpp,v 1.6 2016/12/10 22:57:58 fischl Exp $"; const char *Progname = NULL; + void printUsage() { cout << endl; diff --git a/mris_label_mode/mris_label_mode.cpp b/mris_label_mode/mris_label_mode.cpp index 9eea0a8d617..38464b1801d 100644 --- a/mris_label_mode/mris_label_mode.cpp +++ b/mris_label_mode/mris_label_mode.cpp @@ -31,7 +31,6 @@ #include "macros.h" #include "version.h" -static char vcid[] = "$Id: mris_label_mode.c,v 1.6 2011/03/02 00:04:32 nicks Exp $"; int main(int argc, char *argv[]) ; @@ -243,7 +242,7 @@ print_help(void) { static void print_version(void) { - fprintf(stderr, "%s\n", vcid) ; + fprintf(stderr, "%s\n", getVersion().c_str()) ; exit(1) ; } diff --git a/mris_left_right_register/mris_left_right_register.cpp b/mris_left_right_register/mris_left_right_register.cpp index b049f84efea..bea37652a92 100644 --- a/mris_left_right_register/mris_left_right_register.cpp +++ b/mris_left_right_register/mris_left_right_register.cpp @@ -38,8 +38,6 @@ #include "version.h" #include "gcsa.h" -static char vcid[] = - "$Id: mris_left_right_register.c,v 1.2 2011/12/16 20:49:37 greve Exp $"; int main(int argc, char *argv[]) ; @@ -181,8 +179,8 @@ main(int argc, char *argv[]) usage_exit() ; } - printf("%s\n", vcid) ; - printf(" %s\n",MRISurfSrcVersion()); + std::cout << getVersion() << std::endl; + printf(" %s\n",getVersion().c_str()); fflush(stdout); lh_surf_fname = argv[1] ; @@ -853,7 +851,7 @@ print_help(void) static void print_version(void) { - fprintf(stderr, "%s\n", vcid) ; + fprintf(stderr, "%s\n", getVersion().c_str()) ; exit(1) ; } diff --git a/mris_make_average_surface/mris_make_average_surface.cpp b/mris_make_average_surface/mris_make_average_surface.cpp index eb764972295..46a76150292 100644 --- a/mris_make_average_surface/mris_make_average_surface.cpp +++ b/mris_make_average_surface/mris_make_average_surface.cpp @@ -109,8 +109,6 @@ ENDHELP #include "gca.h" #include "gcamorph.h" -static char vcid[] = -"$Id: mris_make_average_surface.c,v 1.30 2013/04/11 20:41:58 greve Exp $"; int main(int argc, char *argv[]) ; @@ -596,7 +594,7 @@ print_help(void) { static void print_version(void) { - printf( "%s\n", vcid) ; + printf( "%s\n", getVersion().c_str()) ; exit(1) ; } diff --git a/mris_make_face_parcellation/mris_make_face_parcellation.cpp b/mris_make_face_parcellation/mris_make_face_parcellation.cpp index c5d4feea535..e6b754bc373 100644 --- a/mris_make_face_parcellation/mris_make_face_parcellation.cpp +++ b/mris_make_face_parcellation/mris_make_face_parcellation.cpp @@ -44,8 +44,6 @@ #define MAX_PARCEL_VERTICES 10000 -static char vcid[] = - "$Id: mris_make_face_parcellation.c,v 1.22 2016/05/06 17:26:14 fischl Exp $"; typedef struct { @@ -621,7 +619,7 @@ print_help(void) { static void print_version(void) { - fprintf(stderr, "%s\n", vcid) ; + fprintf(stderr, "%s\n", getVersion().c_str()) ; exit(1) ; } static int diff --git a/mris_make_surfaces/mris_autodet_gwstats.cpp b/mris_make_surfaces/mris_autodet_gwstats.cpp index 772602ad836..c91f56f2852 100644 --- a/mris_make_surfaces/mris_autodet_gwstats.cpp +++ b/mris_make_surfaces/mris_autodet_gwstats.cpp @@ -59,7 +59,6 @@ int nthreads = 1; int main(int argc, char *argv[]) ; -static char vcid[] = "$Id$"; const char *Progname = "mris_autodet_gwstats"; AutoDetGWStats adgws; char *outfile = NULL; @@ -100,7 +99,7 @@ int main(int argc, char **argv) if(checkoptsonly) return(0); // print out version of this program - printf("%s\n",vcid); + printf("%s\n",getVersion().c_str()); printf("\n"); printf("cd %s\n",cwd); printf("setenv SUBJECTS_DIR %s\n",getenv("SUBJECTS_DIR")); @@ -374,13 +373,13 @@ static void usage_exit(void) { } /* --------------------------------------------- */ static void print_version(void) { - printf("%s\n", vcid) ; + std::cout << getVersion() << std::endl; exit(1) ; } /* --------------------------------------------- */ static void dump_options(FILE *fp) { fprintf(fp,"\n"); - fprintf(fp,"%s\n",vcid); + fprintf(fp,"%s\n", getVersion().c_str()); fprintf(fp,"cwd %s\n",cwd); fprintf(fp,"cmdline %s\n",cmdline); fprintf(fp,"sysname %s\n",uts.sysname); diff --git a/mris_make_surfaces/mris_exvivo_surfaces.cpp b/mris_make_surfaces/mris_exvivo_surfaces.cpp index 641ac580bad..385c92f1362 100644 --- a/mris_make_surfaces/mris_exvivo_surfaces.cpp +++ b/mris_make_surfaces/mris_exvivo_surfaces.cpp @@ -44,8 +44,6 @@ #include "version.h" #include "label.h" -static char vcid[] = -"$Id: mris_exvivo_surfaces.c,v 1.9 2015/02/05 23:34:41 zkaufman Exp $"; int main(int argc, char *argv[]) ; @@ -1136,7 +1134,7 @@ print_help(void) { static void print_version(void) { - fprintf(stderr, "%s\n", vcid) ; + fprintf(stderr, "%s\n", getVersion().c_str()) ; exit(1) ; } diff --git a/mris_make_surfaces/mris_make_surfaces.cpp b/mris_make_surfaces/mris_make_surfaces.cpp index 82652362572..0785997024b 100644 --- a/mris_make_surfaces/mris_make_surfaces.cpp +++ b/mris_make_surfaces/mris_make_surfaces.cpp @@ -56,8 +56,6 @@ #define MAX_HISTO_BINS 1000 -static char vcid[] = - "$Id: mris_make_surfaces.c,v 1.172 2017/02/16 19:42:36 fischl Exp $"; int main(int argc, char *argv[]) ; @@ -410,8 +408,8 @@ int main(int argc, char *argv[]) strcpy(mdir, cp) ; // print out version of this program and mrisurf.c - printf("%s\n",vcid); - printf("%s\n",MRISurfSrcVersion()); + printf("%s\n",getVersion().c_str()); + printf("%s\n",getVersion().c_str()); printf("\n"); printf("cd %s\n",cwd); printf("setenv SUBJECTS_DIR %s\n",getenv("SUBJECTS_DIR")); @@ -3196,7 +3194,7 @@ print_help(void) static void print_version(void) { - fprintf(stderr, "%s\n", vcid) ; + fprintf(stderr, "%s\n", getVersion().c_str()) ; exit(1) ; } diff --git a/mris_make_surfaces/mris_mef_surfaces.cpp b/mris_make_surfaces/mris_mef_surfaces.cpp index 7e05b7f67ba..0df0a449e8f 100644 --- a/mris_make_surfaces/mris_mef_surfaces.cpp +++ b/mris_make_surfaces/mris_mef_surfaces.cpp @@ -43,8 +43,6 @@ #include "version.h" #include "label.h" -static char vcid[] = -"$Id: mris_mef_surfaces.c,v 1.7 2015/02/05 23:34:41 zkaufman Exp $"; int main(int argc, char *argv[]) ; @@ -979,7 +977,7 @@ print_help(void) { static void print_version(void) { - fprintf(stderr, "%s\n", vcid) ; + fprintf(stderr, "%s\n", getVersion().c_str()) ; exit(1) ; } diff --git a/mris_make_surfaces/mris_place_surface.cpp b/mris_make_surfaces/mris_place_surface.cpp index 83bd82622c7..c580123b9e2 100644 --- a/mris_make_surfaces/mris_place_surface.cpp +++ b/mris_make_surfaces/mris_place_surface.cpp @@ -164,7 +164,6 @@ int debug = 0, checkoptsonly = 0; int main(int argc, char *argv[]) ; -static char vcid[] = "$Id$"; const char *Progname = "mris_place_surfaces"; INTEGRATION_PARMS parms, old_parms ; @@ -306,8 +305,8 @@ int main(int argc, char **argv) } // print out version of this program and mrisurf.c - printf("%s\n",vcid); - printf("%s\n",MRISurfSrcVersion()); + printf("%s\n",getVersion().c_str()); + printf("%s\n",getVersion().c_str()); printf("\n"); printf("cd %s\n",cwd); printf("setenv SUBJECTS_DIR %s\n",getenv("SUBJECTS_DIR")); @@ -1254,13 +1253,13 @@ static void usage_exit(void) { } /* --------------------------------------------- */ static void print_version(void) { - printf("%s\n", vcid) ; + std::cout << getVersion() << std::endl; exit(1) ; } /* --------------------------------------------- */ static void dump_options(FILE *fp) { fprintf(fp,"\n"); - fprintf(fp,"%s\n",vcid); + fprintf(fp,"%s\n", getVersion().c_str()); fprintf(fp,"cwd %s\n",cwd); fprintf(fp,"cmdline %s\n",cmdline); fprintf(fp,"sysname %s\n",uts.sysname); diff --git a/mris_make_surfaces/mris_refine_surfaces.cpp b/mris_make_surfaces/mris_refine_surfaces.cpp index 08f3c79b075..4c8b2cef9a6 100644 --- a/mris_make_surfaces/mris_refine_surfaces.cpp +++ b/mris_make_surfaces/mris_refine_surfaces.cpp @@ -43,8 +43,6 @@ #include "label.h" #include "registerio.h" -static char vcid[] = -"$Id: mris_refine_surfaces.c,v 1.23 2016/12/10 22:57:53 fischl Exp $"; int debug__ = 0; /// tosa debug @@ -1103,7 +1101,7 @@ print_help(void) { static void print_version(void) { - fprintf(stderr, "%s\n", vcid) ; + fprintf(stderr, "%s\n", getVersion().c_str()) ; exit(1) ; } diff --git a/mris_make_template/mris_make_template.cpp b/mris_make_template/mris_make_template.cpp index fbf08cc3e66..9487d1c6fe4 100644 --- a/mris_make_template/mris_make_template.cpp +++ b/mris_make_template/mris_make_template.cpp @@ -32,8 +32,6 @@ #include "macros.h" #include "version.h" -static char vcid[] = - "$Id: mris_make_template.c,v 1.27 2011/03/02 00:04:33 nicks Exp $"; int main(int argc, char *argv[]) ; @@ -843,7 +841,7 @@ print_help(void) static void print_version(void) { - printf( "%s\n", vcid) ; + printf( "%s\n", getVersion().c_str()) ; exit(1) ; } diff --git a/mris_merge_parcellations/mris_merge_parcellations.cpp b/mris_merge_parcellations/mris_merge_parcellations.cpp index f12161ce211..5270b58d6e0 100644 --- a/mris_merge_parcellations/mris_merge_parcellations.cpp +++ b/mris_merge_parcellations/mris_merge_parcellations.cpp @@ -36,8 +36,6 @@ #include "label.h" #include "MARS_DT_Boundary.h" -static char vcid[] = -"$Id: mris_merge_parcellations.c,v 1.6 2011/03/02 00:04:33 nicks Exp $"; int main(int argc, char *argv[]) ; static int get_option(int argc, char *argv[]) ; @@ -207,7 +205,7 @@ print_help(void) static void print_version(void) { - fprintf(stderr, "%s\n", vcid) ; + fprintf(stderr, "%s\n", getVersion().c_str()) ; exit(1) ; } diff --git a/mris_mesh_subdivide/mris_mesh_subdivide.cxx b/mris_mesh_subdivide/mris_mesh_subdivide.cxx index 85a9a6a7cc2..f07c8ab31a2 100644 --- a/mris_mesh_subdivide/mris_mesh_subdivide.cxx +++ b/mris_mesh_subdivide/mris_mesh_subdivide.cxx @@ -70,8 +70,6 @@ static void argnerr(char *, int) ; static int debug = 0; -static char vcid[] = - "$Id: mris_mesh_subdivide.cxx,v 1.5 2013/02/07 16:04:07 jonp Exp $"; @@ -625,7 +623,7 @@ static void print_usage(void) printf(" --help print out information on how to use this program\n"); printf(" --version print out version and exit\n"); printf("\n"); - printf("%s\n", vcid) ; + std::cout << getVersion() << std::endl; printf("\n"); } @@ -655,7 +653,7 @@ static void print_help(void) /* --------------------------------------------------------------------------- */ static void print_version(void) { - printf("%s\n", vcid) ; + std::cout << getVersion() << std::endl; exit(1) ; } diff --git a/mris_morph_stats/mris_morph_stats.cpp b/mris_morph_stats/mris_morph_stats.cpp index 91eb01306c1..bb6d16f1db4 100644 --- a/mris_morph_stats/mris_morph_stats.cpp +++ b/mris_morph_stats/mris_morph_stats.cpp @@ -31,7 +31,6 @@ #include "macros.h" #include "version.h" -static char vcid[] = "$Id: mris_morph_stats.c,v 1.6 2011/03/02 00:04:33 nicks Exp $"; int main(int argc, char *argv[]) ; @@ -194,7 +193,7 @@ print_help(void) { static void print_version(void) { - fprintf(stderr, "%s\n", vcid) ; + fprintf(stderr, "%s\n", getVersion().c_str()) ; exit(1) ; } diff --git a/mris_ms_refine/mris_ms_refine.cpp b/mris_ms_refine/mris_ms_refine.cpp index b5c8e9c9063..4ee34671fac 100644 --- a/mris_ms_refine/mris_ms_refine.cpp +++ b/mris_ms_refine/mris_ms_refine.cpp @@ -35,7 +35,6 @@ #include "histo.h" #include "version.h" -static char vcid[] = "$Id: mris_ms_refine.c,v 1.20 2015/02/05 23:34:41 zkaufman Exp $"; int main(int argc, char *argv[]) ; @@ -1089,7 +1088,7 @@ print_help(void) { static void print_version(void) { - printf("%s\n", vcid) ; + std::cout << getVersion() << std::endl; exit(1) ; } diff --git a/mris_multiscale_stats/mris_multiscale_stats.cpp b/mris_multiscale_stats/mris_multiscale_stats.cpp index 0c224892426..5a1a24772c6 100644 --- a/mris_multiscale_stats/mris_multiscale_stats.cpp +++ b/mris_multiscale_stats/mris_multiscale_stats.cpp @@ -31,7 +31,6 @@ #include "sig.h" #include "version.h" -static char vcid[] = "$Id: mris_multiscale_stats.c,v 1.6 2015/02/05 23:34:41 zkaufman Exp $"; /*-------------------------------- CONSTANTS -----------------------------*/ @@ -716,7 +715,7 @@ print_help(void) { static void print_version(void) { - fprintf(stderr, "%s\n", vcid) ; + fprintf(stderr, "%s\n", getVersion().c_str()) ; exit(1) ; } diff --git a/mris_niters2fwhm/mris_niters2fwhm.cpp b/mris_niters2fwhm/mris_niters2fwhm.cpp index 7dec744e087..19399fe3b0e 100644 --- a/mris_niters2fwhm/mris_niters2fwhm.cpp +++ b/mris_niters2fwhm/mris_niters2fwhm.cpp @@ -61,7 +61,6 @@ static void print_version(void) ; static void dump_options(FILE *fp); int main(int argc, char *argv[]) ; -static char vcid[] = "$Id: mris_niters2fwhm.c,v 1.14 2011/03/02 00:04:33 nicks Exp $"; const char *Progname = NULL; char *cmdline, cwd[2000]; int debug=0; @@ -238,7 +237,7 @@ static void print_usage(void) { printf(" --help print out information on how to use this program\n"); printf(" --version print out version and exit\n"); printf("\n"); - printf("%s\n", vcid) ; + std::cout << getVersion() << std::endl; printf("\n"); } /* --------------------------------------------- */ @@ -249,7 +248,7 @@ static void print_help(void) { } /* --------------------------------------------- */ static void print_version(void) { - printf("%s\n", vcid) ; + std::cout << getVersion() << std::endl; exit(1) ; } /* --------------------------------------------- */ @@ -260,7 +259,7 @@ static void check_options(void) { /* --------------------------------------------- */ static void dump_options(FILE *fp) { fprintf(fp,"\n"); - fprintf(fp,"%s\n",vcid); + fprintf(fp,"%s\n", getVersion().c_str()); fprintf(fp,"%s\n",Progname); fprintf(fp,"FREESURFER_HOME %s\n",getenv("FREESURFER_HOME")); fprintf(fp,"SUBJECTS_DIR %s\n",getenv("SUBJECTS_DIR")); diff --git a/mris_pmake/mris_pmake.cpp b/mris_pmake/mris_pmake.cpp index 2e95e1c8625..53ed23e4539 100644 --- a/mris_pmake/mris_pmake.cpp +++ b/mris_pmake/mris_pmake.cpp @@ -72,8 +72,7 @@ char* Gpch_Progname; bool Gb_stdout = true; // Global flag controlling output to //+stdout string G_SELF = ""; // "My" name -string G_VERSION = // version - "$Id: mris_pmake.cpp,v 1.18 2013/01/25 16:39:24 rudolph Exp $"; +string G_VERSION = "mris_pmake"; // version char pch_buffer[65536]; // "Class"-like globals... diff --git a/mris_register/mris_register.cpp b/mris_register/mris_register.cpp index fa2899eed6e..1ff712de189 100644 --- a/mris_register/mris_register.cpp +++ b/mris_register/mris_register.cpp @@ -48,8 +48,6 @@ #define PARAM_IMAGES (IMAGES_PER_SURFACE * SURFACES) -static char vcid[] = - "$Id: mris_register.c,v 1.64 2017/02/07 19:04:44 fischl Exp $"; int main(int argc, char *argv[]) ; @@ -212,8 +210,8 @@ main(int argc, char *argv[]) usage_exit() ; } - printf("%s\n", vcid) ; - printf(" %s\n",MRISurfSrcVersion()); + std::cout << getVersion() << std::endl; + printf(" %s\n",getVersion().c_str()); fflush(stdout); surf_fname = argv[1] ; @@ -1278,7 +1276,7 @@ print_help(void) static void print_version(void) { - fprintf(stderr, "%s\n", vcid) ; + fprintf(stderr, "%s\n", getVersion().c_str()) ; exit(1) ; } diff --git a/mris_register_label_map/mris_register_label_map.cpp b/mris_register_label_map/mris_register_label_map.cpp index e81e03f45d7..9a748b23947 100644 --- a/mris_register_label_map/mris_register_label_map.cpp +++ b/mris_register_label_map/mris_register_label_map.cpp @@ -27,7 +27,6 @@ */ -// $Id: mris_register_label_map.c,v 1.4 2016/12/11 14:33:31 fischl Exp $ /* BEGINHELP @@ -107,7 +106,6 @@ int main(int argc, char *argv[]) ; static MRI *compute_mean_and_variance_across_frames(MRI **mri_label_avg, int nsubjects) ; static MRI *compute_mean_and_variance(MRI **mri_label_avg, int nsubjects) ; -static char vcid[] = "$Id: mris_register_label_map.c,v 1.4 2016/12/11 14:33:31 fischl Exp $"; const char *Progname = NULL; char *cmdline, cwd[2000]; int debug=0; @@ -699,7 +697,7 @@ static void print_usage(void) { printf(" --version print out version and exit\n"); printf(" --v VNO debug this vertex\n"); printf("\n"); - printf("%s\n", vcid) ; + std::cout << getVersion() << std::endl; printf("\n"); } /* -- Doxygen markup starts on the line below (this line not needed for Doxygen) -- */ @@ -720,7 +718,7 @@ static void print_help(void) { */ /* ------ Doxygen markup ends on the line above (this line not needed for Doxygen) -- */ static void print_version(void) { - printf("%s\n", vcid) ; + std::cout << getVersion() << std::endl; exit(1) ; } /* -- Doxygen markup starts on the line below (this line not needed for Doxygen) -- */ @@ -742,7 +740,7 @@ static void check_options(void) { /* ------ Doxygen markup ends on the line above (this line not needed for Doxygen) -- */ static void dump_options(FILE *fp) { fprintf(fp,"\n"); - fprintf(fp,"%s\n",vcid); + fprintf(fp,"%s\n", getVersion().c_str()); fprintf(fp,"cwd %s\n",cwd); fprintf(fp,"cmdline %s\n",cmdline); fprintf(fp,"sysname %s\n",uts.sysname); diff --git a/mris_register_to_volume/mris_register_to_label.cpp b/mris_register_to_volume/mris_register_to_label.cpp index c9b0c40c174..72bad6b082c 100644 --- a/mris_register_to_volume/mris_register_to_label.cpp +++ b/mris_register_to_volume/mris_register_to_label.cpp @@ -185,7 +185,6 @@ const char *Progname ; static char base_name[STRLEN] ; static char *SUBJECTS_DIR ; static MATRIX *R0 ; -static char vcid[] = "$Id: mris_register_to_label.c,v 1.3 2013/06/07 18:56:17 fischl Exp $"; int main(int argc, char **argv) { @@ -466,7 +465,7 @@ printf("\n"); /* --------------------------------------------- */ static void print_help(void) { print_usage() ; - printf("\n%s\n\n",vcid); + printf("\n%s\n\n",getVersion().c_str()); exit(1) ; } /* --------------------------------------------- */ @@ -513,7 +512,7 @@ static void dump_options(FILE *fp) } /* --------------------------------------------- */ static void print_version(void) { - printf("%s\n", vcid) ; + std::cout << getVersion() << std::endl; exit(1) ; } /* --------------------------------------------- */ diff --git a/mris_register_to_volume/mris_register_to_volume.cpp b/mris_register_to_volume/mris_register_to_volume.cpp index 5925fa704f7..74477b0e259 100644 --- a/mris_register_to_volume/mris_register_to_volume.cpp +++ b/mris_register_to_volume/mris_register_to_volume.cpp @@ -158,7 +158,6 @@ static int istringnmatch(char *str1, const char *str2, int n); int main(int argc, char *argv[]) ; -static char vcid[] = "$Id: mris_register_to_volume.c,v 1.10 2011/03/02 00:04:33 nicks Exp $"; const char *Progname = NULL; static double tscale = 5.0 ; @@ -903,7 +902,7 @@ printf("\n"); /* --------------------------------------------- */ static void print_help(void) { print_usage() ; - printf("\n%s\n\n",vcid); + printf("\n%s\n\n",getVersion().c_str()); exit(1) ; } /* --------------------------------------------- */ @@ -997,7 +996,7 @@ static void dump_options(FILE *fp) } /* --------------------------------------------- */ static void print_version(void) { - printf("%s\n", vcid) ; + std::cout << getVersion() << std::endl; exit(1) ; } /* --------------------------------------------- */ diff --git a/mris_remove_variance/mris_remove_variance.cpp b/mris_remove_variance/mris_remove_variance.cpp index 75cee607de8..00e12ac8e9b 100644 --- a/mris_remove_variance/mris_remove_variance.cpp +++ b/mris_remove_variance/mris_remove_variance.cpp @@ -29,7 +29,6 @@ #include "macros.h" #include "version.h" -static char vcid[] = "$Id: mris_remove_variance.c,v 1.7 2011/03/02 00:04:33 nicks Exp $"; int main(int argc, char *argv[]) ; @@ -173,7 +172,7 @@ print_help(void) { static void print_version(void) { - fprintf(stderr, "%s\n", vcid) ; + fprintf(stderr, "%s\n", getVersion().c_str()) ; exit(1) ; } diff --git a/mris_rescale/mris_rescale.cpp b/mris_rescale/mris_rescale.cpp index d0f7228a8de..28863b5856c 100644 --- a/mris_rescale/mris_rescale.cpp +++ b/mris_rescale/mris_rescale.cpp @@ -29,7 +29,6 @@ #include "macros.h" #include "version.h" -static char vcid[] = "$Id: mris_rescale.c,v 1.5 2011/03/02 00:04:33 nicks Exp $"; int main(int argc, char *argv[]) ; @@ -138,7 +137,7 @@ print_help(void) { static void print_version(void) { - fprintf(stderr, "%s\n", vcid) ; + fprintf(stderr, "%s\n", getVersion().c_str()) ; exit(1) ; } diff --git a/mris_reverse/mris_reverse.cpp b/mris_reverse/mris_reverse.cpp index 76c7a226fc4..ad537304a7b 100644 --- a/mris_reverse/mris_reverse.cpp +++ b/mris_reverse/mris_reverse.cpp @@ -29,7 +29,6 @@ #include "macros.h" #include "version.h" -static char vcid[] = "$Id: mris_reverse.c,v 1.10 2011/03/02 00:04:33 nicks Exp $"; int main(int argc, char *argv[]) ; @@ -172,7 +171,7 @@ print_help(void) { static void print_version(void) { - fprintf(stderr, "%s\n", vcid) ; + fprintf(stderr, "%s\n", getVersion().c_str()) ; exit(1) ; } diff --git a/mris_rotate/mris_rotate.cpp b/mris_rotate/mris_rotate.cpp index 6523cfc309e..0d4f8a55ed0 100644 --- a/mris_rotate/mris_rotate.cpp +++ b/mris_rotate/mris_rotate.cpp @@ -29,7 +29,6 @@ #include "macros.h" #include "version.h" -static char vcid[] = "$Id: mris_rotate.c,v 1.6 2011/03/02 00:04:33 nicks Exp $"; int main(int argc, char *argv[]) ; @@ -155,7 +154,7 @@ print_help(void) { static void print_version(void) { - fprintf(stderr, "%s\n", vcid) ; + fprintf(stderr, "%s\n", getVersion().c_str()) ; exit(1) ; } diff --git a/mris_sample_label/mris_sample_label.cpp b/mris_sample_label/mris_sample_label.cpp index 35d345e437d..b99cbb8b2ef 100644 --- a/mris_sample_label/mris_sample_label.cpp +++ b/mris_sample_label/mris_sample_label.cpp @@ -19,7 +19,7 @@ #include #include - +#include "version.h" #include "macros.h" #include "error.h" #include "diag.h" @@ -29,7 +29,6 @@ #include "fio.h" #include "label.h" -static char vcid[] = "$Id: mris_sample_label.c,v 1.5 2012/10/01 18:59:32 fischl Exp $"; /*-------------------------------- CONSTANTS -----------------------------*/ @@ -167,6 +166,6 @@ print_help(void) { static void print_version(void) { - fprintf(stderr, "%s\n", vcid) ; + fprintf(stderr, "%s\n", getVersion().c_str()) ; exit(1) ; } diff --git a/mris_sample_parc/mris_sample_parc.cpp b/mris_sample_parc/mris_sample_parc.cpp index 83ecdf07192..07f1bf799cd 100644 --- a/mris_sample_parc/mris_sample_parc.cpp +++ b/mris_sample_parc/mris_sample_parc.cpp @@ -38,8 +38,6 @@ #include "gca.h" #include "mrishash.h" -static char vcid[] = - "$Id: mris_sample_parc.c,v 1.31 2016/12/11 14:33:38 fischl Exp $"; int main(int argc, char *argv[]) ; @@ -577,7 +575,7 @@ print_help(void) { static void print_version(void) { - fprintf(stderr, "%s\n", vcid) ; + fprintf(stderr, "%s\n", getVersion().c_str()) ; exit(1) ; } diff --git a/mris_seg2annot/mris_seg2annot.cpp b/mris_seg2annot/mris_seg2annot.cpp index 99856afda7f..43c4d191f37 100644 --- a/mris_seg2annot/mris_seg2annot.cpp +++ b/mris_seg2annot/mris_seg2annot.cpp @@ -13,7 +13,6 @@ */ -// $Id: mris_seg2annot.c,v 1.10 2014/11/15 00:07:19 greve Exp $ /* BEGINHELP @@ -103,7 +102,6 @@ static void print_version(void) ; static void dump_options(FILE *fp); int main(int argc, char *argv[]) ; -static char vcid[] = "$Id: mris_seg2annot.c,v 1.10 2014/11/15 00:07:19 greve Exp $"; const char *Progname = NULL; char *cmdline, cwd[2000]; int debug=0; @@ -326,7 +324,7 @@ static void print_usage(void) { printf(" --help print out information on how to use this program\n"); printf(" --version print out version and exit\n"); printf("\n"); - printf("%s\n", vcid) ; + std::cout << getVersion() << std::endl; printf("\n"); } /* --------------------------------------------- */ @@ -378,7 +376,7 @@ static void print_help(void) { } /* --------------------------------------------- */ static void print_version(void) { - printf("%s\n", vcid) ; + std::cout << getVersion() << std::endl; exit(1) ; } /* --------------------------------------------- */ @@ -409,7 +407,7 @@ static void check_options(void) { /* --------------------------------------------- */ static void dump_options(FILE *fp) { fprintf(fp,"\n"); - fprintf(fp,"%s\n",vcid); + fprintf(fp,"%s\n", getVersion().c_str()); fprintf(fp,"cwd %s\n",cwd); fprintf(fp,"cmdline %s\n",cmdline); fprintf(fp,"sysname %s\n",uts.sysname); diff --git a/mris_segment_vals/mris_segment_vals.cpp b/mris_segment_vals/mris_segment_vals.cpp index 7cf682d9979..d1921fdbbde 100644 --- a/mris_segment_vals/mris_segment_vals.cpp +++ b/mris_segment_vals/mris_segment_vals.cpp @@ -30,7 +30,6 @@ #include "macros.h" #include "version.h" -static char vcid[] = "$Id: mris_segment_vals.c,v 1.5 2011/03/02 00:04:34 nicks Exp $"; int main(int argc, char *argv[]) ; @@ -166,7 +165,7 @@ print_help(void) { static void print_version(void) { - fprintf(stderr, "%s\n", vcid) ; + fprintf(stderr, "%s\n", getVersion().c_str()) ; exit(1) ; } diff --git a/mris_shrinkwrap/mris_AA_shrinkwrap.cpp b/mris_shrinkwrap/mris_AA_shrinkwrap.cpp index 45b7d3894fc..92575641469 100644 --- a/mris_shrinkwrap/mris_AA_shrinkwrap.cpp +++ b/mris_shrinkwrap/mris_AA_shrinkwrap.cpp @@ -40,7 +40,6 @@ static double compute_surface_dist_sse(MRI_SURFACE *mris, MRI *mri_dist) ; static int MRISrepositionToInnerSkull(MRI_SURFACE *mris, MRI *mri_smooth, INTEGRATION_PARMS *parms) ; -static char vcid[] = "$Id: mris_AA_shrinkwrap.c,v 1.6 2015/02/05 23:34:41 zkaufman Exp $"; int main(int argc, char *argv[]) ; @@ -428,7 +427,7 @@ print_help(void) { static void print_version(void) { - fprintf(stderr, "%s\n", vcid) ; + fprintf(stderr, "%s\n", getVersion().c_str()) ; exit(1) ; } diff --git a/mris_shrinkwrap/mris_shrinkwrap.cpp b/mris_shrinkwrap/mris_shrinkwrap.cpp index 39ff493bcd4..649bdbf0341 100644 --- a/mris_shrinkwrap/mris_shrinkwrap.cpp +++ b/mris_shrinkwrap/mris_shrinkwrap.cpp @@ -41,8 +41,6 @@ #include "version.h" #include "cma.h" -static char vcid[] = -"$Id: mris_shrinkwrap.c,v 1.9 2012/11/10 20:19:46 fischl Exp $"; int main(int argc, char *argv[]) ; @@ -574,7 +572,7 @@ print_help(void) static void print_version(void) { - fprintf(stderr, "%s\n", vcid) ; + fprintf(stderr, "%s\n", getVersion().c_str()) ; exit(1) ; } diff --git a/mris_smooth/mris_smooth.cpp b/mris_smooth/mris_smooth.cpp index 8b047638d34..f3f39924711 100644 --- a/mris_smooth/mris_smooth.cpp +++ b/mris_smooth/mris_smooth.cpp @@ -34,8 +34,6 @@ #include "macros.h" #include "version.h" -static char vcid[] = - "$Id: mris_smooth.c,v 1.30 2014/01/21 18:48:21 fischl Exp $"; int main(int argc, char *argv[]) ; @@ -506,7 +504,7 @@ print_help(void) static void print_version(void) { - fprintf(stderr, "%s\n", vcid) ; + fprintf(stderr, "%s\n", getVersion().c_str()) ; exit(1) ; } diff --git a/mris_smooth_intracortical/mris_smooth_intracortical.cpp b/mris_smooth_intracortical/mris_smooth_intracortical.cpp index eb99af9f683..eac36841388 100644 --- a/mris_smooth_intracortical/mris_smooth_intracortical.cpp +++ b/mris_smooth_intracortical/mris_smooth_intracortical.cpp @@ -29,7 +29,6 @@ \author Anna I. Blazejewska */ -// $Id: mri_surf_smooth.c,v 0.90 2019/02/21 00:04:01 anna Exp $ /* BEGINHELP TODO @@ -86,7 +85,6 @@ static void print_version(void); -static char vcid[] = "$Id: mris_smooth_intracortical.c,v 1.30 2019/02/21 18:48:21 Anna Exp $"; const char *Progname = NULL; char surf_path[STRLEN], over_path[STRLEN], out_path[STRLEN], surf_name[STRLEN], over_name[STRLEN], surf_dir[STRLEN], over_dir[STRLEN], out_dir[STRLEN], out_name[STRLEN]; @@ -402,7 +400,7 @@ static void print_usage(void) { \brief Prints version and exits */ static void print_version(void) { - printf("%s\n", vcid) ; + std::cout << getVersion() << std::endl; exit(1) ; } diff --git a/mris_spharm/mris_spharm.c b/mris_spharm/mris_spharm.c index 9d74967e834..1192ad25d79 100644 --- a/mris_spharm/mris_spharm.c +++ b/mris_spharm/mris_spharm.c @@ -47,9 +47,6 @@ #include "matrix.h" -//static char vcid[] = "$Id: mris_spharm.c,v 1.7 2011/03/02 00:04:34 nicks Exp $"; - - int main(int argc, char *argv[]) ; static int get_option(int argc, char *argv[]) ; const char *Progname ; diff --git a/mris_sphere/mris_remove_negative_vertices.cpp b/mris_sphere/mris_remove_negative_vertices.cpp index 740402814b6..448474a65fc 100644 --- a/mris_sphere/mris_remove_negative_vertices.cpp +++ b/mris_sphere/mris_remove_negative_vertices.cpp @@ -32,8 +32,6 @@ #include "timer.h" #include "version.h" -static char vcid[]= -"$Id: mris_remove_negative_vertices.c,v 1.5 2011/03/02 00:04:34 nicks Exp $"; int main(int argc, char *argv[]) ; @@ -214,7 +212,7 @@ print_help(void) static void print_version(void) { - fprintf(stderr, "%s\n", vcid) ; + fprintf(stderr, "%s\n", getVersion().c_str()) ; exit(1) ; } diff --git a/mris_sphere/mris_sphere.cpp b/mris_sphere/mris_sphere.cpp index a3768cd8038..58313218928 100644 --- a/mris_sphere/mris_sphere.cpp +++ b/mris_sphere/mris_sphere.cpp @@ -43,8 +43,6 @@ #include "timer.h" #include "version.h" -static char vcid[]= - "$Id: mris_sphere.c,v 1.62 2017/02/07 19:04:37 fischl Exp $"; int main(int argc, char *argv[]) ; @@ -176,8 +174,8 @@ main(int argc, char *argv[]) in_surf_fname = argv[1] ; out_fname = argv[2] ; - printf("%s\n",vcid); - printf(" %s\n",MRISurfSrcVersion()); + printf("%s\n",getVersion().c_str()); + printf(" %s\n",getVersion().c_str()); #ifdef HAVE_OPENMP { @@ -868,7 +866,7 @@ print_help(void) static void print_version(void) { - fprintf(stderr, "%s\n", vcid) ; + fprintf(stderr, "%s\n", getVersion().c_str()) ; exit(1) ; } diff --git a/mris_spherical_average/mris_spherical_average.cpp b/mris_spherical_average/mris_spherical_average.cpp index 0dabe80a4dc..2a641c123e9 100644 --- a/mris_spherical_average/mris_spherical_average.cpp +++ b/mris_spherical_average/mris_spherical_average.cpp @@ -42,7 +42,6 @@ #include "label.h" #include "version.h" -static char vcid[] = "$Id: mris_spherical_average.c,v 1.38 2016/12/11 14:33:44 fischl Exp $"; int main(int argc, char *argv[]) ; @@ -822,7 +821,7 @@ print_help(void) static void print_version(void) { - fprintf(stderr, "%s\n", vcid) ; + fprintf(stderr, "%s\n", getVersion().c_str()) ; exit(1) ; } diff --git a/mris_spherical_wavelets/mris_spherical_wavelets.c b/mris_spherical_wavelets/mris_spherical_wavelets.c index 9ec5875ca91..1055392febc 100644 --- a/mris_spherical_wavelets/mris_spherical_wavelets.c +++ b/mris_spherical_wavelets/mris_spherical_wavelets.c @@ -45,9 +45,6 @@ #include "matrix.h" -//static char vcid[] = "$Id: mris_spherical_wavelets.c,v 1.5 2011/03/02 00:04:34 nicks Exp $"; - - int main(int argc, char *argv[]) ; static int get_option(int argc, char *argv[]) ; const char *Progname ; diff --git a/mris_surface_stats/mris_surface_stats.cpp b/mris_surface_stats/mris_surface_stats.cpp index a0afc9b8a93..19edb43a8d2 100644 --- a/mris_surface_stats/mris_surface_stats.cpp +++ b/mris_surface_stats/mris_surface_stats.cpp @@ -78,8 +78,6 @@ static int nSmoothSteps = 0; #endif #define MAX_SURFACES 200 -static char vcid[] = - "$Id: mris_surface_stats.c,v 1.10 2011/03/02 00:04:34 nicks Exp $"; int main(int argc, char *argv[]) @@ -517,7 +515,7 @@ main(int argc, char *argv[]) /* --------------------------------------------- */ static void print_version(void) { - fprintf(stdout, "%s\n", vcid) ; + fprintf(stdout, "%s\n", getVersion().c_str()) ; exit(1) ; } diff --git a/mris_talairach/mris_talairach.cpp b/mris_talairach/mris_talairach.cpp index a212d07fc8e..74fac8d68e1 100644 --- a/mris_talairach/mris_talairach.cpp +++ b/mris_talairach/mris_talairach.cpp @@ -27,7 +27,6 @@ #include "macros.h" #include "version.h" -static char vcid[] = "$Id: mris_talairach.c,v 1.5 2011/03/02 00:04:34 nicks Exp $"; int main(int argc, char *argv[]) ; @@ -137,7 +136,7 @@ print_help(void) { static void print_version(void) { - fprintf(stderr, "%s\n", vcid) ; + fprintf(stderr, "%s\n", getVersion().c_str()) ; exit(1) ; } diff --git a/mris_thickness/mris_cluster_profiles.cpp b/mris_thickness/mris_cluster_profiles.cpp index 8b9900e9d25..ea96a736ba7 100644 --- a/mris_thickness/mris_cluster_profiles.cpp +++ b/mris_thickness/mris_cluster_profiles.cpp @@ -38,7 +38,6 @@ typedef struct { } CLUSTER ; -static char vcid[] = "$Id: mris_cluster_profiles.c,v 1.4 2011/03/02 00:04:34 nicks Exp $"; //int MRISfindClosestVertex(MRI_SURFACE *mris1, MRI_SURFACE *mris2, int vno1) ; static int clusters_connected(MRI_SURFACE *mris, int vno1, int vno2, int n) ; @@ -322,7 +321,7 @@ print_help(void) { static void print_version(void) { - fprintf(stderr, "%s\n", vcid) ; + fprintf(stderr, "%s\n", getVersion().c_str()) ; exit(1) ; } diff --git a/mris_thickness/mris_gradient.cpp b/mris_thickness/mris_gradient.cpp index 6d64e2b6bc9..80859d636de 100644 --- a/mris_thickness/mris_gradient.cpp +++ b/mris_thickness/mris_gradient.cpp @@ -39,7 +39,6 @@ #include "macros.h" #include "version.h" -static char vcid[] = "$Id: mris_gradient.c,v 1.23 2013/03/27 01:53:50 fischl Exp $"; const char *Progname ; int main(int argc, char *argv[]) ; @@ -219,7 +218,7 @@ print_help(void) { static void print_version(void) { - fprintf(stderr, "%s\n", vcid) ; + fprintf(stderr, "%s\n", getVersion().c_str()) ; exit(1) ; } diff --git a/mris_thickness/mris_intensity_profile.cpp b/mris_thickness/mris_intensity_profile.cpp index eec2cbb5cb9..b7d76e04476 100644 --- a/mris_thickness/mris_intensity_profile.cpp +++ b/mris_thickness/mris_intensity_profile.cpp @@ -41,7 +41,6 @@ #include "cma.h" #include "fsinit.h" -static char vcid[] = "$Id: mris_intensity_profile.c,v 1.23 2013/03/27 01:53:50 fischl Exp $"; int main(int argc, char *argv[]) ; @@ -1142,7 +1141,7 @@ print_help(void) { static void print_version(void) { - fprintf(stderr, "%s\n", vcid) ; + fprintf(stderr, "%s\n", getVersion().c_str()) ; exit(1) ; } diff --git a/mris_thickness/mris_thickness.cpp b/mris_thickness/mris_thickness.cpp index a30adb4746d..fe416efe61e 100644 --- a/mris_thickness/mris_thickness.cpp +++ b/mris_thickness/mris_thickness.cpp @@ -40,7 +40,6 @@ #include "icosahedron.h" #include "label.h" -static char vcid[] = "$Id: mris_thickness.c,v 1.28 2012/11/27 17:41:26 fischl Exp $"; int main(int argc, char *argv[]) ; @@ -610,7 +609,7 @@ print_help(void) { static void print_version(void) { - fprintf(stderr, "%s\n", vcid) ; + fprintf(stderr, "%s\n", getVersion().c_str()) ; exit(1) ; } diff --git a/mris_thickness_comparison/mris_thickness_comparison.cpp b/mris_thickness_comparison/mris_thickness_comparison.cpp index 7447525f0d7..a7e92c0052f 100644 --- a/mris_thickness_comparison/mris_thickness_comparison.cpp +++ b/mris_thickness_comparison/mris_thickness_comparison.cpp @@ -30,7 +30,6 @@ #include "label.h" #include "version.h" -static char vcid[] = "$Id: mris_thickness_comparison.c,v 1.5 2011/03/02 00:04:34 nicks Exp $"; int main(int argc, char *argv[]) ; @@ -190,7 +189,7 @@ print_help(void) { static void print_version(void) { - fprintf(stderr, "%s\n", vcid) ; + fprintf(stderr, "%s\n", getVersion().c_str()) ; exit(1) ; } diff --git a/mris_thickness_diff/mris_thickness_diff.cpp b/mris_thickness_diff/mris_thickness_diff.cpp index 445804b4afb..5017762a199 100644 --- a/mris_thickness_diff/mris_thickness_diff.cpp +++ b/mris_thickness_diff/mris_thickness_diff.cpp @@ -62,8 +62,6 @@ static void jacobi(float **a, int n, float *d, float** v,int * nrot); static char *log_fname = NULL ; static char *subject_name = NULL ; -static char vcid[] = - "$Id: mris_thickness_diff.c,v 1.16 2011/03/02 00:04:34 nicks Exp $"; int main(int argc, char *argv[]) ; @@ -696,7 +694,7 @@ static void print_usage(void) fprintf(stdout, " -S %%s subject name \n"); fprintf(stdout, " --help more help \n"); fprintf(stdout, "\n"); - printf("%s\n", vcid) ; + std::cout << getVersion() << std::endl; printf("\n"); } @@ -794,7 +792,7 @@ static void print_help(void) /* --------------------------------------------- */ static void print_version(void) { - fprintf(stdout, "%s\n", vcid) ; + fprintf(stdout, "%s\n", getVersion().c_str()) ; exit(1) ; } diff --git a/mris_topo_fixer/mris_topo_fixer.cpp b/mris_topo_fixer/mris_topo_fixer.cpp index 855dfb21550..5c13c713603 100644 --- a/mris_topo_fixer/mris_topo_fixer.cpp +++ b/mris_topo_fixer/mris_topo_fixer.cpp @@ -178,8 +178,8 @@ int main(int argc, char *argv[]) { print_parameters(); - printf("%s\n",vcid); - printf(" %s\n",MRISurfSrcVersion()); + printf("%s\n",getVersion().c_str()); + printf(" %s\n",getVersion().c_str()); fflush(stdout); */ then.reset() ; diff --git a/mris_transform/mris_transform.cpp b/mris_transform/mris_transform.cpp index 44cb0137911..760c2eeb09d 100644 --- a/mris_transform/mris_transform.cpp +++ b/mris_transform/mris_transform.cpp @@ -28,7 +28,6 @@ #include "transform.h" #include "version.h" -static char vcid[] = "$Id: mris_transform.c,v 1.8 2011/03/02 00:04:34 nicks Exp $"; int main(int argc, char *argv[]) ; @@ -189,7 +188,7 @@ print_usage_exit(void) { static void print_version_exit(void) { - fprintf(stderr, "%s\n", vcid) ; + fprintf(stderr, "%s\n", getVersion().c_str()) ; exit(EXIT_SUCCESS) ; } diff --git a/mris_translate_annotation/mris_translate_annotation.cpp b/mris_translate_annotation/mris_translate_annotation.cpp index de840c9ee93..7fe55148e10 100644 --- a/mris_translate_annotation/mris_translate_annotation.cpp +++ b/mris_translate_annotation/mris_translate_annotation.cpp @@ -28,7 +28,6 @@ #include "macros.h" #include "version.h" -static char vcid[] = "$Id: mris_translate_annotation.c,v 1.5 2011/03/02 00:04:34 nicks Exp $"; int main(int argc, char *argv[]) ; @@ -160,7 +159,7 @@ print_help(void) { static void print_version(void) { - fprintf(stderr, "%s\n", vcid) ; + fprintf(stderr, "%s\n", getVersion().c_str()) ; exit(1) ; } diff --git a/mris_warp/mris_warp.cpp b/mris_warp/mris_warp.cpp index 7b99a0eec8c..f867d4b9389 100644 --- a/mris_warp/mris_warp.cpp +++ b/mris_warp/mris_warp.cpp @@ -25,6 +25,7 @@ #include // nint +#include "version.h" #include "macros.h" #include "error.h" @@ -58,8 +59,6 @@ MATRIX* mris_warp__TkReg2vox(MRI_SURFACE *); static int debug = 0; -static char vcid[] = - "$Id: mris_warp.c,v 1.3 2012/02/29 15:59:46 nicks Exp $"; static char *hemi = NULL; @@ -659,7 +658,7 @@ static void print_usage(void) printf(" --help print out information on how to use this program\n"); printf(" --version print out version and exit\n"); printf("\n"); - printf("%s\n", vcid) ; + std::cout << getVersion() << std::endl; printf("\n"); } @@ -678,7 +677,7 @@ static void print_help(void) /* --------------------------------------------- */ static void print_version(void) { - printf("%s\n", vcid) ; + std::cout << getVersion() << std::endl; exit(1) ; } diff --git a/mris_watershed/mris_watershed.cpp b/mris_watershed/mris_watershed.cpp index 1e282c97ef4..46ee9add00b 100644 --- a/mris_watershed/mris_watershed.cpp +++ b/mris_watershed/mris_watershed.cpp @@ -30,7 +30,6 @@ S. Beucher and F. Meyer introduced an algorithmic inter-pixel implementation of #include "colortab.h" #include "fsinit.h" -static char vcid[] = "$Id: mris_watershed.c,v 1.23 2013/03/27 01:53:50 fischl Exp $"; const char *Progname ; int main(int argc, char *argv[]) ; @@ -159,7 +158,7 @@ print_help(void) { static void print_version(void) { - fprintf(stderr, "%s\n", vcid) ; + fprintf(stderr, "%s\n", getVersion().c_str()) ; exit(1) ; } static int diff --git a/mrisp_paint/mrisp_paint.cpp b/mrisp_paint/mrisp_paint.cpp index 5b01ee67030..8e02a1edf80 100644 --- a/mrisp_paint/mrisp_paint.cpp +++ b/mrisp_paint/mrisp_paint.cpp @@ -32,7 +32,6 @@ #include "macros.h" #include "version.h" -static char vcid[] = "$Id: mrisp_paint.c,v 1.12 2016/03/22 14:47:57 fischl Exp $"; int main(int argc, char *argv[]) ; @@ -376,7 +375,7 @@ print_help(void) static void print_version(void) { - fprintf(stderr, "%s\n", vcid) ; + fprintf(stderr, "%s\n", getVersion().c_str()) ; exit(1) ; } diff --git a/mrisp_write/mrisp_write.cpp b/mrisp_write/mrisp_write.cpp index 2c9b781f039..a4c4810f9d0 100644 --- a/mrisp_write/mrisp_write.cpp +++ b/mrisp_write/mrisp_write.cpp @@ -36,7 +36,6 @@ #include "fsinit.h" #include "mri2.h" -static char vcid[] = "$Id: mrisp_write.c,v 1.12 2016/03/22 14:47:57 fischl Exp $"; int main(int argc, char *argv[]) ; @@ -505,7 +504,7 @@ print_help(void) static void print_version(void) { - fprintf(stderr, "%s\n", vcid) ; + fprintf(stderr, "%s\n", getVersion().c_str()) ; exit(1) ; } diff --git a/optseq2/optseq2.cpp b/optseq2/optseq2.cpp index 8540d868617..5439680090b 100644 --- a/optseq2/optseq2.cpp +++ b/optseq2/optseq2.cpp @@ -71,7 +71,6 @@ Can something be done to affect the off-diagonals? #undef X #endif -static char vcid[] = "$Id: optseq2.c,v 2.22 2011/04/21 19:48:51 greve Exp $"; const char *Progname = NULL; static int parse_commandline(int argc, char **argv); @@ -899,7 +898,7 @@ static void print_usage(void) { printf(" --version : print version string \n"); printf("\n"); - printf("%s\n",vcid); + printf("%s\n",getVersion().c_str()); printf("\n"); printf("\n"); printf("Optseq Home Page: \n" @@ -1366,7 +1365,7 @@ static void print_help(void) { } /* --------------------------------------------- */ static void print_version(void) { - printf("%s\n", vcid) ; + std::cout << getVersion() << std::endl; exit(1) ; } /* --------------------------------------------- */ @@ -1512,7 +1511,7 @@ static void dump_options(FILE *fp) { int n; fprintf(fp,"optseq2\n"); - fprintf(fp,"%s\n",vcid); + fprintf(fp,"%s\n", getVersion().c_str()); fprintf(fp,"NoSearch = %d\n",NoSearch); if (nSearch > 0) fprintf(fp,"nSearch = %d\n",nSearch); if (tSearch > 0) fprintf(fp,"tSearch = %g hours\n",tSearch); diff --git a/packages/netcdf/attr.c b/packages/netcdf/attr.c index 300fc200011..7dd2e7021ce 100644 --- a/packages/netcdf/attr.c +++ b/packages/netcdf/attr.c @@ -3,7 +3,6 @@ * Copyright 1996, University Corporation for Atmospheric Research * See netcdf/COPYRIGHT file for copying and redistribution conditions. */ -/* $Id: attr.m4,v 2.22 2002/06/20 14:40:57 steve Exp $ */ #include "nc.h" #include diff --git a/packages/netcdf/dim.c b/packages/netcdf/dim.c index 6e1b4194f0e..cea8c5d6169 100644 --- a/packages/netcdf/dim.c +++ b/packages/netcdf/dim.c @@ -2,7 +2,6 @@ * Copyright 1996, University Corporation for Atmospheric Research * See netcdf/COPYRIGHT file for copying and redistribution conditions. */ -/* $Id: dim.c,v 1.74 2004/07/29 05:25:00 russ Exp $ */ #include "nc.h" #include diff --git a/packages/netcdf/error.c b/packages/netcdf/error.c index 4c7b73185c6..614210a446f 100644 --- a/packages/netcdf/error.c +++ b/packages/netcdf/error.c @@ -2,7 +2,6 @@ * Copyright 1993, University Corporation for Atmospheric Research * See netcdf/COPYRIGHT file for copying and redistribution conditions. */ -/* $Id: error.c,v 1.14 90/02/23 16:08:55 davis Exp */ /*LINTLIBRARY*/ diff --git a/packages/netcdf/fbits.h b/packages/netcdf/fbits.h index ef61b0cf5ec..df47bd39fe0 100644 --- a/packages/netcdf/fbits.h +++ b/packages/netcdf/fbits.h @@ -2,7 +2,6 @@ * Copyright 1995, University Corporation for Atmospheric Research * See top level COPYRIGHT file for copying and redistribution conditions. */ -/* $Id: fbits.h,v 1.2 1995/05/26 20:46:46 davis Exp $ */ #ifndef _FBITS_H_ #define _FBITS_H_ diff --git a/packages/netcdf/libvers.c b/packages/netcdf/libvers.c index a589e4ae7b8..262ee4d0598 100644 --- a/packages/netcdf/libvers.c +++ b/packages/netcdf/libvers.c @@ -2,7 +2,6 @@ * Copyright 1996, University Corporation for Atmospheric Research * See netcdf/COPYRIGHT file for copying and redistribution conditions. */ -/* $Id: libvers.c,v 2.6 1999/11/02 16:49:30 steve Exp $ */ #include "netcdf.h" diff --git a/packages/netcdf/nc.c b/packages/netcdf/nc.c index aba1ba15a52..ee055644864 100644 --- a/packages/netcdf/nc.c +++ b/packages/netcdf/nc.c @@ -2,7 +2,6 @@ * Copyright 1996, University Corporation for Atmospheric Research * See netcdf/COPYRIGHT file for copying and redistribution conditions. */ -/* $Id: nc.c,v 2.135 2004/09/30 18:47:12 russ Exp $ */ #include "nc.h" #include "rnd.h" diff --git a/packages/netcdf/nc.h b/packages/netcdf/nc.h index 83790132bdf..a61c1468dda 100644 --- a/packages/netcdf/nc.h +++ b/packages/netcdf/nc.h @@ -2,7 +2,7 @@ * Copyright 1996, University Corporation for Atmospheric Research * See netcdf/COPYRIGHT file for copying and redistribution conditions. */ -/* $Id: nc.h,v 2.75 2004/09/16 21:16:24 russ Exp $ */ + #ifndef _NC_H_ #define _NC_H_ diff --git a/packages/netcdf/ncconfig.h b/packages/netcdf/ncconfig.h index 471c69d1f68..220a901be59 100644 --- a/packages/netcdf/ncconfig.h +++ b/packages/netcdf/ncconfig.h @@ -1,6 +1,6 @@ /* libsrc/ncconfig.h. Generated by configure. */ /* libsrc/ncconfig.in. Generated automatically from configure.in by autoheader. */ -/* $Id: ncconfig.in,v 1.25 2004/08/17 14:47:32 ed Exp $ */ + #ifndef _NCCONFIG_H_ #define _NCCONFIG_H_ diff --git a/packages/netcdf/ncio.h b/packages/netcdf/ncio.h index f619156a0c2..c5becb2c54a 100644 --- a/packages/netcdf/ncio.h +++ b/packages/netcdf/ncio.h @@ -2,7 +2,6 @@ * Copyright 1996, University Corporation for Atmospheric Research * See netcdf/COPYRIGHT file for copying and redistribution conditions. */ -/* $Id: ncio.h,v 1.23 1997/10/06 20:12:15 davis Exp $ */ #ifndef _NCIO_H_ #define _NCIO_H_ diff --git a/packages/netcdf/ncx.c b/packages/netcdf/ncx.c index 4f48d53f8bc..95a4c4b9672 100644 --- a/packages/netcdf/ncx.c +++ b/packages/netcdf/ncx.c @@ -21,7 +21,6 @@ * they handle IEEE subnormals properly, and their "n" versions * operate speedily on arrays. */ -/* $Id: ncx.m4,v 2.47 2004/09/30 18:47:12 russ Exp $ */ /* * An external data representation interface. diff --git a/packages/netcdf/ncx.h b/packages/netcdf/ncx.h index 22011d59cd9..9d4f543d968 100644 --- a/packages/netcdf/ncx.h +++ b/packages/netcdf/ncx.h @@ -2,7 +2,6 @@ * Copyright 1996, University Corporation for Atmospheric Research * See netcdf/COPYRIGHT file for copying and redistribution conditions. */ -/* "$Id: ncx.h,v 1.56 2004/09/14 13:41:22 ed Exp $" */ #ifndef _NCX_H_ #define _NCX_H_ diff --git a/packages/netcdf/netcdf.h b/packages/netcdf/netcdf.h index 15b158141b6..33568a9dcb3 100644 --- a/packages/netcdf/netcdf.h +++ b/packages/netcdf/netcdf.h @@ -30,7 +30,6 @@ * NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION * WITH THE ACCESS, USE OR PERFORMANCE OF THIS SOFTWARE. */ -/* "$Id: netcdf.h,v 2.84 2004/09/14 13:41:22 ed Exp $" */ #ifndef _NETCDF_ #define _NETCDF_ diff --git a/packages/netcdf/onstack.h b/packages/netcdf/onstack.h index 66946bf96fa..da70b467ae2 100644 --- a/packages/netcdf/onstack.h +++ b/packages/netcdf/onstack.h @@ -2,7 +2,6 @@ * Copyright 1997, University Corporation for Atmospheric Research * See netcdf/COPYRIGHT file for copying and redistribution conditions. */ -/* $Id: onstack.h,v 2.6 1997/12/18 20:11:01 davis Exp $ */ #ifndef _ONSTACK_H_ #define _ONSTACK_H_ diff --git a/packages/netcdf/posixio.c b/packages/netcdf/posixio.c index 4a40cf6afab..01620382e90 100644 --- a/packages/netcdf/posixio.c +++ b/packages/netcdf/posixio.c @@ -2,7 +2,6 @@ * Copyright 1996, University Corporation for Atmospheric Research * See netcdf/COPYRIGHT file for copying and redistribution conditions. */ -/* $Id: posixio.c,v 1.74 2004/10/04 17:41:38 russ Exp $ */ #ifdef WIN32 #include diff --git a/packages/netcdf/putget.c b/packages/netcdf/putget.c index d17dd45cd7d..40552af5324 100644 --- a/packages/netcdf/putget.c +++ b/packages/netcdf/putget.c @@ -3,7 +3,6 @@ * Copyright 1996, University Corporation for Atmospheric Research * See netcdf/COPYRIGHT file for copying and redistribution conditions. */ -/* $Id: putget.m4,v 2.52 2004/11/09 20:05:27 russ Exp $ */ #include "nc.h" #include diff --git a/packages/netcdf/rnd.h b/packages/netcdf/rnd.h index 4021a4d3225..7e31436c899 100644 --- a/packages/netcdf/rnd.h +++ b/packages/netcdf/rnd.h @@ -2,7 +2,7 @@ * Copyright 1996, University Corporation for Atmospheric Research * See netcdf/COPYRIGHT file for copying and redistribution conditions. */ -/* $Id: rnd.h,v 2.13 1996/12/11 05:46:54 davis Exp $ */ + #ifndef _RNDUP /* useful for aligning memory */ diff --git a/packages/netcdf/string.c b/packages/netcdf/string.c index 60fd83b3258..b2f6d548373 100644 --- a/packages/netcdf/string.c +++ b/packages/netcdf/string.c @@ -2,7 +2,6 @@ * Copyright 1996, University Corporation for Atmospheric Research * See netcdf/COPYRIGHT file for copying and redistribution conditions. */ -/* $Id: string.c,v 1.60 2004/10/04 17:41:38 russ Exp $ */ #include "nc.h" #include diff --git a/packages/netcdf/v1hpg.c b/packages/netcdf/v1hpg.c index d2a907ee26f..a759bbbd84d 100644 --- a/packages/netcdf/v1hpg.c +++ b/packages/netcdf/v1hpg.c @@ -2,7 +2,6 @@ * Copyright 1996, University Corporation for Atmospheric Research * See netcdf/COPYRIGHT file for copying and redistribution conditions. */ -/* $Id: v1hpg.c,v 1.57 2005/02/15 23:06:56 russ Exp $ */ #include "nc.h" #include diff --git a/packages/netcdf/v2i.c b/packages/netcdf/v2i.c index c35c3a03b00..6581654cabd 100644 --- a/packages/netcdf/v2i.c +++ b/packages/netcdf/v2i.c @@ -2,7 +2,6 @@ * Copyright 1996, University Corporation for Atmospheric Research * See netcdf/COPYRIGHT file for copying and redistribution conditions. */ -/* $Id: v2i.c,v 1.28 2004/09/14 13:41:23 ed Exp $ */ #include "nc.h" diff --git a/packages/netcdf/var.c b/packages/netcdf/var.c index 95bcecb369d..8312348489f 100644 --- a/packages/netcdf/var.c +++ b/packages/netcdf/var.c @@ -2,7 +2,6 @@ * Copyright 1996, University Corporation for Atmospheric Research * See netcdf/COPYRIGHT file for copying and redistribution conditions. */ -/* $Id: var.c,v 1.128 2004/09/30 18:47:12 russ Exp $ */ #include "nc.h" #include diff --git a/packages/tiff/t4.h b/packages/tiff/t4.h index 10bb17a5cb5..c61443d6469 100644 --- a/packages/tiff/t4.h +++ b/packages/tiff/t4.h @@ -1,5 +1,3 @@ -/* $Id: t4.h,v 1.1.1.1 1999/07/27 21:50:27 mike Exp $ */ - /* * Copyright (c) 1988-1997 Sam Leffler * Copyright (c) 1991-1997 Silicon Graphics, Inc. diff --git a/packages/tiff/tif_fax3.h b/packages/tiff/tif_fax3.h index 84add1e3e30..3a8a3a95530 100644 --- a/packages/tiff/tif_fax3.h +++ b/packages/tiff/tif_fax3.h @@ -1,5 +1,3 @@ -/* $Id: tif_fax3.h,v 1.4 2000/12/01 15:46:46 warmerda Exp $ */ - /* * Copyright (c) 1990-1997 Sam Leffler * Copyright (c) 1991-1997 Silicon Graphics, Inc. diff --git a/samseg/CMakeLists.txt b/samseg/CMakeLists.txt index 1a1490d9b25..f26c3cf0626 100644 --- a/samseg/CMakeLists.txt +++ b/samseg/CMakeLists.txt @@ -1,4 +1,4 @@ project(samseg) -install(PROGRAMS samseg samseg-long DESTINATION bin) +install_configured(samseg samseg-long DESTINATION bin) install_pyscript(run_samseg run_samseg_long sbtiv) diff --git a/samseg/samseg b/samseg/samseg index 7778df220ad..2e6ed4c9065 100755 --- a/samseg/samseg +++ b/samseg/samseg @@ -1,7 +1,7 @@ #!/bin/tcsh -f # samseg -set VERSION = '$Id: samseg Exp $'; +set VERSION = 'samseg @FS_VERSION@'; set outdir = (); set subject = (); diff --git a/samseg/samseg-long b/samseg/samseg-long index c89a7e40169..0c956bf29e3 100755 --- a/samseg/samseg-long +++ b/samseg/samseg-long @@ -4,7 +4,7 @@ if(-e $FREESURFER_HOME/sources.csh) then source $FREESURFER_HOME/sources.csh endif -set VERSION = '$Id$'; +set VERSION = 'samseg-long @FS_VERSION@'; set scriptname = `basename $0` set outdir = (); diff --git a/scripts/CMakeLists.txt b/scripts/CMakeLists.txt index 170e0d442fb..4508bcbec2e 100644 --- a/scripts/CMakeLists.txt +++ b/scripts/CMakeLists.txt @@ -1,4 +1,4 @@ -install(PROGRAMS +install_configured( annot2std aparc2feat aparc_stats_aseg @@ -181,6 +181,7 @@ install(PROGRAMS rebuild_gca_atlas.csh rca-base-init rca-long-tp-init + recon-all recon-all-exvivo recon-all.makefile reconbatchjobs @@ -271,11 +272,6 @@ install(PROGRAMS DESTINATION bin ) -install_configured( - recon-all - DESTINATION bin -) - install_pyscript( long_submit_jobs long_qdec_table diff --git a/scripts/IsLTA b/scripts/IsLTA index 614ab4cf019..8fe2e9604b3 100755 --- a/scripts/IsLTA +++ b/scripts/IsLTA @@ -1,7 +1,7 @@ #!/bin/tcsh -f # IsLTA -set VERSION = '$Id: IsLTA,v 1.2 2016/02/16 17:17:20 zkaufman Exp $'; +set VERSION = 'IsLTA @FS_VERSION@'; set regfile = (); set outfile = (); diff --git a/scripts/UpdateNeeded b/scripts/UpdateNeeded index 4363e3d7fa8..8dd4f7b365a 100755 --- a/scripts/UpdateNeeded +++ b/scripts/UpdateNeeded @@ -4,7 +4,6 @@ # echoess 1 if TargetFile does not exist or is older than any of the # sources files. If a source does not exist, then it echoes 1 and # exists with 1. -# $Id: UpdateNeeded,v 1.1 2010/04/01 19:21:16 greve Exp $ if($#argv < 2) then echo "UpdateNeeded TargetFile SourceFile " diff --git a/scripts/annot2std b/scripts/annot2std index eb64e8ce342..6d4b6444ccd 100755 --- a/scripts/annot2std +++ b/scripts/annot2std @@ -19,7 +19,7 @@ # -set VERSION = '$Id: annot2std,v 1.5 2016/06/13 18:00:34 greve Exp $'; +set VERSION = 'annot2std @FS_VERSION@'; set target = (); set subjlist = (); diff --git a/scripts/aparc2feat b/scripts/aparc2feat index 7e8d2c2ee03..13ba69998f3 100755 --- a/scripts/aparc2feat +++ b/scripts/aparc2feat @@ -21,7 +21,7 @@ # aparc2feat # -set VERSION = '$Id: aparc2feat,v 1.11 2016/02/12 21:43:14 zkaufman Exp $'; +set VERSION = 'aparc2feat @FS_VERSION@'; set FeatDirList = (); set HemiList = (rh lh) set debug = 0; diff --git a/scripts/aparcstats2table b/scripts/aparcstats2table index 7d731198da4..d44b0ad5c1f 100755 --- a/scripts/aparcstats2table +++ b/scripts/aparcstats2table @@ -14,7 +14,6 @@ from freesurfer.utils.legacy import AparcStatsParser, BadFileError, aparclogger # Original Version - Douglas Greve, MGH # Rewrite - Krish Subramaniam, MGH -# $Id: aparcstats2table,v 1.28 2015/11/24 17:55:49 mreuter Exp $ # globals l = aparclogger @@ -93,7 +92,7 @@ def options_parse(): Command Line Options Parser for aparcstats2table initiate the option parser and return the parsed object """ - parser = optparse.OptionParser(version='$Id: aparcstats2table,v 1.28 2015/11/24 17:55:49 mreuter Exp $', usage=HELPTEXT) + parser = optparse.OptionParser(usage=HELPTEXT) # help text h_sub = '(REQUIRED) subject1 ' diff --git a/scripts/apas2aseg b/scripts/apas2aseg index d73379dd43c..dc229d90220 100755 --- a/scripts/apas2aseg +++ b/scripts/apas2aseg @@ -1,7 +1,7 @@ #!/bin/tcsh -f # apas2aseg -set VERSION = '$Id: apas2aseg,v 1.2 2016/02/12 21:43:14 zkaufman Exp $'; +set VERSION = 'apas2aseg @FS_VERSION@'; set outdir = (); set subject = (); diff --git a/scripts/aseg2feat b/scripts/aseg2feat index c3dacf3490f..8b2438c54a2 100755 --- a/scripts/aseg2feat +++ b/scripts/aseg2feat @@ -21,7 +21,7 @@ # aseg2feat # -set VERSION = '$Id: aseg2feat,v 1.18 2016/02/12 21:43:14 zkaufman Exp $'; +set VERSION = 'aseg2feat @FS_VERSION@'; set FeatDirList = (); set debug = 0; set usedev = 0; diff --git a/scripts/asegstats2table b/scripts/asegstats2table index 19a0ba4e31b..9deda18af76 100755 --- a/scripts/asegstats2table +++ b/scripts/asegstats2table @@ -14,7 +14,6 @@ from freesurfer.utils.legacy import AsegStatsParser, BadFileError, aseglogger # Original Version - Douglas Greve, MGH # Rewrite - Krish Subramaniam, MGH -# $Id: asegstats2table,v 1.41 2015/11/24 17:55:49 mreuter Exp $ # globals l = aseglogger @@ -113,7 +112,7 @@ def options_parse(): Command Line Options Parser for asegstats2table initiate the option parser and return the parsed object """ - parser = optparse.OptionParser(version='$Id: asegstats2table,v 1.41 2015/11/24 17:55:49 mreuter Exp $', usage=HELPTEXT) + parser = optparse.OptionParser(usage=HELPTEXT) # help text h_sub = '(REQUIRED) subject1 ' diff --git a/scripts/avg-surf-label b/scripts/avg-surf-label index 786a9990b5c..7b239c4ee72 100755 --- a/scripts/avg-surf-label +++ b/scripts/avg-surf-label @@ -20,7 +20,7 @@ # avg-surf-label # -set VERSION = '$Id: avg-surf-label,v 1.7 2016/02/12 21:43:14 zkaufman Exp $'; +set VERSION = 'avg-surf-label @FS_VERSION@'; set inputargs = ($argv); set PrintHelp = 0; diff --git a/scripts/bblabel b/scripts/bblabel index 6fa2a5246e7..07339b3afc8 100755 --- a/scripts/bblabel +++ b/scripts/bblabel @@ -19,7 +19,7 @@ # -set VERSION = '$Id: bblabel,v 1.9 2016/02/12 21:43:14 zkaufman Exp $'; +set VERSION = 'bblabel @FS_VERSION@'; set cmdargs = ($argv); set PrintHelp = 0; diff --git a/scripts/bbmask b/scripts/bbmask index 9d96dafdff1..3fd021ec6dc 100755 --- a/scripts/bbmask +++ b/scripts/bbmask @@ -1,7 +1,7 @@ #!/bin/tcsh -f # bbmask -set VERSION = '$Id: bbmask,v 1.4 2016/02/12 21:43:14 zkaufman Exp $'; +set VERSION = 'bbmask @FS_VERSION@'; set inmask = (); set outmask = (); diff --git a/scripts/bbregister b/scripts/bbregister index 33e2d7975e1..c41e42f69ad 100755 --- a/scripts/bbregister +++ b/scripts/bbregister @@ -18,7 +18,7 @@ # # -set VERSION = '$Id: bbregister,v 1.75 2016/05/10 20:02:28 greve Exp $'; +set VERSION = 'bbregister @FS_VERSION@'; set inputargs = ($argv); set subject = (); diff --git a/scripts/beta2sxa b/scripts/beta2sxa index 97ca2ffca7a..ddb31a9717b 100755 --- a/scripts/beta2sxa +++ b/scripts/beta2sxa @@ -1,7 +1,7 @@ #!/bin/tcsh -f # thalseg -set VERSION = '$Id: beta2sxa,v 1.3 2016/02/12 21:43:14 zkaufman Exp $'; +set VERSION = 'beta2sxa @FS_VERSION@'; set sxa = (); set betalist = (); diff --git a/scripts/biasfield b/scripts/biasfield index a21ca360901..6a28e6ff308 100755 --- a/scripts/biasfield +++ b/scripts/biasfield @@ -21,7 +21,7 @@ # # -set VERSION = '$Id: biasfield,v 1.7 2016/02/12 21:43:14 zkaufman Exp $'; +set VERSION = 'biasfield @FS_VERSION@'; set PrintHelp = 0; set subject = (); diff --git a/scripts/birn-glm-demo b/scripts/birn-glm-demo index 50754f14102..5e45d40b938 100755 --- a/scripts/birn-glm-demo +++ b/scripts/birn-glm-demo @@ -19,7 +19,7 @@ # birn-glm-demo -set VERSION = '$Id: birn-glm-demo,v 1.9 2016/02/16 17:17:20 zkaufman Exp $'; +set VERSION = 'birn-glm-demo @FS_VERSION@'; set inputargs = ($argv); diff --git a/scripts/bmedits2surf b/scripts/bmedits2surf index a0035d5e9ab..69cf2b039d2 100755 --- a/scripts/bmedits2surf +++ b/scripts/bmedits2surf @@ -1,7 +1,7 @@ #!/bin/tcsh -f # bmedits2surf -set VERSION = '$Id: bmedits2surf,v 1.4 2016/02/12 21:43:14 zkaufman Exp $'; +set VERSION = 'bmedits2surf @FS_VERSION@'; set subject = (); set hemilist = (lh rh); diff --git a/scripts/bugr b/scripts/bugr index e30b3729954..cdb86523641 100755 --- a/scripts/bugr +++ b/scripts/bugr @@ -20,7 +20,7 @@ # # -set VERSION = '$Id: bugr,v 1.4 2011/03/02 20:16:38 nicks Exp $'; +set VERSION = 'bugr @FS_VERSION@'; echo "" echo "Cut-and-paste the following info into your FreeSurfer problem report:" diff --git a/scripts/cblumwmgyri b/scripts/cblumwmgyri index 65bfccc57ff..11725c4bd2f 100755 --- a/scripts/cblumwmgyri +++ b/scripts/cblumwmgyri @@ -1,7 +1,7 @@ #!/bin/tcsh -f # cblumwmgyri -set VERSION = '$Id: cblumwmgyri,v 1.4 2016/02/12 21:43:14 zkaufman Exp $'; +set VERSION = 'cblumwmgyri @FS_VERSION@'; set subject = (); set seg = aparc+aseg.mgz diff --git a/scripts/compute_interrater_variability.csh b/scripts/compute_interrater_variability.csh index a4b341f0aa8..304bd6e6532 100644 --- a/scripts/compute_interrater_variability.csh +++ b/scripts/compute_interrater_variability.csh @@ -15,7 +15,7 @@ set LOI = -1 set outputprefix = () set inputargs = ($argv); -set VERSION = '$Id: compute_interrater_variability.csh,v 1.3 2016/02/12 21:43:14 zkaufman Exp $'; +set VERSION = 'compute_interrater_variability.csh @FS_VERSION@'; if($#argv == 0) goto usage_exit; set n = `echo $argv | egrep -e --version | wc -l` diff --git a/scripts/compute_label_volumes.csh b/scripts/compute_label_volumes.csh index 6e8bd1e880b..f0693bc5007 100755 --- a/scripts/compute_label_volumes.csh +++ b/scripts/compute_label_volumes.csh @@ -18,7 +18,7 @@ set outputfile = () set fscolor = $FREESURFER_HOME/FreeSurferColorLUT.txt set inputargs = ($argv); -set VERSION = '$Id: compute_label_volumes.csh,v 1.3 2016/02/12 21:43:14 zkaufman Exp $'; +set VERSION = 'compute_label_volumes.csh @FS_VERSION@'; if($#argv == 0) goto usage_exit; set n = `echo $argv | egrep -e --version | wc -l` diff --git a/scripts/conf2hires b/scripts/conf2hires index 697b1d8fa20..d86ba32fc1a 100755 --- a/scripts/conf2hires +++ b/scripts/conf2hires @@ -4,7 +4,7 @@ if(-e $FREESURFER_HOME/sources.csh) then source $FREESURFER_HOME/sources.csh endif -set VERSION = '$Id$'; +set VERSION = 'conf2hires @FS_VERSION@'; set scriptname = `basename $0` set subject = (); diff --git a/scripts/cp-dicom b/scripts/cp-dicom index 332670d354b..7c149854ff6 100755 --- a/scripts/cp-dicom +++ b/scripts/cp-dicom @@ -19,7 +19,7 @@ # -set VERSION = '$Id: cp-dicom,v 1.6 2016/02/12 21:43:14 zkaufman Exp $'; +set VERSION = 'cp-dicom @FS_VERSION@'; set inputargs = ($argv); set dcmdir = (); diff --git a/scripts/dcmdir-info-mgh b/scripts/dcmdir-info-mgh index 0bc44d023c6..fe02a2f181f 100755 --- a/scripts/dcmdir-info-mgh +++ b/scripts/dcmdir-info-mgh @@ -17,7 +17,7 @@ # # -set VERSION = '$Id: dcmdir-info-mgh,v 1.16 2016/02/12 21:43:14 zkaufman Exp $'; +set VERSION = 'dcmdir-info-mgh @FS_VERSION@'; set dcmdir = (); set unpackdir = (); diff --git a/scripts/dcmsplit b/scripts/dcmsplit index 344edbba363..fadf982148e 100755 --- a/scripts/dcmsplit +++ b/scripts/dcmsplit @@ -5,7 +5,7 @@ if(-e $FREESURFER_HOME/sources.csh) then source $FREESURFER_HOME/sources.csh endif -set VERSION = '$Id$'; +set VERSION = 'dcmsplit @FS_VERSION@'; set scriptname = `basename $0` set outdir = (); diff --git a/scripts/dcmunpack b/scripts/dcmunpack index ad44b642e55..6838f5f3f89 100755 --- a/scripts/dcmunpack +++ b/scripts/dcmunpack @@ -2,7 +2,7 @@ # dcmunpack # -set VERSION = '$Id: dcmunpack,v 1.21 2017/01/30 23:39:21 greve Exp $'; +set VERSION = 'dcmunpack @FS_VERSION@'; set SeriesInfo = (); diff --git a/scripts/defect-seg b/scripts/defect-seg index 8b79b7ff1fc..5bc3b048900 100755 --- a/scripts/defect-seg +++ b/scripts/defect-seg @@ -3,7 +3,7 @@ # Creates segmentations and annotations for defect visualization -set VERSION = '$Id: defect-seg,v 1.7 2017/01/23 18:24:09 greve Exp $'; +set VERSION = 'defect-seg @FS_VERSION@'; set subject = (); set PrintHelp = 0; diff --git a/scripts/defect2seg b/scripts/defect2seg index 17068fa1a0e..b8fae4de566 100755 --- a/scripts/defect2seg +++ b/scripts/defect2seg @@ -4,7 +4,7 @@ if(-e $FREESURFER_HOME/sources.csh) then source $FREESURFER_HOME/sources.csh endif -set VERSION = '$Id$'; +set VERSION = 'defect2seg @FS_VERSION@'; set scriptname = `basename $0` set subject = (); diff --git a/scripts/dicom-rename b/scripts/dicom-rename index 0dcfdedf075..dd8583e4e2f 100755 --- a/scripts/dicom-rename +++ b/scripts/dicom-rename @@ -18,7 +18,7 @@ # -set VERSION = '$Id: dicom-rename,v 1.6 2016/02/12 21:43:14 zkaufman Exp $'; +set VERSION = 'dicom-rename @FS_VERSION@'; set inputargs = ($argv); set PrintHelp = 0; diff --git a/scripts/dsh b/scripts/dsh index ed6799c1776..637f83b11ef 100755 --- a/scripts/dsh +++ b/scripts/dsh @@ -255,7 +255,7 @@ G_SYNOPSIS = """ """ Gstr_SELF = sys.argv[0] -Gstr_VERSION = "$Id: dsh,v 1.7 2011/12/06 22:47:29 rudolph Exp $" +Gstr_VERSION = "DSH v1.7 2011" G_dieNow = 0 class dijkResultLogHandler(SocketServer.BaseRequestHandler) : diff --git a/scripts/dt_recon b/scripts/dt_recon index acff32408d2..aa7db214b24 100755 --- a/scripts/dt_recon +++ b/scripts/dt_recon @@ -2,7 +2,7 @@ # umask 002; -set VERSION = '$Id: dt_recon,v 1.23 2015/12/09 20:02:53 zkaufman Exp $'; +set VERSION = 'dt_recon @FS_VERSION@'; set ProgName = `basename $0`; set inputargs = ($argv); diff --git a/scripts/epidewarp.fsl b/scripts/epidewarp.fsl index 0b333fcd482..97b04789d1d 100755 --- a/scripts/epidewarp.fsl +++ b/scripts/epidewarp.fsl @@ -22,7 +22,7 @@ # epidewarp.fsl # -set VERSION = '$Id: epidewarp.fsl,v 1.46 2016/02/12 21:43:14 zkaufman Exp $' +set VERSION = 'epidewarp.fsl @FS_VERSION@'; set inputargs = ($argv); set KeepMean = 0; diff --git a/scripts/feat2segstats b/scripts/feat2segstats index 0bebbcec672..dfafabb73e0 100755 --- a/scripts/feat2segstats +++ b/scripts/feat2segstats @@ -20,7 +20,7 @@ # -set VERSION = '$Id: feat2segstats,v 1.4 2016/02/12 21:43:14 zkaufman Exp $'; +set VERSION = 'feat2segstats @FS_VERSION@'; set FeatDirList = (); set seg = (); set ctab = (); diff --git a/scripts/feat2surf b/scripts/feat2surf index 094bb5949a3..65b9f60a5b3 100755 --- a/scripts/feat2surf +++ b/scripts/feat2surf @@ -20,7 +20,7 @@ # -set VERSION = '$Id: feat2surf,v 1.18 2016/02/12 21:43:15 zkaufman Exp $' +set VERSION = 'feat2surf @FS_VERSION@'; set FeatDirList = (); set ProjFrac = (); set HemiList = (lh rh); diff --git a/scripts/flirt.newdefault.20080811.sch b/scripts/flirt.newdefault.20080811.sch index cc019db7299..7e8d76b0b1b 100644 --- a/scripts/flirt.newdefault.20080811.sch +++ b/scripts/flirt.newdefault.20080811.sch @@ -10,7 +10,6 @@ # problem completely. I have now made this change in our code base # and it should get shipped with the next fsl release # -# $Id: flirt.newdefault.20080811.sch,v 1.1 2008/08/11 23:11:46 greve Exp $ # 8mm scale setscale 8 diff --git a/scripts/fname2ext b/scripts/fname2ext index 7c71d964fcd..2a4c42a67de 100755 --- a/scripts/fname2ext +++ b/scripts/fname2ext @@ -23,7 +23,7 @@ # -set VERSION = '$Id: fname2ext,v 1.2 2011/03/02 20:16:39 nicks Exp $'; +set VERSION = 'fname2ext @FS_VERSION@'; if($#argv != 1) then echo "fname2stem filename" diff --git a/scripts/fname2stem b/scripts/fname2stem index f530deea3e0..1efa1a6ac9a 100755 --- a/scripts/fname2stem +++ b/scripts/fname2stem @@ -23,7 +23,7 @@ # -set VERSION = '$Id: fname2stem,v 1.4 2011/03/02 20:16:39 nicks Exp $'; +set VERSION = 'fname2stem @FS_VERSION@'; if($#argv != 1) then echo "fname2stem filename" diff --git a/scripts/fs_lib_check b/scripts/fs_lib_check index 9178f83e4cb..f3be60b6230 100755 --- a/scripts/fs_lib_check +++ b/scripts/fs_lib_check @@ -17,7 +17,7 @@ # # -G_ID="$Id: fs_lib_check,v 1.6 2011/03/02 20:16:39 nicks Exp $" +G_ID='fs_lib_check @FS_VERSION@' G_SYNOPSIS=" NAME diff --git a/scripts/fs_time b/scripts/fs_time index bbd78e8dd79..a01d03f77fc 100755 --- a/scripts/fs_time +++ b/scripts/fs_time @@ -6,7 +6,7 @@ if($?FS_TIME_ALLOW == 0) then setenv FS_TIME_ALLOW 1 endif -set VERSION = '$Id: fs_time,v 1.11 2016/02/16 17:17:20 zkaufman Exp $'; +set VERSION = 'fs_time @FS_VERSION@'; set outfile = (); set key = ("@#@FSTIME "); diff --git a/scripts/fscalc b/scripts/fscalc index 112a5670452..1c4d887b061 100755 --- a/scripts/fscalc +++ b/scripts/fscalc @@ -1,7 +1,7 @@ #!/bin/tcsh -f # fscalc -set VERSION = '$Id: fscalc,v 1.13 2016/09/27 18:50:56 greve Exp $'; +set VERSION = 'fscalc @FS_VERSION@'; set outvol = (); set inops = (); diff --git a/scripts/fscalc.fsl b/scripts/fscalc.fsl index c88ba63b3b0..b3201bde119 100755 --- a/scripts/fscalc.fsl +++ b/scripts/fscalc.fsl @@ -8,7 +8,6 @@ # freesurfer writes. Can convert volume-encoded surface files with # --surf if nvertices is not prime. # -# $Id: fscalc.fsl,v 1.4 2009/05/14 22:02:18 greve Exp $ # # First determine whether a surface is part of the mix diff --git a/scripts/fsdcmdecompress b/scripts/fsdcmdecompress index 93e8f76afe7..aa2b1ca1974 100755 --- a/scripts/fsdcmdecompress +++ b/scripts/fsdcmdecompress @@ -4,7 +4,7 @@ if(-e $FREESURFER_HOME/sources.csh) then source $FREESURFER_HOME/sources.csh endif -set VERSION = '$Id: fsdcmdecompress,v 1.1 2016/03/03 19:37:13 greve Exp $'; +set VERSION = 'fsdcmdecompress @FS_VERSION@'; set infile = (); diff --git a/scripts/fsfget b/scripts/fsfget index 1198c7957eb..91287865801 100755 --- a/scripts/fsfget +++ b/scripts/fsfget @@ -1,6 +1,5 @@ #!/usr/bin/env tclsh -# $Id: fsfget,v 1.5 2011/03/02 20:16:39 nicks Exp $ # fsfget - extract params from fsl/feat design.fsf file # # Elements of the fmri() struct diff --git a/scripts/fsfirst.fsl b/scripts/fsfirst.fsl index 6fb77e28a30..3e588b0f202 100755 --- a/scripts/fsfirst.fsl +++ b/scripts/fsfirst.fsl @@ -7,7 +7,7 @@ endif set FSLSTD1mm = $FSLDIR/data/standard/MNI152_T1_1mm.nii.gz -set VERSION = '$Id$'; +set VERSION = 'fsfirst.fsl @FS_VERSION@'; set scriptname = `basename $0` setenv FSLOUTPUTTYPE NIFTI_GZ diff --git a/scripts/fsl.5.0.2.xyztrans.sch b/scripts/fsl.5.0.2.xyztrans.sch index 958165ec219..9063906ecd2 100755 --- a/scripts/fsl.5.0.2.xyztrans.sch +++ b/scripts/fsl.5.0.2.xyztrans.sch @@ -2,7 +2,6 @@ clear UT ## This is an FSL file. It is copied of xyztrans.sch from FSL version ## 5.0.2. It is used in fslregister -## $Id: fsl.5.0.2.xyztrans.sch,v 1.2 2013/08/08 20:51:24 greve Exp $ ## X TRANSLATION ## diff --git a/scripts/fsl_rigid_register b/scripts/fsl_rigid_register index 11c9fc8b524..251ea84f94b 100755 --- a/scripts/fsl_rigid_register +++ b/scripts/fsl_rigid_register @@ -22,7 +22,7 @@ # # -set VERSION = '$Id: fsl_rigid_register,v 1.33 2016/02/16 17:17:20 zkaufman Exp $'; +set VERSION = 'fsl_rigid_register @FS_VERSION@'; setenv FSLOUTPUTTYPE NIFTI diff --git a/scripts/fslregister b/scripts/fslregister index e3b15efc3fb..0f9e6e257ff 100755 --- a/scripts/fslregister +++ b/scripts/fslregister @@ -20,7 +20,7 @@ # # -set VERSION = '$Id: fslregister,v 1.40 2016/02/12 21:43:15 zkaufman Exp $'; +set VERSION = 'fslregister @FS_VERSION@'; set inputargs = ($argv); set subjid = (); diff --git a/scripts/fspalm b/scripts/fspalm index 8f8bf8a462b..7ad7d1923a0 100755 --- a/scripts/fspalm +++ b/scripts/fspalm @@ -40,7 +40,7 @@ class ArgumentParser(argparse.ArgumentParser): #-------- main ------------------------- -version = '$Id'; +version = 'fspalm'; # ---- parse args ---- description = """\ diff --git a/scripts/fsr-checkxopts b/scripts/fsr-checkxopts index 322e4002dd9..98342cba6d7 100755 --- a/scripts/fsr-checkxopts +++ b/scripts/fsr-checkxopts @@ -21,7 +21,7 @@ # # -set VERSION = '$Id: fsr-checkxopts,v 1.4 2011/03/02 20:16:39 nicks Exp $'; +set VERSION = 'fsr-checkxopts @FS_VERSION@'; if($#argv < 1) exit 0; set xoptsfile = $argv[1]; diff --git a/scripts/fsr-coreg b/scripts/fsr-coreg index 7d5be9b51ad..53d14748eea 100755 --- a/scripts/fsr-coreg +++ b/scripts/fsr-coreg @@ -12,7 +12,7 @@ if(-e $FREESURFER_HOME/sources.csh) then source $FREESURFER_HOME/sources.csh endif -set VERSION = '$Id$'; +set VERSION = 'fsr-coreg @FS_VERSION@'; set selfname = `basename $0` set importdir = (); diff --git a/scripts/fsr-getxopts b/scripts/fsr-getxopts index 6e234d2b7a3..950195b1133 100755 --- a/scripts/fsr-getxopts +++ b/scripts/fsr-getxopts @@ -32,7 +32,7 @@ # # -set VERSION = '$Id: fsr-getxopts,v 1.6 2017/02/08 21:17:33 greve Exp $'; +set VERSION = 'fsr-getxopts @FS_VERSION@'; if($#argv < 2) then # Dont print out anything here otherwise mess up recon-all diff --git a/scripts/fsr-import b/scripts/fsr-import index ea42a5b5c13..4d23ea18f87 100755 --- a/scripts/fsr-import +++ b/scripts/fsr-import @@ -5,7 +5,7 @@ if(-e $FREESURFER_HOME/sources.csh) then source $FREESURFER_HOME/sources.csh endif -set VERSION = '$Id$'; +set VERSION = 'fsr-import @FS_VERSION@'; set outdir = (); set modenamelist = (); diff --git a/scripts/fsralpha.tmp b/scripts/fsralpha.tmp index 2771e4b85f2..1711ed79916 100755 --- a/scripts/fsralpha.tmp +++ b/scripts/fsralpha.tmp @@ -24,7 +24,7 @@ umask 002; -set VERSION = '$Id: fsralpha.tmp,v 1.9 2016/02/16 17:17:20 zkaufman Exp $'; +set VERSION = 'fsralpha.tmp @FS_VERSION@'; # MNI tool requires the following setenv LANG C diff --git a/scripts/fvcompare b/scripts/fvcompare index c3b71360894..40ee937999c 100755 --- a/scripts/fvcompare +++ b/scripts/fvcompare @@ -1,7 +1,7 @@ #!/bin/tcsh -f # fvcompare -set VERSION = '$Id: fvcompare,v 1.8 2016/02/16 17:17:20 zkaufman Exp $'; +set VERSION = 'fvcompare @FS_VERSION@'; set subject1 = (); set subject2 = (); diff --git a/scripts/gca-apply b/scripts/gca-apply index d9a32af09a2..5436d105897 100755 --- a/scripts/gca-apply +++ b/scripts/gca-apply @@ -1,7 +1,7 @@ #!/bin/tcsh -f # gca-apply -set VERSION = '$Id: gca-apply,v 1.11 2016/09/08 15:34:44 greve Exp $'; +set VERSION = 'gca-apply @FS_VERSION@'; set gca = (); set subject = (); diff --git a/scripts/gcainit b/scripts/gcainit index 8522029fb59..c323833ae15 100755 --- a/scripts/gcainit +++ b/scripts/gcainit @@ -1,7 +1,7 @@ #!/bin/tcsh -f # gcainit -set VERSION = '$Id: gcainit,v 1.2 2016/02/16 17:17:20 zkaufman Exp $'; +set VERSION = 'gcainit @FS_VERSION@'; set gcadir = (); set DoneFile = (); diff --git a/scripts/gcaprepone b/scripts/gcaprepone index 1ef6ac1f12a..d60fe941ae9 100755 --- a/scripts/gcaprepone +++ b/scripts/gcaprepone @@ -1,7 +1,7 @@ #!/bin/tcsh -f # gcaprepone -set VERSION = '$Id: gcaprepone,v 1.3 2016/02/16 17:17:20 zkaufman Exp $'; +set VERSION = 'gcaprepone @FS_VERSION@'; set gcadir = (); set subject = (); diff --git a/scripts/gcatrain b/scripts/gcatrain index 983ecc051e7..7809608a83f 100755 --- a/scripts/gcatrain +++ b/scripts/gcatrain @@ -1,7 +1,7 @@ #!/bin/tcsh -f # gcatrain -set VERSION = '$Id: gcatrain,v 1.5 2016/02/16 17:17:20 zkaufman Exp $'; +set VERSION = 'gcatrain @FS_VERSION@'; setenv REQUIRE_FS_MATCH 1 set gcadir = (); diff --git a/scripts/gcatrainskull b/scripts/gcatrainskull index e92472c2c7e..10a43e4a586 100755 --- a/scripts/gcatrainskull +++ b/scripts/gcatrainskull @@ -4,7 +4,7 @@ if(-e $FREESURFER_HOME/sources.csh) then source $FREESURFER_HOME/sources.csh endif -set VERSION = '$Id: gcatrainskull,v 1.2 2016/03/25 15:42:16 zkaufman Exp $'; +set VERSION = 'gcatrainskull @FS_VERSION@'; set gcadir = (); set RunIt = 1; diff --git a/scripts/gnuplot.freesurfer b/scripts/gnuplot.freesurfer index 9dbacebb078..66ef900aa13 100755 --- a/scripts/gnuplot.freesurfer +++ b/scripts/gnuplot.freesurfer @@ -17,7 +17,6 @@ # # NEEDED TO OVERRIDE THE FSL gnuplot -# $Id: gnuplot.freesurfer,v 1.4 2011/03/02 20:16:39 nicks Exp $ if [ -x /usr/local/bin/gnuplot ] ; then exec /usr/local/bin/gnuplot "$@" elif [ -x /usr/bin/gnuplot ] ; then diff --git a/scripts/grad_unwarp b/scripts/grad_unwarp index a89f77a72ed..2e999cf0a76 100755 --- a/scripts/grad_unwarp +++ b/scripts/grad_unwarp @@ -18,7 +18,7 @@ # -set VERSION = '$Id: grad_unwarp,v 1.16 2016/02/16 17:17:20 zkaufman Exp $'; +set VERSION = 'grad_unwarp @FS_VERSION@'; set inputargs = ($argv); diff --git a/scripts/groupstats b/scripts/groupstats index 82e62a7f62b..41a748f677e 100755 --- a/scripts/groupstats +++ b/scripts/groupstats @@ -1,7 +1,7 @@ #!/bin/tcsh -f # groupstats -set VERSION = '$Id: groupstats,v 1.8 2016/04/30 15:14:39 greve Exp $'; +set VERSION = 'groupstats @FS_VERSION@'; set fsgd = (); set slist = (); diff --git a/scripts/groupstatsdiff b/scripts/groupstatsdiff index 25b3592783a..4eee5d7a4f2 100755 --- a/scripts/groupstatsdiff +++ b/scripts/groupstatsdiff @@ -1,7 +1,7 @@ #!/bin/tcsh -f # groupstatsdiff -set VERSION = '$Id: groupstatsdiff,v 1.11 2016/02/16 17:17:20 zkaufman Exp $'; +set VERSION = 'groupstatsdiff @FS_VERSION@'; set g1dir = (); set g2dir = (); diff --git a/scripts/gtmseg b/scripts/gtmseg index 80a0fa5cca1..537db0d2c59 100755 --- a/scripts/gtmseg +++ b/scripts/gtmseg @@ -1,7 +1,7 @@ #!/bin/tcsh -f # gtmseg -set VERSION = '$Id: gtmseg,v 1.19 2016/03/24 17:32:23 greve Exp $'; +set VERSION = 'gtmseg @FS_VERSION@'; set outdir = (); set subject = (); diff --git a/scripts/intcapseg b/scripts/intcapseg index 5df0836377c..d6ff8391962 100755 --- a/scripts/intcapseg +++ b/scripts/intcapseg @@ -1,7 +1,7 @@ #!/bin/tcsh -f # intcapseg -set VERSION = '$Id: intcapseg,v 1.2 2016/02/16 17:17:20 zkaufman Exp $'; +set VERSION = 'intcapseg @FS_VERSION@'; set out = (); set seg = (); diff --git a/scripts/is-surface b/scripts/is-surface index df55f9eae3a..34ca0ac701f 100755 --- a/scripts/is-surface +++ b/scripts/is-surface @@ -17,7 +17,7 @@ # # -set VERSION = '$Id: is-surface,v 1.3 2011/03/02 20:16:39 nicks Exp $'; +set VERSION = 'is-surface @FS_VERSION@'; if($#argv != 1) then echo "is-surface file" diff --git a/scripts/isanalyze b/scripts/isanalyze index 4da9ea01491..87fd5c1f902 100755 --- a/scripts/isanalyze +++ b/scripts/isanalyze @@ -22,7 +22,7 @@ # -set VERSION = '$Id: isanalyze,v 1.7 2011/03/02 20:16:39 nicks Exp $'; +set VERSION = 'isanalyze @FS_VERSION@'; if($#argv != 1) then echo "isanalyze filename" diff --git a/scripts/isnifti b/scripts/isnifti index aba9dfc2b24..61cc1e1f0e7 100755 --- a/scripts/isnifti +++ b/scripts/isnifti @@ -23,7 +23,7 @@ # # -set VERSION = '$Id: isnifti,v 1.5 2011/03/02 20:16:39 nicks Exp $' +set VERSION = 'isnifti @FS_VERSION@'; if($#argv != 1) then echo "isnifti filename" diff --git a/scripts/isolate_labels.csh b/scripts/isolate_labels.csh index ce3cef76c1a..c37bfa0e065 100755 --- a/scripts/isolate_labels.csh +++ b/scripts/isolate_labels.csh @@ -18,7 +18,7 @@ set outprefix = () set keepvalues = 0 set inputargs = ($argv); -set VERSION = '$Id: isolate_labels.csh,v 1.2 2016/02/16 17:17:20 zkaufman Exp $'; +set VERSION = 'isolate_labels.csh @FS_VERSION@'; if($#argv == 0) goto usage_exit; set n = `echo $argv | egrep -e --version | wc -l` diff --git a/scripts/isolate_labels_keeporigval.csh b/scripts/isolate_labels_keeporigval.csh index de2f2dcb9c5..d68b2f58a78 100755 --- a/scripts/isolate_labels_keeporigval.csh +++ b/scripts/isolate_labels_keeporigval.csh @@ -19,7 +19,7 @@ set outprefix = () set inputargs = ($argv); -set VERSION = '$Id: isolate_labels.csh,v 1.1 2011/02/14 lzollei Exp $'; +set VERSION = 'isolate_labels_keeporigval.csh @FS_VERSION@'; if($#argv == 0) goto usage_exit; set n = `echo $argv | egrep -e --version | wc -l` diff --git a/scripts/jkgcatrain b/scripts/jkgcatrain index 8beb09c71c4..dbed5ece5ac 100755 --- a/scripts/jkgcatrain +++ b/scripts/jkgcatrain @@ -1,7 +1,7 @@ #!/bin/tcsh -f # jkgcatrain -set VERSION = '$Id: jkgcatrain,v 1.5 2016/02/16 17:17:20 zkaufman Exp $'; +set VERSION = 'jkgcatrain @FS_VERSION@'; set gcadir = (); set nthreads = 1; diff --git a/scripts/long_create_base_sigma b/scripts/long_create_base_sigma index 9c31c6d7698..b29c3d326b0 100755 --- a/scripts/long_create_base_sigma +++ b/scripts/long_create_base_sigma @@ -22,7 +22,7 @@ # -set VERSION = '$Id: long_create_base_sigma,v 1.2 2015/10/20 18:14:41 mreuter Exp $'; +set VERSION = 'long_create_base_sigma @FS_VERSION@'; if ($#argv < 2) then echo "" diff --git a/scripts/long_create_orig b/scripts/long_create_orig index 32602f7c657..e7e825ef34d 100755 --- a/scripts/long_create_orig +++ b/scripts/long_create_orig @@ -20,7 +20,7 @@ # -set VERSION = '$Id: long_create_orig,v 1.1 2015/10/19 21:17:56 mreuter Exp $'; +set VERSION = 'long_create_orig @FS_VERSION@'; if ($#argv < 1) then echo diff --git a/scripts/long_mris_slopes b/scripts/long_mris_slopes index 8a2ad3e47d7..ff8587af932 100755 --- a/scripts/long_mris_slopes +++ b/scripts/long_mris_slopes @@ -333,7 +333,7 @@ def options_parse(): Command Line Options Parser for long_mris_slopes initiate the option parser and return the parsed object """ - parser = optparse.OptionParser(version='$Id: long_mris_slopes,v 1.42 2015/12/08 19:06:38 zkaufman Exp $', usage=HELPTEXT) + parser = optparse.OptionParser(usage=HELPTEXT) # help text # h_fsgd = '(REQUIRED) fsdg file specifying the subjects and time points' diff --git a/scripts/long_qdec_table b/scripts/long_qdec_table index 8d727e54755..557a9a7a53d 100755 --- a/scripts/long_qdec_table +++ b/scripts/long_qdec_table @@ -94,7 +94,7 @@ def options_parse(): Command Line Options Parser initiate the option parser and return the parsed object """ - parser = optparse.OptionParser(version='$Id: long_qdec_table,v 1.6 2013/08/05 18:02:41 mreuter Exp $', usage=HELPTEXT) + parser = optparse.OptionParser(usage=HELPTEXT) # help text h_qdec = '(REQUIRED) qdec table file specifying the subjects and time points' diff --git a/scripts/long_stats_combine b/scripts/long_stats_combine index 08d2978d6e2..38650f0a7c0 100755 --- a/scripts/long_stats_combine +++ b/scripts/long_stats_combine @@ -130,7 +130,7 @@ def options_parse(): Command Line Options Parser for long_mris_slopes initiate the option parser and return the parsed object """ - parser = optparse.OptionParser(version='$Id: long_stats_combine,v 1.3 2012/05/30 22:57:25 mreuter Exp $', usage=HELPTEXT) + parser = optparse.OptionParser(usage=HELPTEXT) # help text h_qdec = '(REQUIRED) qdec table file specifying the subjects and time points' diff --git a/scripts/long_stats_slopes b/scripts/long_stats_slopes index c67ddfcfefa..e2f76afdccb 100755 --- a/scripts/long_stats_slopes +++ b/scripts/long_stats_slopes @@ -139,7 +139,7 @@ def options_parse(): Command Line Options Parser for long_mris_slopes initiate the option parser and return the parsed object """ - parser = optparse.OptionParser(version='$Id: long_stats_slopes,v 1.25 2015/12/08 19:06:39 zkaufman Exp $', usage=HELPTEXT) + parser = optparse.OptionParser(usage=HELPTEXT) # help text h_qdec = '(REQUIRED) qdec table file specifying the subjects and time points' diff --git a/scripts/long_stats_tps b/scripts/long_stats_tps index df389dce5f1..19f6c8430b6 100755 --- a/scripts/long_stats_tps +++ b/scripts/long_stats_tps @@ -119,7 +119,7 @@ def options_parse(): Command Line Options Parser for long_mris_slopes initiate the option parser and return the parsed object """ - parser = optparse.OptionParser(version='$Id: long_stats_tps,v 1.4 2012/05/30 22:57:26 mreuter Exp $', usage=HELPTEXT) + parser = optparse.OptionParser(usage=HELPTEXT) # help text h_qdec = '(REQUIRED) qdec table file specifying the subjects and time points' diff --git a/scripts/long_submit_jobs b/scripts/long_submit_jobs index 6d75bcbfe89..3a357bc1df1 100755 --- a/scripts/long_submit_jobs +++ b/scripts/long_submit_jobs @@ -288,8 +288,8 @@ def options_parse(): Command Line Options Parser for long_mris_slopes initiate the option parser and return the parsed object """ - parser = optparse.OptionParser(version='$Id: long_submit_jobs,v 1.29 2016/09/26 18:11:42 zkaufman Exp $', usage=HELPTEXT) - + parser = optparse.OptionParser(usage=HELPTEXT) + # help text h_qdec = '(REQUIRED) qdec table file specifying the subjects and time points' diff --git a/scripts/long_submit_postproc b/scripts/long_submit_postproc index e6aa39fb190..09b05c22006 100755 --- a/scripts/long_submit_postproc +++ b/scripts/long_submit_postproc @@ -192,7 +192,7 @@ def options_parse(): Command Line Options Parser for long_mris_slopes initiate the option parser and return the parsed object """ - parser = optparse.OptionParser(version='$Id: long_submit_postproc,v 1.4 2012/05/30 22:57:26 mreuter Exp $', usage=HELPTEXT) + parser = optparse.OptionParser(usage=HELPTEXT) # help text h_qdec = '(REQUIRED) qdec table file specifying the subjects and time points' diff --git a/scripts/longmc b/scripts/longmc index c0796ea813f..64aef7dc25f 100755 --- a/scripts/longmc +++ b/scripts/longmc @@ -4,7 +4,7 @@ if(-e $FREESURFER_HOME/sources.csh) then source $FREESURFER_HOME/sources.csh endif -set VERSION = '$Id$'; +set VERSION = 'longmc @FS_VERSION@'; set scriptname = `basename $0` set tpNid = (); # cross-sectional subject name diff --git a/scripts/lpcregister b/scripts/lpcregister index ead7ae97e63..51b7f814894 100755 --- a/scripts/lpcregister +++ b/scripts/lpcregister @@ -18,7 +18,7 @@ # # -set VERSION = '$Id: lpcregister,v 1.7 2016/02/16 17:17:20 zkaufman Exp $'; +set VERSION = 'lpcregister @FS_VERSION@'; set inputargs = ($argv); set subject = (); diff --git a/scripts/make-segvol-table b/scripts/make-segvol-table index 8f14deb3607..6e8d48d7fc4 100755 --- a/scripts/make-segvol-table +++ b/scripts/make-segvol-table @@ -18,7 +18,7 @@ # -set VERSION = '$Id: make-segvol-table,v 1.6 2016/02/16 17:17:20 zkaufman Exp $'; +set VERSION = 'make-segvol-table @FS_VERSION@'; set inputargs = ($argv); set subjects = (); set outfile = (); diff --git a/scripts/make_average_subcort b/scripts/make_average_subcort index 7e30756a32b..668ead92cb4 100755 --- a/scripts/make_average_subcort +++ b/scripts/make_average_subcort @@ -1,7 +1,7 @@ #!/bin/tcsh -f # thalseg -set VERSION = '$Id: make_average_subcort,v 1.3 2016/06/13 22:24:23 greve Exp $'; +set VERSION = 'make_average_subcort @FS_VERSION@'; set outvol = (); set subjlist = (); diff --git a/scripts/make_average_subject b/scripts/make_average_subject index 6afd3cc18e8..64655ee0d86 100755 --- a/scripts/make_average_subject +++ b/scripts/make_average_subject @@ -24,7 +24,7 @@ # uncomment this to increase number of allowable open files: #limit descriptors unlimited -set VERSION = '$Id: make_average_subject,v 1.24 2016/08/02 21:19:46 greve Exp $' +set VERSION = 'make_average_subject @FS_VERSION@'; set PrintHelp = 0; set sdout = (); set average_subject = (); diff --git a/scripts/make_average_surface b/scripts/make_average_surface index 701f3474c0b..e0d1018005b 100755 --- a/scripts/make_average_surface +++ b/scripts/make_average_surface @@ -24,7 +24,7 @@ # uncomment this to increase number of allowable open files to maximum: #limit descriptors unlimited -set VERSION = '$Id: make_average_surface,v 1.62 2016/02/16 17:17:20 zkaufman Exp $'; +set VERSION = 'make_average_surface @FS_VERSION@'; setenv FIX_VERTEX_AREA set PrintHelp = 0; diff --git a/scripts/make_average_volume b/scripts/make_average_volume index 1ae2fbfad5b..c15d6e5ad0f 100755 --- a/scripts/make_average_volume +++ b/scripts/make_average_volume @@ -24,7 +24,7 @@ # uncomment this to increase number of allowable open files to maximum: #limit descriptors unlimited -set VERSION = '$Id: make_average_volume,v 1.37 2016/08/02 21:13:10 greve Exp $'; +set VERSION = 'make_average_volume @FS_VERSION@'; set PrintHelp = 0; set transform_fname = talairach.xfm diff --git a/scripts/make_cortex_label b/scripts/make_cortex_label index 6f4bf2c4167..1c9638bb99c 100755 --- a/scripts/make_cortex_label +++ b/scripts/make_cortex_label @@ -23,7 +23,7 @@ # # -set VERSION = '$Id: make_cortex_label,v 1.5 2016/02/16 17:17:20 zkaufman Exp $'; +set VERSION = 'make_cortex_label @FS_VERSION@'; set inputargs = ($argv); set subject = (); diff --git a/scripts/make_folding_atlas b/scripts/make_folding_atlas index 4b377c81ecc..6c633b8cb6c 100755 --- a/scripts/make_folding_atlas +++ b/scripts/make_folding_atlas @@ -1,7 +1,7 @@ #!/bin/tcsh -f # make_folding_atlas -set VERSION = '$Id: make_folding_atlas,v 1.1 2016/08/02 20:51:18 greve Exp $'; +set VERSION = 'make_folding_atlas @FS_VERSION@'; set nitersmax = (); set base = (); diff --git a/scripts/make_hemi_mask b/scripts/make_hemi_mask index 5baf27b92ad..6eac905f50e 100755 --- a/scripts/make_hemi_mask +++ b/scripts/make_hemi_mask @@ -21,7 +21,7 @@ # # -set VERSION = '$Id: make_hemi_mask,v 1.5 2014/09/29 15:29:21 mreuter Exp $'; +set VERSION = 'make_hemi_mask @FS_VERSION@'; if ( $#argv < 3 ) then diff --git a/scripts/make_symmetric b/scripts/make_symmetric index 136701b89e7..3e6dcdbe68b 100755 --- a/scripts/make_symmetric +++ b/scripts/make_symmetric @@ -20,7 +20,7 @@ # # -set VERSION = '$Id: make_symmetric,v 1.4 2012/12/12 16:33:39 mreuter Exp $'; +set VERSION = 'make_symmetric @FS_VERSION@'; if ( $#argv < 4 ) then diff --git a/scripts/make_upright b/scripts/make_upright index 2a140c66513..f31f6ffa487 100755 --- a/scripts/make_upright +++ b/scripts/make_upright @@ -21,7 +21,7 @@ # -set VERSION = '$Id: make_upright,v 1.3 2012/12/12 16:33:39 mreuter Exp $'; +set VERSION = 'make_upright @FS_VERSION@'; if ( $#argv < 3 ) then diff --git a/scripts/map_to_base b/scripts/map_to_base index 594f169f02e..3e749a24ad0 100644 --- a/scripts/map_to_base +++ b/scripts/map_to_base @@ -19,7 +19,7 @@ # # -VERSION='$Id: map_to_base,v 1.4 2011/03/02 20:16:39 nicks Exp $'; +VERSION='map_to_base @FS_VERSION@'; # WITHOUT FREESURFER DO NOTHING if [ -z $FREESURFER_HOME ] diff --git a/scripts/mcparams2reg b/scripts/mcparams2reg index d2a206f9e3e..1bebc8bd5ec 100755 --- a/scripts/mcparams2reg +++ b/scripts/mcparams2reg @@ -5,7 +5,6 @@ # matrix of MC regressors. It will create all regressors. The # order and delay can be set. -# $Id: mcparams2reg,v 1.3 2015/11/24 20:09:36 greve Exp $ import sys; import os; @@ -27,7 +26,7 @@ class MCRegClass: self.demean = 1; self.demeanmtx = 1; self.DoFD = 0; - self.version = "$Id"; + self.version = "mcparams2reg"; self.debug = 0; # end def __init__(self, value=None): diff --git a/scripts/meanval b/scripts/meanval index 9f817ea2267..464458aa7a9 100755 --- a/scripts/meanval +++ b/scripts/meanval @@ -1,7 +1,7 @@ #!/bin/tcsh -f # meanval -set VERSION = '$Id: meanval,v 1.5 2015/12/09 20:02:53 zkaufman Exp $'; +set VERSION = 'meanval @FS_VERSION@'; set meanval = (); set avgwf = (); diff --git a/scripts/merge-labels b/scripts/merge-labels index 1eda19a9408..c2bcf80f3e6 100755 --- a/scripts/merge-labels +++ b/scripts/merge-labels @@ -22,7 +22,7 @@ set labellist = (); set outlabel = (); -set VERSION = '$Id: merge-labels,v 1.7 2016/02/16 17:17:20 zkaufman Exp $'; +set VERSION = 'merge-labels @FS_VERSION@'; set inputargs = ($argv); set PrintHelp = 0; diff --git a/scripts/merge_stats_tables b/scripts/merge_stats_tables index 19156d0f081..b539a515a35 100755 --- a/scripts/merge_stats_tables +++ b/scripts/merge_stats_tables @@ -122,7 +122,7 @@ def options_parse(): Command Line Options Parser for asegstats2table initiate the option parser and return the parsed object """ - parser = optparse.OptionParser(version='$Id: merge_stats_tables,v 1.6 2011/05/10 20:37:18 mreuter Exp $', usage=HELPTEXT) + parser = optparse.OptionParser(usage=HELPTEXT) # help text h_sub = '(REQUIRED) subject1 ' diff --git a/scripts/mergeseg b/scripts/mergeseg index 5286f0049c0..8501d9bc999 100755 --- a/scripts/mergeseg +++ b/scripts/mergeseg @@ -1,7 +1,7 @@ #!/bin/tcsh -f # mergeseg -set VERSION = '$Id: mergeseg,v 1.3 2016/02/16 17:17:20 zkaufman Exp $'; +set VERSION = 'mergeseg @FS_VERSION@'; set outseg = (); set mergeseg = (); diff --git a/scripts/mkdefectlut b/scripts/mkdefectlut index bd08edc3d87..bbf8892f617 100755 --- a/scripts/mkdefectlut +++ b/scripts/mkdefectlut @@ -3,7 +3,7 @@ # $DEV/distribution/DefectLUT.txt file. It does not # need to be distrubted. -set VERSION = '$Id: mkdefectlut,v 1.5 2013/02/15 19:44:45 greve Exp $'; +set VERSION = 'mkdefectlut @FS_VERSION@'; # ================================================= # First, create an LUT with random colors diff --git a/scripts/mkheadsurf b/scripts/mkheadsurf index bbe51276fe7..8ab2c41db1f 100755 --- a/scripts/mkheadsurf +++ b/scripts/mkheadsurf @@ -20,7 +20,7 @@ # mkheadsurf -set VERSION = '$Id: mkheadsurf,v 1.11 2016/02/16 17:17:20 zkaufman Exp $'; +set VERSION = 'mkheadsurf @FS_VERSION@'; set inputargs = ($argv); diff --git a/scripts/mksurfatlas b/scripts/mksurfatlas index ef206e25e77..72912f543fe 100755 --- a/scripts/mksurfatlas +++ b/scripts/mksurfatlas @@ -20,7 +20,7 @@ # -set VERSION = '$Id: mksurfatlas,v 1.11 2016/02/16 17:17:20 zkaufman Exp $'; +set VERSION = 'mksurfatlas @FS_VERSION@'; set atlas = (); set target = (); diff --git a/scripts/mni152reg b/scripts/mni152reg index a4c1f9b27dd..b056e20e69c 100644 --- a/scripts/mni152reg +++ b/scripts/mni152reg @@ -1,7 +1,7 @@ #!/bin/tcsh -f # mni152reg -set VERSION = '$Id: mni152reg,v 1.12 2016/02/16 17:17:20 zkaufman Exp $'; +set VERSION = 'mni152reg @FS_VERSION@'; set subject = (); set res = 2; diff --git a/scripts/morph_subject b/scripts/morph_subject index 75d87c4d03b..abcdea9f9e7 100755 --- a/scripts/morph_subject +++ b/scripts/morph_subject @@ -18,7 +18,7 @@ # -set version = '$Id: morph_subject,v 1.4 2011/03/02 20:16:39 nicks Exp $'; +set version = 'morph_subject @FS_VERSION@'; if($#argv != 1) then echo "USAGE: morph_subject subjid" diff --git a/scripts/morph_subject-lh b/scripts/morph_subject-lh index 606a53e3fb0..b051dec6f7b 100755 --- a/scripts/morph_subject-lh +++ b/scripts/morph_subject-lh @@ -19,7 +19,7 @@ -set version = '$Id: morph_subject-lh,v 1.6 2011/03/02 20:16:39 nicks Exp $'; +set version = 'morph_subject-lh @FS_VERSION@'; set hemi = lh diff --git a/scripts/morph_subject-rh b/scripts/morph_subject-rh index c4ea8d441a9..a9c498b2a43 100755 --- a/scripts/morph_subject-rh +++ b/scripts/morph_subject-rh @@ -19,7 +19,7 @@ # -set version = '$Id: morph_subject-rh,v 1.6 2011/03/02 20:16:39 nicks Exp $'; +set version = 'morph_subject-rh @FS_VERSION@'; set hemi = rh diff --git a/scripts/mri-func2sph b/scripts/mri-func2sph index 9199a9f87e4..cc6ccb25715 100755 --- a/scripts/mri-func2sph +++ b/scripts/mri-func2sph @@ -18,7 +18,7 @@ # -set FUNC2SPH_VER = '$Id: mri-func2sph,v 1.7 2016/02/16 17:17:20 zkaufman Exp $'; +set FUNC2SPH_VER = 'mri-func2sph @FS_VERSION@'; set icosize = 10242; set hemi = () diff --git a/scripts/mri-funcvits b/scripts/mri-funcvits index 768f616c3d0..35a32da482a 100755 --- a/scripts/mri-funcvits +++ b/scripts/mri-funcvits @@ -18,7 +18,7 @@ # -set FUNCVITS_VER = '$Id: mri-funcvits,v 1.9 2016/02/16 17:17:20 zkaufman Exp $'; +set FUNCVITS_VER = 'mri-funcvits @FS_VERSION@'; set stem = (); set outdir = (); diff --git a/scripts/mri-sph2surf b/scripts/mri-sph2surf index 351695305ff..96836c515ff 100755 --- a/scripts/mri-sph2surf +++ b/scripts/mri-sph2surf @@ -20,7 +20,7 @@ # # -set SPH2SURF_VER = '$Id: mri-sph2surf,v 1.5 2016/02/16 17:17:20 zkaufman Exp $'; +set SPH2SURF_VER = 'mri-sph2surf @FS_VERSION@'; set subject = (); set hemi = (); diff --git a/scripts/mri-structvits b/scripts/mri-structvits index 642273f4dca..7a9822fa638 100755 --- a/scripts/mri-structvits +++ b/scripts/mri-structvits @@ -18,7 +18,7 @@ # -set STRUCTVITS_VER = '$Id: mri-structvits,v 1.6 2016/02/16 17:17:20 zkaufman Exp $'; +set STRUCTVITS_VER = 'mri-structvits @FS_VERSION@'; set subject = (); set icosize = 10242; diff --git a/scripts/mri_add_new_tp b/scripts/mri_add_new_tp index cef539bf80f..17dc81e9988 100755 --- a/scripts/mri_add_new_tp +++ b/scripts/mri_add_new_tp @@ -21,7 +21,7 @@ # -set VERSION = '$Id: mri_add_new_tp,v 1.8 2011/05/04 18:01:39 mreuter Exp $'; +set VERSION = 'mri_add_new_tp @FS_VERSION@'; if ($#argv < 2) then echo diff --git a/scripts/mri_align_long.csh b/scripts/mri_align_long.csh index 7bf03f8f811..a7cbcbdf61f 100755 --- a/scripts/mri_align_long.csh +++ b/scripts/mri_align_long.csh @@ -20,7 +20,7 @@ # -set VERSION = '$Id: mri_align_long.csh,v 1.3 2011/03/02 20:16:39 nicks Exp $'; +set VERSION = 'mri_align_long.csh @FS_VERSION@'; if ($#argv < 1) then diff --git a/scripts/mri_glmfit-sim b/scripts/mri_glmfit-sim index 9a8db8067f7..5b6ead30655 100755 --- a/scripts/mri_glmfit-sim +++ b/scripts/mri_glmfit-sim @@ -1,5 +1,5 @@ #!/bin/tcsh -f -set VERSION = '$Id: mri_glmfit-sim,v 1.66 2016/11/16 20:52:22 greve Exp $'; +set VERSION = 'mri_glmfit-sim @FS_VERSION@'; setenv LANG en_US.UTF-8 set inputargs = ($argv); diff --git a/scripts/mri_mergelabels b/scripts/mri_mergelabels index 2d607121cd6..c707fbe5932 100755 --- a/scripts/mri_mergelabels +++ b/scripts/mri_mergelabels @@ -21,7 +21,7 @@ # a functional data set by projecting out the eigenvectors # as computed from evfunc (fast_evfunc.m) # -set VERSION = '$Id: mri_mergelabels,v 1.8 2016/02/16 17:17:20 zkaufman Exp $' +set VERSION = 'mri_mergelabels @FS_VERSION@'; set inputargs = ($argv); set PWDCMD = `getpwdcmd`; diff --git a/scripts/mri_motion_correct.fsl b/scripts/mri_motion_correct.fsl index 9d945dabd43..ee5e59de529 100755 --- a/scripts/mri_motion_correct.fsl +++ b/scripts/mri_motion_correct.fsl @@ -20,7 +20,7 @@ # -set VERSION = '$Id: mri_motion_correct.fsl,v 1.15 2016/02/16 17:17:20 zkaufman Exp $'; +set VERSION = 'mri_motion_correct.fsl @FS_VERSION@'; set tmpdir = (); set inputlist = (); diff --git a/scripts/mri_motion_correct2 b/scripts/mri_motion_correct2 index c175d06fdc5..cff53f39d3c 100755 --- a/scripts/mri_motion_correct2 +++ b/scripts/mri_motion_correct2 @@ -21,7 +21,7 @@ # -set VERSION = '$Id: mri_motion_correct2,v 1.19 2016/02/16 17:17:20 zkaufman Exp $'; +set VERSION = 'mri_motion_correct2 @FS_VERSION@'; set tmpdir = (); set inputlist = (); diff --git a/scripts/mri_nu_correct.mni b/scripts/mri_nu_correct.mni index 315464f7f4e..02b957eb316 100755 --- a/scripts/mri_nu_correct.mni +++ b/scripts/mri_nu_correct.mni @@ -19,7 +19,7 @@ # mri_nu_correct.mni # -set VERSION = '$Id: mri_nu_correct.mni,v 1.27 2016/02/26 16:19:49 mreuter Exp $'; +set VERSION = 'mri_nu_correct.mni @FS_VERSION@'; set InVol = (); set OutVol = (); diff --git a/scripts/mri_reorient_LR.csh b/scripts/mri_reorient_LR.csh index 653c9c93bd0..3541a09b53f 100644 --- a/scripts/mri_reorient_LR.csh +++ b/scripts/mri_reorient_LR.csh @@ -8,7 +8,7 @@ # Created: 07-16-2010 set inputargs = ($argv); -set VERSION = '$Id: mri_reorient_LR.csh,v 1.9 2016/02/16 17:17:20 zkaufman Exp $'; +set VERSION = 'mri_reorient_LR.csh @FS_VERSION@'; set inputvol = (); set outputvol = (); diff --git a/scripts/mris_preproc b/scripts/mris_preproc index c54427aa724..da205ea484c 100755 --- a/scripts/mris_preproc +++ b/scripts/mris_preproc @@ -25,7 +25,7 @@ # setenv FIX_VERTEX_AREA -set VERSION = '$Id: mris_preproc,v 1.77 2016/08/12 17:08:16 greve Exp $'; +set VERSION = 'mris_preproc @FS_VERSION@'; set PrintHelp = 0; set subjlist = (); diff --git a/scripts/mris_roiCircle b/scripts/mris_roiCircle index 6b92c53f4d1..7196991b7ca 100755 --- a/scripts/mris_roiCircle +++ b/scripts/mris_roiCircle @@ -21,7 +21,6 @@ G_SYNOPSIS=" NAME mris_roiCircle - $Id: mris_roiCircle,v 1.6 2011/09/20 12:45:12 rudolph Exp $ SYNOPSIS diff --git a/scripts/mris_volsmooth b/scripts/mris_volsmooth index 7f47a1d0af7..055ae07c8b6 100755 --- a/scripts/mris_volsmooth +++ b/scripts/mris_volsmooth @@ -19,7 +19,7 @@ # -set VERSION = '$Id: mris_volsmooth,v 1.12 2016/02/16 17:17:20 zkaufman Exp $' +set VERSION = 'mris_volsmooth @FS_VERSION@'; set invol = (); set reg = (); set outvol = (); diff --git a/scripts/nmr-std-env-dev.bash b/scripts/nmr-std-env-dev.bash deleted file mode 100644 index 5eadc59a42d..00000000000 --- a/scripts/nmr-std-env-dev.bash +++ /dev/null @@ -1,138 +0,0 @@ -# -# NAME -# -# nmr-std-env-dev.bash -# -# SYNOPSIS -# -# source nmr-std-env-dev.bash -# -- OR -- -# . nmr-std-env-dev.bash -# -# DESCRIPTION -# -# Sets up the environment to run MGH-NMR standard MRI processing -# stream: unpacking, functional, structural, and visualisation. -# -# This file is basically a straightforward port of Doug's (t)csh script -# nmr-std-env-dev.bash -# -# VERSION -# -# $Id: nmr-std-env-dev.bash,v 1.2 2004/09/01 21:11:40 rudolph Exp $ -# -# AUTHOR -# -# Rudolph Pienaar - rudolph@nmr.mgh.harvard.edu -# -# SEE ALSO -# -# Doug's nmr-std-env-dev.csh -# -# HISTORY -# -# 20 July 2004 -# o Initial design and coding. - -# Version data -SELF="nmr-std-env-dev.bash" -VERSION='$Id: nmr-std-env-dev.bash,v 1.2 2004/09/01 21:11:40 rudolph Exp $' - -## Turn on verboseness if desired ## -if [ -n $NMR_STD_VERBOSE ] ; then - echo=1 - verbose=1 -fi - -if [[ $echo == 1 ]] ; then - echo "$SELF" - echo "$VERSION" -fi - -### ------- Print a warning if the user is inverse ----------- ### -if [ $(whoami) == "inverse" ] ; then - echo " " - echo "WARNING: you are currently logged in as user 'inverse'. This account" - echo "will eventually be made unavaible to the general NMR community. Please" - echo "try logging in as yourself to process your data." - echo " " - return 1 -fi - -# OS data -export OS=$(uname -s) - -# Main ENV variables -export FREESURFER_HOME=/space/lyon/1/fsdev/freesurfer_dev -export SUBJECTS_DIR=/cmas/fs/1/users/freesurfer/Subjects -export FSFAST_HOME=/space/lyon/1/fsdev/freesurfer_dev/fsfast - -# In the original (t)csh script, the following are OS dependent. -# Here, I assume Linux only -export MINC_BIN_DIR=/space/lyon/9/pubsw/Linux2/packages/mni/current/bin -export MINC_LIB_DIR=/space/lyon/9/pubsw/Linux2/packages/mni/current/lib - -# Source the FreeSurfer Environment File -FS_ENV_FILE=$FREESURFER_HOME/FreeSurferEnv.bash -if [ ! -e $FS_ENV_FILE ] ; then - echo "ERROR: cannot find $FS_ENV_FILE" - return 1; -fi - -source $FS_ENV_FILE - -this_shell=$(basename $SHELL) -this_hostname=$(hostname) -this_host=$(basename $this_hostname .nmr.mgh.harvard.edu) - -### Prompt settings. Note that this will only have a meaning if used -### in conjunction with Rudolph's ~/.bashrc -if [ $this_shell == bash ] ; then - export PROMPTPREFIX="[nse]" -fi - -if [ -z $MRI_UMASK ] ; then - export MRI_UMASK=2 -fi - -return 0; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/scripts/nmr-std-env.bash b/scripts/nmr-std-env.bash deleted file mode 100644 index f4c2be4f919..00000000000 --- a/scripts/nmr-std-env.bash +++ /dev/null @@ -1,138 +0,0 @@ -# -# NAME -# -# nmr-std-env.bash -# -# SYNOPSIS -# -# source nmr-std-env.bash -# -- OR -- -# . nmr-std-env.bash -# -# DESCRIPTION -# -# Sets up the environment to run MGH-NMR standard MRI processing -# stream: unpacking, functional, structural, and visualisation. -# -# This file is basically a straightforward port of Doug's (t)csh script -# nmr-std-env.bash -# -# VERSION -# -# $Id: nmr-std-env.bash,v 1.2 2004/07/22 15:36:26 rudolph Exp $ -# -# AUTHOR -# -# Rudolph Pienaar - rudolph@nmr.mgh.harvard.edu -# -# SEE ALSO -# -# Doug's nmr-std-env.csh -# -# HISTORY -# -# 20 July 2004 -# o Initial design and coding. - -# Version data -SELF="nmr-std-env.bash" -VERSION='$Id: nmr-std-env.bash,v 1.2 2004/07/22 15:36:26 rudolph Exp $' - -## Turn on verboseness if desired ## -if [ -n $NMR_STD_VERBOSE ] ; then - echo=1 - verbose=1 -fi - -if [[ $echo == 1 ]] ; then - echo "$SELF" - echo "$VERSION" -fi - -### ------- Print a warning if the user is inverse ----------- ### -if [ $(whoami) == "inverse" ] ; then - echo " " - echo "WARNING: you are currently logged in as user 'inverse'. This account" - echo "will eventually be made unavaible to the general NMR community. Please" - echo "try logging in as yourself to process your data." - echo " " - return 1 -fi - -# OS data -export OS=$(uname -s) - -# Main ENV variables -export FREESURFER_HOME=~inverse/freesurfer_alpha -export SUBJECTS_DIR=/cmas/fs/1/users/freesurfer/Subjects -export FSFAST_HOME=~inverse/freesurfer_alpha/fsfast - -# In the original (t)csh script, the following are OS dependent. -# Here, I assume Linux only -export MINC_BIN_DIR=/space/lyon/9/pubsw/Linux2/packages/mni/current/bin -export MINC_LIB_DIR=/space/lyon/9/pubsw/Linux2/packages/mni/current/lib - -# Source the FreeSurfer Environment File -FS_ENV_FILE=$FREESURFER_HOME/FreeSurferEnv.bash -if [ ! -e $FS_ENV_FILE ] ; then - echo "ERROR: cannot find $FS_ENV_FILE" - return 1; -fi - -source $FS_ENV_FILE - -this_shell=$(basename $SHELL) -this_hostname=$(hostname) -this_host=$(basename $this_hostname .nmr.mgh.harvard.edu) - -### Prompt settings. Note that this will only have a meaning if used -### in conjunction with Rudolph's ~/.bashrc -if [ $this_shell == bash ] ; then - export PROMPTPREFIX="[nse]" -fi - -if [ -z $MRI_UMASK ] ; then - export MRI_UMASK=2 -fi - -return 0; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/scripts/parc_atlas_jackknife_test b/scripts/parc_atlas_jackknife_test index 1bbd85b1b57..28c6095b9f4 100755 --- a/scripts/parc_atlas_jackknife_test +++ b/scripts/parc_atlas_jackknife_test @@ -24,7 +24,7 @@ # # -set VERSION='$Id: parc_atlas_jackknife_test,v 1.17 2011/03/02 20:16:39 nicks Exp $'; +set VERSION='parc_atlas_jackknife_test @FS_VERSION@'; # defaults: # setenv SUBJECTS_DIR /space/amaebi/26/users/buckner_cortical_atlas diff --git a/scripts/pctsurfcon b/scripts/pctsurfcon index e9f5233e156..cb011184c16 100755 --- a/scripts/pctsurfcon +++ b/scripts/pctsurfcon @@ -18,7 +18,7 @@ # # -set VERSION = '$Id: pctsurfcon,v 1.15 2016/02/12 21:43:15 zkaufman Exp $'; +set VERSION = 'pctsurfcon @FS_VERSION@'; set inputargs = ($argv); set subject = (); diff --git a/scripts/polyorder b/scripts/polyorder index b9f96cf5c38..fe9afa65637 100755 --- a/scripts/polyorder +++ b/scripts/polyorder @@ -1,7 +1,7 @@ #!/bin/tcsh -f # polyorder -set VERSION = '$Id: polyorder,v 1.2 2016/02/16 17:17:20 zkaufman Exp $'; +set VERSION = 'polyorder @FS_VERSION@'; set fCutOffHz = (); set ntp = (); diff --git a/scripts/print_unique_labels.csh b/scripts/print_unique_labels.csh index 45ed9621cc5..90c246e9a01 100755 --- a/scripts/print_unique_labels.csh +++ b/scripts/print_unique_labels.csh @@ -17,7 +17,7 @@ set fscolor = $FREESURFER_HOME/FreeSurferColorLUT.txt set onlylist = 0 set inputargs = ($argv); -set VERSION = '$Id: print_unique_labels.csh,v 1.3 2016/02/16 17:17:20 zkaufman Exp $'; +set VERSION = 'print_unique_labels.csh @FS_VERSION@'; if($#argv == 0) goto usage_exit; set n = `echo $argv | egrep -e --version | wc -l` diff --git a/scripts/rbbr b/scripts/rbbr index e3dd16ee17e..134e928db26 100755 --- a/scripts/rbbr +++ b/scripts/rbbr @@ -1,7 +1,7 @@ #!/bin/tcsh -f # rbbr -set VERSION = '$Id: rbbr,v 1.9 2016/02/16 17:17:20 zkaufman Exp $'; +set VERSION = 'rbbr @FS_VERSION@'; set outreg = (); set outlta = (); diff --git a/scripts/rca-base-init b/scripts/rca-base-init index 4737a7217c7..79d096151ea 100755 --- a/scripts/rca-base-init +++ b/scripts/rca-base-init @@ -13,7 +13,7 @@ if(-e $FREESURFER_HOME/sources.csh) then source $FREESURFER_HOME/sources.csh endif -set VERSION = '$Id$'; +set VERSION = 'rca-base-init @FS_VERSION@'; set scriptname = `basename $0` set RunIt = 1; diff --git a/scripts/rca-long-tp-init b/scripts/rca-long-tp-init index 04684f4fcd2..f385b2db04b 100755 --- a/scripts/rca-long-tp-init +++ b/scripts/rca-long-tp-init @@ -16,7 +16,7 @@ if(-e $FREESURFER_HOME/sources.csh) then source $FREESURFER_HOME/sources.csh endif -set VERSION = '$Id$'; +set VERSION = 'rca-long-tp-init @FS_VERSION@'; set scriptname = `basename $0` set RunIt = 1; diff --git a/scripts/rcbf-prep b/scripts/rcbf-prep index 204569312a0..4e3471e2595 100755 --- a/scripts/rcbf-prep +++ b/scripts/rcbf-prep @@ -1,7 +1,7 @@ #!/bin/tcsh -f # rcbf-prep -set VERSION = '$Id: rcbf-prep,v 1.5 2016/02/16 17:17:20 zkaufman Exp $'; +set VERSION = 'rcbf-prep @FS_VERSION@'; setenv FSLOUTPUTTYPE NIFTI set outdir = (); diff --git a/scripts/rebuild_gca_atlas.csh b/scripts/rebuild_gca_atlas.csh index 2b44724df98..265893c5066 100755 --- a/scripts/rebuild_gca_atlas.csh +++ b/scripts/rebuild_gca_atlas.csh @@ -40,7 +40,7 @@ # -set VERSION='$Id: rebuild_gca_atlas.csh,v 1.23 2015/06/25 15:31:31 nicks Exp $'; +set VERSION='rebuild_gca_atlas.csh @FS_VERSION@' #set echo=1 diff --git a/scripts/recon-all.v6.hires b/scripts/recon-all.v6.hires index d84f6457ba0..9bbde0cae11 100755 --- a/scripts/recon-all.v6.hires +++ b/scripts/recon-all.v6.hires @@ -39,7 +39,7 @@ # umask 002; -set VERSION = '$Id: recon-all,v 1.580.2.15 2016/12/08 22:02:41 zkaufman Exp $'; +set VERSION = 'recon-all.v6.hires @FS_VERSION@'; set ProgName = `basename $0`; set inputargs = ($argv); set subjid = (); diff --git a/scripts/reg-feat2anat b/scripts/reg-feat2anat index 04de54ff83a..be70e6c3d56 100755 --- a/scripts/reg-feat2anat +++ b/scripts/reg-feat2anat @@ -20,7 +20,7 @@ # -set VERSION = '$Id: reg-feat2anat,v 1.39 2016/02/16 17:17:20 zkaufman Exp $' +set VERSION = 'reg-feat2anat @FS_VERSION@'; set FeatDir = (); set subject = (); set anatvol = brainmask; diff --git a/scripts/reg-mni305.2mm b/scripts/reg-mni305.2mm index 3011c86e4d1..9a9840b6811 100755 --- a/scripts/reg-mni305.2mm +++ b/scripts/reg-mni305.2mm @@ -17,7 +17,7 @@ # # -set VERSION = '$Id: reg-mni305.2mm,v 1.4 2016/02/16 17:17:20 zkaufman Exp $'; +set VERSION = 'reg-mni305.2mm @FS_VERSION@'; set subject = (); set regfile = (); diff --git a/scripts/reg2subject b/scripts/reg2subject index e52c148d691..1dfaef12007 100755 --- a/scripts/reg2subject +++ b/scripts/reg2subject @@ -1,7 +1,7 @@ #!/bin/tcsh -f # reg2subject -set VERSION = '$Id: reg2subject,v 1.2 2016/02/16 17:17:20 zkaufman Exp $'; +set VERSION = 'reg2subject @FS_VERSION@'; set outdir = (); set subject = (); diff --git a/scripts/rtview b/scripts/rtview index f359efb2f23..a581e7d77fd 100755 --- a/scripts/rtview +++ b/scripts/rtview @@ -1,7 +1,7 @@ #!/bin/tcsh -f # rtview -set VERSION = '$Id: rtview,v 1.5 2016/02/16 17:17:20 zkaufman Exp $'; +set VERSION = 'rtview @FS_VERSION@'; set srcsubject = (); set trgsubject = (); diff --git a/scripts/run-qdec-glm b/scripts/run-qdec-glm index 73c90e70031..b4c66358030 100755 --- a/scripts/run-qdec-glm +++ b/scripts/run-qdec-glm @@ -17,7 +17,8 @@ # # -set version = '$Id: run-qdec-glm,v 1.10 2011/03/02 20:16:40 nicks Exp $'; +set version = 'run-qdec-glm @FS_VERSION@'; + if($#argv != 1) then echo "run-qdec-glm qdecdir" diff --git a/scripts/samseg2recon b/scripts/samseg2recon index b40bf7d025c..4891d89c23a 100755 --- a/scripts/samseg2recon +++ b/scripts/samseg2recon @@ -3,7 +3,7 @@ # samseg2recon - create and populate a subjects dir in a way that # recon-all can be run on it. -set VERSION = '$Id$' +set VERSION = 'samseg2recon @FS_VERSION@'; if(-e $FREESURFER_HOME/sources.csh) then source $FREESURFER_HOME/sources.csh diff --git a/scripts/seg2filled b/scripts/seg2filled index d1b8109b33a..b6d55dab222 100755 --- a/scripts/seg2filled +++ b/scripts/seg2filled @@ -9,7 +9,7 @@ if(-e $FREESURFER_HOME/sources.csh) then source $FREESURFER_HOME/sources.csh endif -set VERSION = '$Id$'; +set VERSION = 'seg2filled @FS_VERSION@'; set seg = (); set ndil = 1 diff --git a/scripts/segpons b/scripts/segpons index d10800b0015..55a2ed77252 100755 --- a/scripts/segpons +++ b/scripts/segpons @@ -1,7 +1,7 @@ #!/bin/tcsh -f # segpons -set VERSION = '$Id: segpons,v 1.4 2016/02/16 17:17:20 zkaufman Exp $'; +set VERSION = 'segpons @FS_VERSION@'; set outvol = (); set subject = (); diff --git a/scripts/setlabelstat b/scripts/setlabelstat index 64e1861aa3d..116f8eb7964 100755 --- a/scripts/setlabelstat +++ b/scripts/setlabelstat @@ -24,7 +24,7 @@ set inlabel = (); set outlabel = (); set statval = (); -set VERSION = '$Id: setlabelstat,v 1.6 2016/02/16 17:17:20 zkaufman Exp $'; +set VERSION = 'setlabelstat @FS_VERSION@'; set inputargs = ($argv); set PrintHelp = 0; diff --git a/scripts/sfa2fieldsign b/scripts/sfa2fieldsign index 5b301088563..641994ad3a7 100755 --- a/scripts/sfa2fieldsign +++ b/scripts/sfa2fieldsign @@ -2,7 +2,7 @@ # sfa2fieldsign setenv FSLOUTPUTTYPE NIFTI -set VERSION = '$Id: sfa2fieldsign,v 1.6 2016/02/16 17:17:20 zkaufman Exp $'; +set VERSION = 'sfa2fieldsign @FS_VERSION@'; set sfadir = (); set regfile = (); diff --git a/scripts/spherically_project.py b/scripts/spherically_project.py index 37241ad5fad..65a33fbc8da 100755 --- a/scripts/spherically_project.py +++ b/scripts/spherically_project.py @@ -62,7 +62,7 @@ def options_parse(): """ Command line option parser for spherically_project.py """ - parser = optparse.OptionParser(version='$Id: spherically_project,v 1.1 2017/01/30 20:42:08 ltirrell Exp $', usage=HELPTEXT) + parser = optparse.OptionParser(usage=HELPTEXT) parser.add_option('--input', '-i', dest='input_surf', help=h_input) parser.add_option('--output', '-o', dest='output_surf', help=h_output) (options, args) = parser.parse_args() diff --git a/scripts/spmmat2register b/scripts/spmmat2register index ebdb6a3e760..6db3e6ec62c 100755 --- a/scripts/spmmat2register +++ b/scripts/spmmat2register @@ -25,7 +25,7 @@ echo "In particular, look at the section called USING WITH FSL and SPM" echo "" exit 1; -set SPMMAT2REGISTER_VER = '$Id: spmmat2register,v 1.14 2016/02/16 17:17:20 zkaufman Exp $'; +set SPMMAT2REGISTER_VER = 'spmmat2register @FS_VERSION@'; set OutStream = /dev/null; set funcvol = (); diff --git a/scripts/spmregister b/scripts/spmregister index 38b388c890d..068fe7d123d 100755 --- a/scripts/spmregister +++ b/scripts/spmregister @@ -18,7 +18,7 @@ # # -set VERSION = '$Id: spmregister,v 1.46 2016/02/16 17:17:20 zkaufman Exp $'; +set VERSION = 'spmregister @FS_VERSION@'; set inputargs = ($argv); set subjid = (); diff --git a/scripts/spmseg b/scripts/spmseg index 93ae97a3a81..5ae3bd89881 100755 --- a/scripts/spmseg +++ b/scripts/spmseg @@ -1,7 +1,7 @@ #!/bin/tcsh -f # spmseg -set VERSION = '$Id: spmseg,v 1.3 2016/02/16 17:17:20 zkaufman Exp $'; +set VERSION = 'spmseg @FS_VERSION@'; set subject = (); set invol = orig.mgz diff --git a/scripts/sratio b/scripts/sratio index 56e8568ac3b..366fa0fc4cd 100755 --- a/scripts/sratio +++ b/scripts/sratio @@ -2,7 +2,6 @@ # sratio - signed ratio # +A/B if A>B # -B/A if B>A -# $Id: sratio,v 1.9 2016/02/16 17:17:20 zkaufman Exp $ # # sratio @@ -26,7 +25,7 @@ setenv FSLOUTPUTTYPE NIFTI set tmpdir = (); -set VERSION = '$Id: sratio,v 1.9 2016/02/16 17:17:20 zkaufman Exp $'; +set VERSION = 'sratio @FS_VERSION@'; set cleanup = 1; set LF = (); set A = (); diff --git a/scripts/surfreg b/scripts/surfreg index c340b702101..c05a14be3a5 100755 --- a/scripts/surfreg +++ b/scripts/surfreg @@ -1,7 +1,7 @@ #!/bin/tcsh -f # thalseg -set VERSION = '$Id: surfreg,v 1.15 2016/08/12 17:07:49 greve Exp $'; +set VERSION = 'surfreg @FS_VERSION@'; set subject = (); set hemilist = (); diff --git a/scripts/talairach b/scripts/talairach index 177836974c4..d3988b1a18a 100755 --- a/scripts/talairach +++ b/scripts/talairach @@ -17,7 +17,7 @@ # # -set VERSION = '$Id: talairach,v 1.8 2016/02/16 17:17:20 zkaufman Exp $' +set VERSION = 'talairach @FS_VERSION@'; setenv LANG C # needed by MNI perl module diff --git a/scripts/talairach2 b/scripts/talairach2 index a714f991981..233be4319b6 100755 --- a/scripts/talairach2 +++ b/scripts/talairach2 @@ -28,7 +28,7 @@ # ######################################################### -set VERSION = '$Id: talairach2,v 1.14 2011/03/02 20:16:40 nicks Exp $'; +set VERSION = 'talairach2 @FS_VERSION@'; set MGZ = (); diff --git a/scripts/talsegprob b/scripts/talsegprob index 90a97770109..7d6e39c77d2 100755 --- a/scripts/talsegprob +++ b/scripts/talsegprob @@ -20,7 +20,7 @@ # # -set VERSION = '$Id: talsegprob,v 1.4 2016/02/16 17:17:20 zkaufman Exp $'; +set VERSION = 'talsegprob @FS_VERSION@'; set outfile = (); set outcatfile = (); diff --git a/scripts/tess1mm b/scripts/tess1mm index 6cb1f8c64ee..d26b79d20ed 100755 --- a/scripts/tess1mm +++ b/scripts/tess1mm @@ -4,7 +4,7 @@ if(-e $FREESURFER_HOME/sources.csh) then source $FREESURFER_HOME/sources.csh endif -set VERSION = '$Id$'; +set VERSION = 'tess1mm @FS_VERSION@'; set hrsubject = (); set hemilist = (lh rh); diff --git a/scripts/test_fs_tutorial.csh b/scripts/test_fs_tutorial.csh deleted file mode 100755 index 6910cabce77..00000000000 --- a/scripts/test_fs_tutorial.csh +++ /dev/null @@ -1,379 +0,0 @@ -#!/usr/bin/tcsh -ef -set echo - -# CVS Info : $Id: test_fs_tutorial.csh,v 1.1 2010/02/04 19:37:09 krish Exp $ -# This script executes all the command-line entries in all the tutorials of the FsTutorial -# It excludes all the tkmedit, tksurfer, qdec commands until the end where it invokes the -# three commands in succession. -# Also excludes commands which take long ( more than a minute ) in the tutorial - -# Notes to the user : -# Set FREESURFER_HOME before executing this script -# Also make sure $FREESURFER_HOME/subjects/buckner_data exists -# or is symlinked to the buckner data directory - -#------------------------------ -# ---- OutputData ---- -#------------------------------ - -setenv TUTORIAL_DATA $FREESURFER_HOME/subjects/buckner_data/tutorial_subjs - -setenv SUBJECTS_DIR $TUTORIAL_DATA -cd $SUBJECTS_DIR - -#tkmedit good_output brainmask.mgz lh.white \ -# -aux T1.mgz -aux-surface rh.white \ -# -segmentation aseg.mgz $FREESURFER_HOME/FreeSurferColorLUT.txt - -#tksurfer good_output lh inflated - -#------------------------------ -# ---- GroupAnalysis ---- -#------------------------------ - -setenv TUTORIAL_DATA $FREESURFER_HOME/subjects/buckner_data/tutorial_subjs -setenv SUBJECTS_DIR $TUTORIAL_DATA/group_analysis_tutorial -cd $SUBJECTS_DIR/glm - - -mris_preproc --fsgd gender_age.fsgd \ - --cache-in thickness.fwhm10.fsaverage \ - --target fsaverage --hemi lh \ - --out lh.gender_age.thickness.10.mgh - - -mri_glmfit \ - --y lh.gender_age.thickness.10.mgh \ - --fsgd gender_age.fsgd dods\ - --C lh-Avg-thickness-age-Cor.mtx \ - --surf fsaverage lh \ - --cortex \ - --glmdir lh.gender_age.glmdir - - -#tksurfer fsaverage lh inflated \ -# -annot aparc.annot -fthresh 2 \ -#-overlay lh.gender_age.glmdir/lh-Avg-thickness-age-Cor/sig.mgh - - -mri_glmfit-sim \ - --glmdir lh.gender_age.glmdir \ - --sim mc-z 5 4 mc-z.negative \ - --sim-sign neg \ - --overwrite - -cat lh.gender_age.glmdir/csd/mc-z.neg4.j001-lh-Avg-thickness-age-Cor.csd - -cat lh.gender_age.glmdir/lh-Avg-thickness-age-Cor/mc-z.neg4.sig.cluster.summary - -#tksurfer fsaverage lh inflated \ -# -annot lh.gender_age.glmdir/lh-Avg-thickness-age-Cor/mc-z.neg4.sig.ocn.annot \ -# -fthresh 2 -curv -gray - -#------------------------------ -# ---- QdecGroupAnalysis ---- -#------------------------------ - - -setenv TUTORIAL_DATA $FREESURFER_HOME/subjects/buckner_data/tutorial_subjs - -setenv SUBJECTS_DIR $TUTORIAL_DATA/group_analysis_tutorial -cd $SUBJECTS_DIR - -setenv SUBJECTS_DIR $TUTORIAL_DATA/group_analysis_tutorial -cd $SUBJECTS_DIR - -#qdec & - -cd $SUBJECTS_DIR -mris_anatomical_stats -l lh.supramarg.label \ - -t lh.thickness -b -f 004/stats/lh.supramarg.stats 004 lh - -#tkmedit 004 brainmask.mgz -label lh.supramarg.label - -#------------------------------ -# ---- AnatomicalROI ---- -#------------------------------ - -setenv TUTORIAL_DATA $FREESURFER_HOME/subjects/buckner_data/tutorial_subjs -setenv SUBJECTS_DIR $TUTORIAL_DATA/group_analysis_tutorial -cd $SUBJECTS_DIR - -#tkmedit 004 orig.mgz -aux aparc+aseg.mgz \ -# -seg aparc+aseg.mgz $FREESURFER_HOME/FreeSurferColorLUT.txt - -#tksurfer 004 lh inflated -annot aparc.annot - -cat $FREESURFER_HOME/FreeSurferColorLUT.txt - -cat 004/label/lh.BA45.label - -#tkmedit 004 orig.mgz - -#tksurfer 004 lh inflated - -cd $SUBJECTS_DIR/004/stats -cat aseg.stats - -cd $SUBJECTS_DIR/004/stats -cat lh.aparc.stats - -setenv SUBJECTS_DIR $TUTORIAL_DATA/group_analysis_tutorial -cd $SUBJECTS_DIR - -asegstats2table --subjects 004 021 040 067 080 092 \ - --segno 11 17 18 \ - --tablefile aseg.vol.table - -cat $FREESURFER_HOME/FreeSurferColorLUT.txt - -cat aseg.vol.table - -#oocalc aseg.vol.table - -#/Applications/OpenOffice.org.app/Contents/MacOS/scalc aseg.vol.table - -asegstats2table \ - --subjects 004 021 040 067 080 092 \ - --segno 11 17 18 \ - --meas mean \ - --tablefile aseg.mean-intensity.table - -cat $FREESURFER_HOME/FreeSurferColorLUT.txt - -asegstats2table \ - --subjects 004 021 040 067 080 092 \ - --segno 3007 3021 3022 4022 \ - --stats wmparc.stats \ - --tablefile wmparc.vol.table - -cat $FREESURFER_HOME/FreeSurferColorLUT.txt - -aparcstats2table --hemi lh \ - --subjects 004 021 040 067 080 092 \ - --tablefile lh.aparc.area.table - -aparcstats2table --hemi lh \ - --subjects 004 021 040 067 080 092 \ - --meas thickness \ - --parc aparc.a2005s \ - --tablefile lh.aparc.a2005.thickness.table - -#------------------------------ -# ---- TroubleshootingData ---- -#------------------------------ - -setenv TUTORIAL_DATA $FREESURFER_HOME/subjects/buckner_data/tutorial_subjs - -setenv SUBJECTS_DIR $TUTORIAL_DATA -cd $SUBJECTS_DIR - -#tkmedit topo_defect_before brainmask.mgz \ -# lh.white -aux wm.mgz -aux-surface rh.white -# -# -#tkmedit topo_defect_after brainmask.mgz \ -# lh.white -aux wm.mgz -aux-surface rh.white -# -# -#tkmedit wm1_edits_before brainmask.mgz \ -# lh.white -aux T1.mgz -aux-surface rh.white -# -# -#tksurfer wm1_edits_before lh inflated -# -#tkmedit pial_edits_before brainmask.mgz \ -# lh.white -aux T1.mgz -aux-surface rh.white -# -# -#tksurfer pial_edits_before lh inflated -# -#tkmedit skullstrip1_before brainmask.mgz \ -# lh.white -aux T1.mgz -aux-surface rh.white -# -# -#tkmedit cp_before brainmask.mgz \ -# lh.white -aux T1.mgz -aux-surface rh.white -# -# -#tksurfer cp_before lh inflated & -#tksurfer cp_before rh inflated & -# -#tkmedit tal_before brainmask.mgz \ -# lh.white -aux T1.mgz -aux-surface rh.white -# -# -#tksurfer tal_before lh inflated - -#------------------------------ -# ---- MultiModalRegistration ---- -#------------------------------ - -setenv TUTORIAL_DATA $FREESURFER_HOME/subjects/buckner_data/tutorial_subjs -setenv SUBJECTS_DIR $TUTORIAL_DATA -cd $TUTORIAL_DATA/multimodal/fmri/fbirn-101 - -#tkregister2 --mov template.nii --s fbirn-anat-101.v4 \ -# --regheader --reg myregister.dat --surf - -# bbregister --mov template.nii --bold \ -# --s fbirn-anat-101.v4 \ -# --init-fsl --reg register.dat - -cat register.dat - -#tkregister2 --mov template.nii --reg register.dat --surf - -#------------------------------ -# ---- MultiModalFmriIndividual ---- -#------------------------------ - -setenv TUTORIAL_DATA $FREESURFER_HOME/subjects/buckner_data/tutorial_subjs -setenv SUBJECTS_DIR $TUTORIAL_DATA -cd $TUTORIAL_DATA/multimodal/fmri/fbirn-101 - -#tkregister2 --mov template.nii \ -# --reg bb.register.dat --surf - -#tkmedit fbirn-anat-101.v4 orig.mgz -aux brain.mgz -seg aparc+aseg.mgz \ -# -overlay sig.nii -reg bb.register.dat -fthresh 2 -fmax 4 - -mri_vol2surf --mov sig.nii \ - --reg bb.register.dat \ - --projfrac 0.5 --interp nearest \ - --hemi lh --o lh.sig.mgh - - -mri_info lh.sig.mgh - -#tksurfer fbirn-anat-101.v4 lh inflated -annot aparc \ -# -overlay lh.sig.mgh - -mri_vol2vol --mov ces.nii \ - --reg bb.register.dat \ - --fstarg --interp nearest \ - --o ces.anat.bb.mgh - -mri_info ces.anat.bb.mgh - -mri_segstats \ - --seg $SUBJECTS_DIR/fbirn-anat-101.v4/mri/aparc+aseg.mgz \ - --ctab $FREESURFER_HOME/FreeSurferColorLUT.txt \ - --id 1021 --id 1022 --id 1030 --id 17 \ - --i ces.anat.bb.mgh --sum ces.bb.stats - -mri_vol2vol --mov sig.nii \ - --reg bb.register.dat \ - --fstarg --interp nearest \ - --o sig.anat.bb.mgh - -mri_segstats \ - --seg $SUBJECTS_DIR/fbirn-anat-101.v4/mri/aparc+aseg.mgz \ - --ctab $FREESURFER_HOME/FreeSurferColorLUT.txt \ - --id 1021 --id 1022 --id 1030 --id 17 \ - --i ces.anat.bb.mgh --sum ces.abs-masked.bb.stats \ - --mask sig.anat.bb.mgh --maskthresh 2 --masksign abs - -mri_segstats \ - --seg $SUBJECTS_DIR/fbirn-anat-101.v4/mri/aparc+aseg.mgz \ - --ctab $FREESURFER_HOME/FreeSurferColorLUT.txt \ - --id 1021 --id 1022 --id 1030 --id 17 \ - --i ces.anat.bb.mgh --sum ces.pos-masked.bb.stats \ - --mask sig.anat.bb.mgh --maskthresh 2 --masksign pos - -#------------------------------ -# ---- MultiModalFmriGroup ---- -#------------------------------ - -setenv TUTORIAL_DATA $FREESURFER_HOME/subjects/buckner_data/tutorial_subjs -setenv SUBJECTS_DIR $TUTORIAL_DATA -cd $TUTORIAL_DATA/multimodal/fmri - -#tkregister2 --mov fbirn-101/template.nii \ -# --reg fbirn-101/bb.register.dat --surf - -mris_preproc --target fsaverage --hemi lh \ - --iv fbirn-101/ces.nii fbirn-101/bb.register.dat \ - --iv fbirn-103/ces.nii fbirn-103/bb.register.dat \ - --iv fbirn-104/ces.nii fbirn-104/bb.register.dat \ - --iv fbirn-105/ces.nii fbirn-105/bb.register.dat \ - --iv fbirn-106/ces.nii fbirn-106/bb.register.dat \ - --projfrac 0.5 \ - --out lh.ces.mgh - -mri_info lh.ces.mgh - -mri_surf2surf --hemi lh --s fsaverage --fwhm 5 --cortex\ - --sval lh.ces.mgh --tval lh.ces.sm05.mgh - -mri_glmfit --y lh.ces.sm05.mgh --surf fsaverage lh \ - --osgm --glmdir lh.ces.sm05.osgm --cortex - -#tksurfer fsaverage lh inflated -annot aparc -ov lh.ces.sm05.osgm/osgm/sig.mgh - -asegstats2table \ - --meas volume \ - --tablefile ces.pos-masked.vol.stats \ - --i fbirn-101/ces.pos-masked.bb.stats \ - fbirn-103/ces.pos-masked.bb.stats \ - fbirn-104/ces.pos-masked.bb.stats \ - fbirn-105/ces.pos-masked.bb.stats \ - fbirn-106/ces.pos-masked.bb.stats - -asegstats2table \ - --meas mean \ - --tablefile ces.abs-masked.mean.stats \ - --i fbirn-101/ces.abs-masked.bb.stats \ - fbirn-103/ces.abs-masked.bb.stats \ - fbirn-104/ces.abs-masked.bb.stats \ - fbirn-105/ces.abs-masked.bb.stats \ - fbirn-106/ces.abs-masked.bb.stats - -asegstats2table \ - --meas mean \ - --tablefile ces.pos-masked.mean.stats \ - --i fbirn-101/ces.pos-masked.bb.stats \ - fbirn-103/ces.pos-masked.bb.stats \ - fbirn-104/ces.pos-masked.bb.stats \ - fbirn-105/ces.pos-masked.bb.stats \ - fbirn-106/ces.pos-masked.bb.stats - -#------------------------------ -# ---- MultiModalDtiIndividual ---- -#------------------------------ - -setenv TUTORIAL_DATA $FREESURFER_HOME/subjects/buckner_data/tutorial_subjs -setenv SUBJECTS_DIR $TUTORIAL_DATA -cd $TUTORIAL_DATA/multimodal/dti - -#tkregister2 --mov lowb.nii --reg register.dat --surf - -#tkmedit M87102113.v4 orig.mgz -aux brain.mgz \ -# -seg wmparc.mgz \ -# -reg register.dat -overlay fa.nii \ -# -fthresh 0.2 -fmax 1 - -mri_vol2vol --mov fa.nii \ - --reg register.dat \ - --fstarg --interp nearest \ - --o fa.anat.mgh - -mri_segstats \ - --seg $SUBJECTS_DIR/M87102113.v4/mri/wmparc.mgz \ - --ctab $FREESURFER_HOME/FreeSurferColorLUT.txt \ - --id 251 --id 3021 --id 3024 --id 3030 --id 12 --id 4 \ - --i fa.anat.mgh --sum fa.stats - -#------------------------------ -#Testing tksurfer, tkmedit and qdec -#------------------------------ - -cd $SUBJECTS_DIR - -tkmedit good_output brainmask.mgz lh.white \ - -aux T1.mgz -aux-surface rh.white \ - -segmentation aseg.mgz $FREESURFER_HOME/FreeSurferColorLUT.txt - -tksurfer good_output lh inflated - -qdec diff --git a/scripts/test_recon-all.csh b/scripts/test_recon-all.csh index b2a7f4b0efe..7b898c705d4 100755 --- a/scripts/test_recon-all.csh +++ b/scripts/test_recon-all.csh @@ -45,7 +45,7 @@ # -set VERSION='$Id: test_recon-all.csh,v 1.40 2016/06/16 15:21:05 zkaufman Exp $' +set VERSION='test_recon-all.csh @FS_VERSION@' set MAIL_LIST=(zkaufman@nmr.mgh.harvard.edu) # failure mailing list: diff --git a/scripts/tkmeditfv b/scripts/tkmeditfv index 532b8125dfa..e24d5c29532 100755 --- a/scripts/tkmeditfv +++ b/scripts/tkmeditfv @@ -1,7 +1,7 @@ #!/bin/tcsh -f # tkmeditfv -set VERSION = '$Id: tkmeditfv,v 1.18 2016/02/16 17:17:20 zkaufman Exp $'; +set VERSION = 'tkmeditfv @FS_VERSION@'; set subject = (); set overlay = (); diff --git a/scripts/tkregisterfv b/scripts/tkregisterfv index 6965f53fc88..5281ed0b18b 100755 --- a/scripts/tkregisterfv +++ b/scripts/tkregisterfv @@ -1,7 +1,7 @@ #!/bin/tcsh -f # tkregisterfv -set VERSION = '$Id: tkregisterfv,v 1.9 2016/03/16 21:34:54 greve Exp $'; +set VERSION = 'tkregisterfv @FS_VERSION@'; set subject = (); set movvol = (); diff --git a/scripts/tksurferfv b/scripts/tksurferfv index 881d9cf729a..a74999891d2 100755 --- a/scripts/tksurferfv +++ b/scripts/tksurferfv @@ -1,7 +1,7 @@ #!/bin/tcsh -f # tkmeditfv -set VERSION = '$Id: tksurferfv,v 1.10 2016/02/16 17:17:20 zkaufman Exp $'; +set VERSION = 'tksurferfv @FS_VERSION@'; set subject = (); set overlay = (); diff --git a/scripts/trac-all b/scripts/trac-all index ebdd3d86a3e..eff58148864 100755 --- a/scripts/trac-all +++ b/scripts/trac-all @@ -21,7 +21,7 @@ umask 002 -set VERSION = '$Id: trac-all,v 1.61 2016/12/18 14:01:27 ayendiki Exp $' +set VERSION = 'trac-all @FS_VERSION@'; set ProgName = `basename $0` set inputargs = ($argv) diff --git a/scripts/trac-paths b/scripts/trac-paths index 00baf9668d9..877e34d1754 100755 --- a/scripts/trac-paths +++ b/scripts/trac-paths @@ -21,7 +21,7 @@ umask 002 -set VERSION = '$Id: trac-paths,v 1.38 2016/12/18 13:59:26 ayendiki Exp $' +set VERSION = 'trac-paths @FS_VERSION@'; set ProgName = `basename $0` set inputargs = ($argv) diff --git a/scripts/trac-preproc b/scripts/trac-preproc index 22650587f48..4a22eb83d2c 100755 --- a/scripts/trac-preproc +++ b/scripts/trac-preproc @@ -21,7 +21,7 @@ umask 002 -set VERSION = '$Id: trac-preproc,v 1.57 2016/12/21 20:57:53 zkaufman Exp $' +set VERSION = 'trac-preproc @FS_VERSION@'; set ProgName = `basename $0` set inputargs = ($argv) diff --git a/scripts/tractstats2table b/scripts/tractstats2table index 8e6bc88e932..d9b677da7bb 100755 --- a/scripts/tractstats2table +++ b/scripts/tractstats2table @@ -13,7 +13,6 @@ import freesurfer.utils.legacy as fsutils from freesurfer.utils.legacy import TractOverallStatsParser, TractByvoxelStatsParser, BadFileError, tractlogger # Original Version - Krish Subramaniam, MGH -# $Id: tractstats2table,v 1.5 2011/04/02 00:54:53 krish Exp $ # globals l = tractlogger @@ -90,7 +89,7 @@ def options_parse(): Command Line Options Parser for trackstats2table initiate the option parser and return the parsed object """ - parser = optparse.OptionParser(version='$Id: tractstats2table,v 1.5 2011/04/02 00:54:53 krish Exp $', usage=HELPTEXT) + parser = optparse.OptionParser(usage=HELPTEXT) # help text h_sub = '(REQUIRED) subject1 ' diff --git a/scripts/train-gcs-atlas b/scripts/train-gcs-atlas index 7ffd5fef3d0..ce2b24bc396 100755 --- a/scripts/train-gcs-atlas +++ b/scripts/train-gcs-atlas @@ -5,7 +5,7 @@ if(-e $FREESURFER_HOME/sources.csh) then source $FREESURFER_HOME/sources.csh endif -set VERSION = '$Id$'; +set VERSION = 'train-gcs-atlas @FS_VERSION@'; set gcsfile = (); set subjects = (); diff --git a/scripts/unpackimadir b/scripts/unpackimadir index 9e9db495124..6643ff78cb5 100755 --- a/scripts/unpackimadir +++ b/scripts/unpackimadir @@ -25,7 +25,7 @@ # -set VERSION = '$Id: unpackimadir,v 1.7 2016/02/16 17:17:20 zkaufman Exp $'; +set VERSION = 'unpackimadir @FS_VERSION@'; set unpackmincdiropts = (); set srcdir = (); set targdir = (); diff --git a/scripts/unpackimadir2 b/scripts/unpackimadir2 index cad6c9fa8db..be5c6d023b4 100755 --- a/scripts/unpackimadir2 +++ b/scripts/unpackimadir2 @@ -274,10 +274,6 @@ AUTHOR Douglas N. Greve, Ph.D., MGH-NMR Center" -puts "" -puts {$Id: unpackimadir2,v 1.6 2007/09/19 16:53:06 greve Exp $} -puts "" - exit 1; } #------------------------------------------------------------------# @@ -830,8 +826,6 @@ CheckArgs; # Dump some info to the screen puts ""; -puts {$Id: unpackimadir2,v 1.6 2007/09/19 16:53:06 greve Exp $}; -puts ""; puts [pwd]; puts "$argv" puts ""; @@ -922,7 +916,6 @@ if [catch {open $LogFile w} LF] { } puts "INFO: Logfile is $LogFile" puts $LF "Log file created by unpackimadir2" -puts $LF {$Id: unpackimadir2,v 1.6 2007/09/19 16:53:06 greve Exp $} puts $LF "$LogFile" puts $LF [pwd]; puts $LF [exec date]; diff --git a/scripts/unpackmincdir b/scripts/unpackmincdir index 9052278ff73..b1f52d400e0 100755 --- a/scripts/unpackmincdir +++ b/scripts/unpackmincdir @@ -17,7 +17,7 @@ # -set VERSION = '$Id: unpackmincdir,v 1.9 2016/02/16 17:17:20 zkaufman Exp $'; +set VERSION = 'unpackmincdir @FS_VERSION@'; set n = `echo $argv | egrep -e -version | wc -l` if($n != 0) then diff --git a/scripts/unpacksdcmdir b/scripts/unpacksdcmdir index c3161d536ff..133fd3c4ce9 100755 --- a/scripts/unpacksdcmdir +++ b/scripts/unpacksdcmdir @@ -355,10 +355,6 @@ puts "" puts "AUTHOR" puts "" puts "Douglas N. Greve, Ph.D., MGH-NMR Center" -puts "" -puts "VERSION" -puts "" -puts {$Id: unpacksdcmdir,v 1.25 2015/02/06 19:19:50 greve Exp $} exit 1; @@ -890,8 +886,6 @@ set mriconvert mri_convert # Dump some info to the screen puts ""; -puts {$Id: unpacksdcmdir,v 1.25 2015/02/06 19:19:50 greve Exp $}; -puts ""; puts [pwd]; puts "$argv" puts ""; @@ -939,7 +933,6 @@ if [catch {open $LogFile w} LF] { } puts "INFO: Logfile is $LogFile" puts $LF "Log file created by unpacksdcmdir" -puts $LF {$Id: unpacksdcmdir,v 1.25 2015/02/06 19:19:50 greve Exp $}; puts $LF "$LogFile" puts $LF [pwd]; puts $LF [exec date]; diff --git a/scripts/vertexvol b/scripts/vertexvol index 6b1bc1db99e..b88e0dbcbc8 100755 --- a/scripts/vertexvol +++ b/scripts/vertexvol @@ -1,5 +1,4 @@ #!/bin/tcsh -f -# $Id: vertexvol,v 1.2 2015/12/25 23:59:19 zkaufman Exp $ # Copyright © 2011-2015 The General Hospital Corporation (Boston, MA) "MGH" # @@ -11,7 +10,7 @@ # # Reporting: freesurfer@nmr.mgh.harvard.edu -set VERSION = '$Id: vertexvol,v 1.2 2015/12/25 23:59:19 zkaufman Exp $'; +set VERSION = 'vertexvol @FS_VERSION@'; set outfile = (); set subject = (); diff --git a/scripts/vol2segavg b/scripts/vol2segavg index d41adb56c8b..b1e07d5fcfa 100755 --- a/scripts/vol2segavg +++ b/scripts/vol2segavg @@ -1,7 +1,7 @@ #!/bin/tcsh -f # vol2segavg -set VERSION = '$Id: vol2segavg,v 1.7 2016/02/16 17:17:20 zkaufman Exp $'; +set VERSION = 'vol2segavg @FS_VERSION@'; set outfile = (); set subject = (); diff --git a/scripts/vol2subfield b/scripts/vol2subfield index 3e46653b82c..f18ba4bdf03 100755 --- a/scripts/vol2subfield +++ b/scripts/vol2subfield @@ -5,7 +5,7 @@ if(-e $FREESURFER_HOME/sources.csh) then source $FREESURFER_HOME/sources.csh endif -set VERSION = '$Id$'; +set VERSION = 'vol2subfield @FS_VERSION@'; set scriptname = `basename $0` set invol = (); diff --git a/scripts/vol2symsurf b/scripts/vol2symsurf index c81a2ac0d94..523f7e21e60 100755 --- a/scripts/vol2symsurf +++ b/scripts/vol2symsurf @@ -1,7 +1,7 @@ #!/bin/tcsh -f # vol2symsurf -set VERSION = '$Id: vol2symsurf,v 1.5 2016/02/16 17:17:20 zkaufman Exp $'; +set VERSION = 'vol2symsurf @FS_VERSION@'; set outstem = (); set outfmt = (); diff --git a/scripts/vsm-smooth b/scripts/vsm-smooth index aa4d8afd674..42d052604d0 100755 --- a/scripts/vsm-smooth +++ b/scripts/vsm-smooth @@ -1,7 +1,7 @@ #!/bin/tcsh -f # vsm-smooth -set VERSION = '$Id: vsm-smooth,v 1.4 2016/02/16 17:17:20 zkaufman Exp $'; +set VERSION = 'vsm-smooth @FS_VERSION@'; set vsm = (); set vsmout = (); diff --git a/scripts/wfilemask b/scripts/wfilemask index fde21a25f53..e7009345773 100755 --- a/scripts/wfilemask +++ b/scripts/wfilemask @@ -20,7 +20,7 @@ # wfilemask # -set VERSION = '$Id: wfilemask,v 1.7 2016/02/16 17:17:20 zkaufman Exp $'; +set VERSION = 'wfilemask @FS_VERSION@'; set inputargs = ($argv); set LabelFile = (); diff --git a/scripts/wm-anat-snr b/scripts/wm-anat-snr index ae50292e548..086a44e21ae 100755 --- a/scripts/wm-anat-snr +++ b/scripts/wm-anat-snr @@ -1,6 +1,6 @@ #!/bin/tcsh -f -set VERSION = '$Id: wm-anat-snr,v 1.3 2016/02/16 17:17:20 zkaufman Exp $'; +set VERSION = 'wm-anat-snr @FS_VERSION@'; set inputargs = ($argv); set subject = (); diff --git a/scripts/wmedits2surf b/scripts/wmedits2surf index 0c737521f71..201e14bfd7e 100755 --- a/scripts/wmedits2surf +++ b/scripts/wmedits2surf @@ -1,7 +1,7 @@ #!/bin/tcsh -f # wmedits2surf -set VERSION = '$Id: wmedits2surf,v 1.4 2016/02/16 17:17:20 zkaufman Exp $'; +set VERSION = 'wmedits2surf @FS_VERSION@'; set subject = (); set hemilist = (lh rh); diff --git a/scripts/wmsaseg b/scripts/wmsaseg index aec7c446975..aa47ef18b73 100755 --- a/scripts/wmsaseg +++ b/scripts/wmsaseg @@ -1,7 +1,7 @@ #!/bin/tcsh -f # wmsaseg -set VERSION = '$Id: wmsaseg,v 1.5 2016/02/16 17:17:20 zkaufman Exp $'; +set VERSION = 'wmsaseg @FS_VERSION@'; #set VERSION = "`ls -l $0`" set gca = $FREESURFER_HOME/average/wmsa_new_eesmith.gca diff --git a/scripts/xcerebralseg b/scripts/xcerebralseg index 8eb9cfbc257..83fa355310f 100755 --- a/scripts/xcerebralseg +++ b/scripts/xcerebralseg @@ -1,7 +1,7 @@ #!/bin/tcsh -f # xcerebralseg -set VERSION = '$Id: xcerebralseg,v 1.12 2017/01/18 21:21:00 zkaufman Exp $'; +set VERSION = 'xcerebralseg @FS_VERSION@'; set outvol = apas+head.mgz set subject = (); diff --git a/scripts/xcorr b/scripts/xcorr index 05755b2d3f7..25196c25ed7 100755 --- a/scripts/xcorr +++ b/scripts/xcorr @@ -1,7 +1,7 @@ #!/bin/tcsh -f # xcorr -set VERSION = '$Id: xcorr,v 1.3 2016/02/16 17:17:20 zkaufman Exp $'; +set VERSION = 'xcorr @FS_VERSION@'; set outvol = (); set invol1 = (); diff --git a/scripts/xhemi-tal b/scripts/xhemi-tal index 82a643dac34..6693b65963e 100755 --- a/scripts/xhemi-tal +++ b/scripts/xhemi-tal @@ -19,7 +19,7 @@ # Reporting: freesurfer@nmr.mgh.harvard.edu # -set VERSION = '$Id: xhemi-tal,v 1.4 2016/02/16 17:17:20 zkaufman Exp $'; +set VERSION = 'xhemi-tal @FS_VERSION@'; set subject = (); set tmpdir = (); diff --git a/scripts/xhemireg b/scripts/xhemireg index cc3f72d8a12..8e545370357 100755 --- a/scripts/xhemireg +++ b/scripts/xhemireg @@ -16,7 +16,7 @@ # Dont convert volumes in mri/orig # -set VERSION = '$Id: xhemireg,v 1.27 2016/08/02 21:16:24 greve Exp $'; +set VERSION = 'xhemireg @FS_VERSION@'; set subject = (); set srchemilist = (); diff --git a/scripts/xsanatreg b/scripts/xsanatreg index bd52b364c17..e7af6450374 100755 --- a/scripts/xsanatreg +++ b/scripts/xsanatreg @@ -20,7 +20,7 @@ # -set VERSION = '$Id: xsanatreg,v 1.8 2016/02/16 17:17:20 zkaufman Exp $'; +set VERSION = 'xsanatreg @FS_VERSION@'; set src = (); set srcminc = (); diff --git a/stat_normalize/stat_normalize.cpp b/stat_normalize/stat_normalize.cpp index 1c4626ca307..ec18b0e898a 100644 --- a/stat_normalize/stat_normalize.cpp +++ b/stat_normalize/stat_normalize.cpp @@ -27,8 +27,6 @@ #include "stats.h" #include "version.h" -static char vcid[] = - "$Id: stat_normalize.c,v 1.14 2011/03/02 00:04:40 nicks Exp $"; int main(int argc, char *argv[]) ; @@ -279,7 +277,7 @@ print_help(void) { static void print_version(void) { - fprintf(stderr, "%s\n", vcid) ; + fprintf(stderr, "%s\n", getVersion().c_str()) ; exit(1) ; } diff --git a/talairach_afd/talairach_afd.cpp b/talairach_afd/talairach_afd.cpp index 01ec022f1e6..a545a39bd7d 100644 --- a/talairach_afd/talairach_afd.cpp +++ b/talairach_afd/talairach_afd.cpp @@ -40,8 +40,6 @@ #include "fio.h" #include "transform.h" -static char vcid[] = - "$Id: talairach_afd.c,v 1.13 2011/03/02 00:04:40 nicks Exp $"; static int get_option(int argc, char *argv[]) ; static void usage(int exit_value) ; static char *subject_name = NULL; @@ -264,7 +262,7 @@ int main(int argc, char *argv[]) ----------------------------------------------------------------------*/ static void print_version(void) { - fprintf(stdout, "%s\n", vcid) ; + fprintf(stdout, "%s\n", getVersion().c_str()) ; exit(1) ; } diff --git a/talairach_avi/4dfptoanalyze.c b/talairach_avi/4dfptoanalyze.c index 8ebd4abc4f0..4766555a815 100644 --- a/talairach_avi/4dfptoanalyze.c +++ b/talairach_avi/4dfptoanalyze.c @@ -55,7 +55,6 @@ extern void flipy (float *imgf, int *pnx, int* pny, int *pnz); /* cflip.c */ extern void flipz (float *imgf, int *pnx, int* pny, int *pnz); /* cflip.c */ extern int Inithdr (struct dsr *phdr, int *imgdim, float *voxsiz, char *proto_header); -static char rcsid[] = "$Id: 4dfptoanalyze.c,v 1.2 2007/05/05 00:00:06 nicks Exp $"; int main (int argc, char *argv[]) { /*******/ /* i/o */ @@ -92,7 +91,7 @@ int main (int argc, char *argv[]) { int spm99 = 0; int swab_flag = 0; - fprintf (stdout, "%s\n", rcsid); + fprintf (stdout, "%s\n", "freesurfer 4dfptoanalyze.c"); setprog (program, argv); /************************/ /* process command line */ @@ -224,7 +223,7 @@ int main (int argc, char *argv[]) { /* create rec file */ /*******************/ sprintf (outfile, "%s%s.img", imgroot, trailer); - startrece (outfile, argc, argv, rcsid, control); + startrece (outfile, argc, argv, "freesurfer 4dfptoanalyze.c", control); sprintf (command, "Voxel values scaled by %f\n", cscale); printrec (command); catrec (imgfile); endrec (); diff --git a/talairach_avi/CMakeLists.txt b/talairach_avi/CMakeLists.txt index 6c8413de77a..57cd5ef2eca 100644 --- a/talairach_avi/CMakeLists.txt +++ b/talairach_avi/CMakeLists.txt @@ -9,8 +9,7 @@ else() set(CMAKE_Fortran_FLAGS "${CMAKE_Fortran_FLAGS} -ffixed-line-length-132 -fno-second-underscore") endif() -install( - PROGRAMS +install_configured( talairach_avi mpr2mni305 brec diff --git a/talairach_avi/Getifh.c b/talairach_avi/Getifh.c index 429e969405d..dd1f4b15ff1 100644 --- a/talairach_avi/Getifh.c +++ b/talairach_avi/Getifh.c @@ -24,8 +24,7 @@ #define MAXL 256 -static char rcsid[] = "$Id: Getifh.c,v 1.3 2007/08/04 02:23:35 nicks Exp $"; -void Getifh_rcs (void) {printf ("%s\n", rcsid);} +void Getifh_rcs (void) {printf ("%s\n", "freesurfer Getifh.c");} int Getifh (char *imgfile, IFH *ifhdr) { FILE *fp; diff --git a/talairach_avi/Inithdr.c b/talairach_avi/Inithdr.c index 3bb4f0bc65c..0c01c6d5f2e 100644 --- a/talairach_avi/Inithdr.c +++ b/talairach_avi/Inithdr.c @@ -31,8 +31,7 @@ #define MAXL 256 -static char rcsid[] = "$Id: Inithdr.c,v 1.2 2007/05/05 00:00:06 nicks Exp $"; -void Inithdr_rcs (void) {printf ("%s\n", rcsid);} +void Inithdr_rcs (void) {printf ("%s\n", "freesurfer Inithdr.c");} int Inithdr (struct dsr *phdr, int *imgdim, float *voxdim, char *proto_imgfile) { FILE *fp; char *str, string[MAXL], proto_hdr[MAXL]; diff --git a/talairach_avi/analyzeto4dfp.c b/talairach_avi/analyzeto4dfp.c index 38628ef4c88..238b07487db 100644 --- a/talairach_avi/analyzeto4dfp.c +++ b/talairach_avi/analyzeto4dfp.c @@ -38,7 +38,6 @@ extern void flipx (float *imgf, int *pnx, int* pny, int *pnz); /* cflip.c */ extern void flipy (float *imgf, int *pnx, int* pny, int *pnz); /* cflip.c */ extern void flipz (float *imgf, int *pnx, int* pny, int *pnz); /* cflip.c */ -static char rcsid[] = "$Id: analyzeto4dfp.c,v 1.2 2007/05/05 00:00:06 nicks Exp $"; int main (int argc, char *argv[]) { FILE *fpimg, *fpout; struct dsr hdr; /* ANALYZE hdr */ @@ -74,7 +73,7 @@ int main (int argc, char *argv[]) { int O_flag = 0; int xflag = 0, yflag = 0, zflag = 0; - fprintf (stdout, "%s\n", rcsid); + fprintf (stdout, "%s\n", "freesurfer analyzeto4dfp.c"); setprog (program, argv); /************************/ /* process command line */ @@ -244,7 +243,7 @@ int main (int argc, char *argv[]) { /*******************/ /* create rec file */ /*******************/ - startrece (outfile, argc, argv, rcsid, control); + startrece (outfile, argc, argv, "freesurfer analyzeto4dfp.c", control); if (swab_flag) { sprintf (command, "Byte order swapped\n"); printrec (command); diff --git a/talairach_avi/compute_vox2vox.c b/talairach_avi/compute_vox2vox.c index 00d89b24e78..b2ae3ede8a5 100644 --- a/talairach_avi/compute_vox2vox.c +++ b/talairach_avi/compute_vox2vox.c @@ -38,7 +38,6 @@ extern void vrtflip_ (int *iori, int *imgdim, float *centeri, float *mmppixi, fl /***********/ /* globals */ /***********/ -static char rcsid[] = "$Id: compute_vox2vox.c,v 1.3 2010/02/27 01:41:53 nicks Exp $"; static char program[MAXL]; void t4list (FILE *fp, float *t4) { @@ -54,7 +53,7 @@ void write_command_line (FILE *outfp, int argc, char *argv[]) { fprintf (outfp, "# %s", program); for (i = 1; i < argc; i++) fprintf (outfp, " %s", argv[i]); - fprintf (outfp, "\n# %s\n", rcsid); + fprintf (outfp, "\n# %s\n", "freesurfer compute_vox2vox.c"); } int main (int argc, char *argv[]) { @@ -79,7 +78,7 @@ int main (int argc, char *argv[]) { float t4[16]; /* affine warp */ float mmppixs[3], centers[3], mmppixt[3], centert[3]; - printf ("%s\n", rcsid); + printf ("%s\n", "freesurfer compute_vox2vox.c"); if (!(ptr = strrchr (argv[0], '/'))) ptr = argv[0]; else ptr++; strcpy (program, ptr); #ifndef HAVE_GFORTRAN diff --git a/talairach_avi/conc.c b/talairach_avi/conc.c index 2a76a0be47e..864303681b6 100644 --- a/talairach_avi/conc.c +++ b/talairach_avi/conc.c @@ -46,7 +46,6 @@ int split (char *string, char *srgv[], int maxp) { /********************/ /* global variables */ /********************/ -static char rcsid[] = "$Id: conc.c,v 1.2 2007/05/05 00:00:06 nicks Exp $"; void conc_init_quiet (CONC_BLOCK *conc_block, char *program) { strcpy (conc_block->program, program); @@ -55,7 +54,7 @@ void conc_init_quiet (CONC_BLOCK *conc_block, char *program) { } void conc_init (CONC_BLOCK *conc_block, char *program) { - printf ("%s\n", rcsid); + printf ("%s\n", "freesurfer conc.c"); strcpy (conc_block->program, program); conc_block->rnfile = conc_block->wnfile = conc_block->imgfp_open = 0; *conc_block->lstroot = *conc_block->lstfile = *conc_block->outroot = *conc_block->outfile = '\0'; diff --git a/talairach_avi/endianio.c b/talairach_avi/endianio.c index 902b6f4f282..a420a1d9d69 100644 --- a/talairach_avi/endianio.c +++ b/talairach_avi/endianio.c @@ -25,8 +25,7 @@ #define MAXL 256 -static char rcsid[] = "$Id: endianio.c,v 1.4 2012/01/04 03:16:15 nicks Exp $"; -void endianio_rcs (void) {printf ("%s\n", rcsid);} +void endianio_rcs (void) {printf ("%s\n", "freesurfer endianio.c");} void swab2 (char *a) { char t; diff --git a/talairach_avi/fimgreg.f b/talairach_avi/fimgreg.f index 4e4758e1f4c..e5ae7d29585 100644 --- a/talairach_avi/fimgreg.f +++ b/talairach_avi/fimgreg.f @@ -58,7 +58,7 @@ c add rscale to hessian algorithm c subroutine fimgreg_rcs - write(*,"('$Id: fimgreg.f,v 1.1 2007/05/04 22:33:59 nicks Exp $')") + write(*,"('fimgreg.f')") return end diff --git a/talairach_avi/flip_4dfp.c b/talairach_avi/flip_4dfp.c index 7f462bc5617..86c716388f0 100644 --- a/talairach_avi/flip_4dfp.c +++ b/talairach_avi/flip_4dfp.c @@ -38,7 +38,6 @@ extern void flipx (float *imgf, int *pnx, int* pny, int *pnz); /* cflip.c */ extern void flipy (float *imgf, int *pnx, int* pny, int *pnz); /* cflip.c */ extern void flipz (float *imgf, int *pnx, int* pny, int *pnz); /* cflip.c */ -static char rcsid[] = "$Id: flip_4dfp.c,v 1.2 2007/05/05 00:00:06 nicks Exp $"; int main (int argc, char *argv[]) { FILE *imgfp, *outfp; IFH ifh; @@ -56,7 +55,7 @@ int main (int argc, char *argv[]) { int xflag = 0, yflag = 0, zflag = 0; setprog (program, argv); - printf ("%s\n", rcsid); + printf ("%s\n", "freesurfer flip_4dfp.c"); /************************/ /* process command line */ /************************/ @@ -133,7 +132,7 @@ int main (int argc, char *argv[]) { /*******************/ /* create rec file */ /*******************/ - startrece (outfile, argc, argv, rcsid, control); + startrece (outfile, argc, argv, "freesurfer flip_4dfp.c", control); catrec (imgfile); endrec (); diff --git a/talairach_avi/ft4ixyz.f b/talairach_avi/ft4ixyz.f index 7801cfdd46a..2ab1a30c9d9 100644 --- a/talairach_avi/ft4ixyz.f +++ b/talairach_avi/ft4ixyz.f @@ -10,7 +10,7 @@ c Initial revision c subroutine ft4ixyz_rcs - write(*,"('$Id: ft4ixyz.f,v 1.1 2007/05/04 22:33:59 nicks Exp $')") + write(*,"('ft4ixyz.f')") return end diff --git a/talairach_avi/gauss_4dfp.c b/talairach_avi/gauss_4dfp.c index f62a24c42cb..2834c1da82f 100644 --- a/talairach_avi/gauss_4dfp.c +++ b/talairach_avi/gauss_4dfp.c @@ -64,7 +64,6 @@ void usage (char* program) { exit (1); } -static char rcsid[] = "$Id: gauss_4dfp.c,v 1.3 2009/05/15 21:43:46 nicks Exp $"; int main (int argc, char **argv) { CONC_BLOCK conc_block; /* conc i/o control block */ FILE *imgfp=NULL, *outfp=NULL; @@ -96,7 +95,7 @@ int main (int argc, char **argv) { int wrap_flag = 0; int diff_flag = 0; - fprintf (stdout, "%s\n", rcsid); + fprintf (stdout, "%s\n", "freesurfer gauss_4dfp.c"); setprog (program, argv); /************************/ /* process command line */ @@ -202,7 +201,7 @@ int main (int argc, char **argv) { /* ifh hdr rec */ /***************/ if (conc_flag) { - status |= conc_ifh_hdr_rec (&conc_block, argc, argv, rcsid); + status |= conc_ifh_hdr_rec (&conc_block, argc, argv, "freesurfer gauss_4dfp.c"); conc_free (&conc_block); } else { if (fclose (imgfp)) errr (program, imgfile); @@ -211,7 +210,7 @@ int main (int argc, char **argv) { sprintf (command, "ifh2hdr %s", outroot); status |= system (command); } - startrece (outfile, argc, argv, rcsid, control); + startrece (outfile, argc, argv, "freesurfer gauss_4dfp.c", control); catrec (imgfile); endrec (); diff --git a/talairach_avi/ifh2hdr.c b/talairach_avi/ifh2hdr.c index a765d4023ac..95803694265 100644 --- a/talairach_avi/ifh2hdr.c +++ b/talairach_avi/ifh2hdr.c @@ -40,7 +40,6 @@ void getrange (char *string, float *minval, float *maxval) { extern int Inithdr (struct dsr *phdr, int *imgdim, float *voxdim, char *proto_imgfile); -static char rcsid[] = "$Id: ifh2hdr.c,v 1.3 2007/05/05 10:45:03 nicks Exp $"; int main (int argc, char *argv[]) { FILE *fp; struct dsr hdr; @@ -64,7 +63,7 @@ int main (int argc, char *argv[]) { int isbig, swab_flag, range_flag = 0; - printf ("%s\n", rcsid); + printf ("%s\n", "freesurfer ifh2hdr.c"); if (!(str = strrchr (argv[0], '/'))) str = argv[0]; else str++; strcpy (program, str); diff --git a/talairach_avi/imgreg_4dfp.c b/talairach_avi/imgreg_4dfp.c index 7a3f21b063a..97aae454934 100644 --- a/talairach_avi/imgreg_4dfp.c +++ b/talairach_avi/imgreg_4dfp.c @@ -62,7 +62,6 @@ void read_file_float (char *filename, float *stack, int dimension, char *program || fclose (fp)) errr (program, filename); } -static char rcsid[] = "$Id: imgreg_4dfp.c,v 1.4 2010/02/27 01:41:53 nicks Exp $"; int main (int argc, char **argv) { /************/ /* imag I/O */ @@ -92,7 +91,7 @@ int main (int argc, char **argv) { #ifndef HAVE_GFORTRAN f_init (); /* initialize FORTRAN I/O */ #endif - fprintf (stdout, "%s\n", rcsid); + fprintf (stdout, "%s\n", "freesurfer imgreg_4dfp.c"); fflush (stdout); setprog (program, argv); @@ -200,7 +199,7 @@ int main (int argc, char **argv) { tparam2warp_ (&mode, param, t4); fp = fopen (t4file, "w"); for (k = 0; k < argc; k++) fprintf (fp, "%s ", argv[k]); - fprintf (fp, "\n%s\nt4\n", rcsid); + fprintf (fp, "\n%s\nt4\n", "freesurfer imgreg_4dfp.c"); for (k = 0; k < 4; k++) fprintf (fp, "%10.6f%10.6f%10.6f%10.4f\n",t4[0+k],t4[4+k],t4[8+k],t4[12+k]); if (mode & 256) fprintf (fp, "scale: %10.6f\n", param[12]); fclose (fp); diff --git a/talairach_avi/imgvalm.f b/talairach_avi/imgvalm.f index 51bd1ca17ec..9e542ae46c7 100644 --- a/talairach_avi/imgvalm.f +++ b/talairach_avi/imgvalm.f @@ -1,5 +1,3 @@ -c$Id: imgvalm.f,v 1.1 2007/05/04 22:33:59 nicks Exp $ -c$Log: imgvalm.f,v $ cRevision 1.1 2007/05/04 22:33:59 nicks cnew talairach alignment utility, using Avi Snyders registration tools c diff --git a/talairach_avi/imgvalx.f b/talairach_avi/imgvalx.f index 3111deb1568..04d8f799df3 100644 --- a/talairach_avi/imgvalx.f +++ b/talairach_avi/imgvalx.f @@ -1,5 +1,3 @@ -c$Id: imgvalx.f,v 1.1 2007/05/04 22:33:59 nicks Exp $ -c$Log: imgvalx.f,v $ cRevision 1.1 2007/05/04 22:33:59 nicks cnew talairach alignment utility, using Avi Snyders registration tools c diff --git a/talairach_avi/mpr2mni305 b/talairach_avi/mpr2mni305 index 0deabe89dbe..9071f96961d 100755 --- a/talairach_avi/mpr2mni305 +++ b/talairach_avi/mpr2mni305 @@ -25,7 +25,7 @@ #new talairach alignment utility, using Avi Snyders registration tools # -set idstr = '$Id: mpr2mni305,v 1.5 2015/12/18 23:56:21 zkaufman Exp $' +set idstr = 'mpr2mni305 @FS_VERSION@' set program = $0; set program = $program:t if (${#argv} < 1) then diff --git a/talairach_avi/polfit.f b/talairach_avi/polfit.f index 366cb2b3d76..339e5327bd4 100644 --- a/talairach_avi/polfit.f +++ b/talairach_avi/polfit.f @@ -1,5 +1,3 @@ -c $Id: polfit.f,v 1.1 2007/05/04 22:34:03 nicks Exp $ -c $Log: polfit.f,v $ c Revision 1.1 2007/05/04 22:34:03 nicks c new talairach alignment utility, using Avi Snyders registration tools c diff --git a/talairach_avi/rec.c b/talairach_avi/rec.c index 3f2ad264d40..1328c065cac 100644 --- a/talairach_avi/rec.c +++ b/talairach_avi/rec.c @@ -33,9 +33,8 @@ /* global variables */ /********************/ static char recfile[MAXL] = ""; -static char rcsid[] = "$Id: rec.c,v 1.2 2007/05/05 00:00:07 nicks Exp $"; -void rec_rcsid (void) {printf ("%s\n", rcsid);} +void rec_rcsid (void) {printf ("%s\n", "freesurfer rec.c");} const char* current_date_time() { time_t tt = time(&tt); diff --git a/talairach_avi/spline3dvgh.f b/talairach_avi/spline3dvgh.f index f646da8440d..67421f88980 100644 --- a/talairach_avi/spline3dvgh.f +++ b/talairach_avi/spline3dvgh.f @@ -49,7 +49,7 @@ c end subroutine spline3dvgh_rcs - write (*,"('$Id: spline3dvgh.f,v 1.1 2007/05/04 22:34:03 nicks Exp $')") + write (*,"('spline3dvgh.f')") return end diff --git a/talairach_avi/t4_sub.f b/talairach_avi/t4_sub.f index ccf33615875..4e5223829cf 100644 --- a/talairach_avi/t4_sub.f +++ b/talairach_avi/t4_sub.f @@ -34,7 +34,7 @@ c Initial revision subroutine t4_sub_rcsid - write (*,"('$Id: t4_sub.f,v 1.2 2009/08/21 19:14:07 nicks Exp $')") + write (*,"('t4_sub.f')") return end diff --git a/talairach_avi/t4img_4dfp b/talairach_avi/t4img_4dfp index 1acd3e4bd15..4203a43b379 100755 --- a/talairach_avi/t4img_4dfp +++ b/talairach_avi/t4img_4dfp @@ -1,6 +1,6 @@ #!/bin/csh -set rcsid = '$Id: t4img_4dfp,v 1.1 2007/05/04 22:34:03 nicks Exp $' +set rcsid = 't4img_4dfp @FS_VERSION@' @ debug = 0 diff --git a/talairach_avi/t4imgs_4dfp.c b/talairach_avi/t4imgs_4dfp.c index e52618395f4..c993e75b4f0 100644 --- a/talairach_avi/t4imgs_4dfp.c +++ b/talairach_avi/t4imgs_4dfp.c @@ -81,7 +81,6 @@ typedef struct { int shift; } RUN_INFO; -static char rcsid[] = "$Id: t4imgs_4dfp.c,v 1.3 2010/02/27 01:41:53 nicks Exp $"; int main (int argc, char *argv[]) { FILE *lstfp; /* input image list */ FILE *imgfp, *mskfp; /* input image and mask file pointers */ @@ -144,7 +143,7 @@ int main (int argc, char *argv[]) { int NaN_flag = 0; /* enable NaN output if value undefined */ int nearest_neighbor = 0; /* interpolate */ - printf ("%s\n", rcsid); + printf ("%s\n", "freesurfer t4imgs_4dfp.c"); if (!(ptr = strrchr (argv[0], '/'))) ptr = argv[0]; else ptr++; strcpy (program, ptr); #ifndef HAVE_GFORTRAN @@ -329,7 +328,7 @@ int main (int argc, char *argv[]) { /* construct output file name */ /******************************/ sprintf (outfile, "%s.4dfp.img", outroot); - startrece (outfile, argc, argv, rcsid, control); + startrece (outfile, argc, argv, "freesurfer t4imgs_4dfp.c", control); if (spline_flag) { printrec ("resampling by 3D cubic spline interpolation\n"); } else if (nearest_neighbor) { diff --git a/talairach_avi/talairach_avi b/talairach_avi/talairach_avi index 34554713a5e..89fd9ac5677 100755 --- a/talairach_avi/talairach_avi +++ b/talairach_avi/talairach_avi @@ -19,7 +19,7 @@ # Reporting: freesurfer@nmr.mgh.harvard.edu # -set VERSION = '$Id: talairach_avi,v 1.13 2015/12/23 04:25:17 greve Exp $' +set VERSION = 'talairach_avi @FS_VERSION@'; set InVol = (); set XFM = (); diff --git a/talairach_avi/to_711-2B.f b/talairach_avi/to_711-2B.f index f6978e59cbc..8cafdcc80e9 100644 --- a/talairach_avi/to_711-2B.f +++ b/talairach_avi/to_711-2B.f @@ -1,5 +1,3 @@ -c$Id: to_711-2B.f,v 1.1 2007/05/04 22:34:03 nicks Exp $ -c$Log: to_711-2B.f,v $ cRevision 1.1 2007/05/04 22:34:03 nicks cnew talairach alignment utility, using Avi Snyders registration tools c diff --git a/talairach_avi/zero_lt_4dfp.c b/talairach_avi/zero_lt_4dfp.c index cdd331b0ed1..80be828303b 100644 --- a/talairach_avi/zero_lt_4dfp.c +++ b/talairach_avi/zero_lt_4dfp.c @@ -34,7 +34,6 @@ void setprog (char *program, char **argv) { strcpy (program, ptr); } -static char rcsid[]= "$Id: zero_lt_4dfp.c,v 1.2 2007/05/05 00:00:07 nicks Exp $"; int main (int argc, char **argv) { /*************/ /* image I/O */ @@ -64,7 +63,7 @@ int main (int argc, char **argv) { /*********/ int status = 0; - printf ("%s\n", rcsid); + printf ("%s\n", "freesurfer zero_lt_4dfp.c"); setprog (program, argv); /************************/ @@ -137,7 +136,7 @@ int main (int argc, char **argv) { /*******************/ /* create rec file */ /*******************/ - startrece (outfile, argc, argv, rcsid, control); + startrece (outfile, argc, argv, "freesurfer zero_lt_4dfp.c", control); catrec (imgfile); endrec (); diff --git a/tkregister2/tkregister2.cpp b/tkregister2/tkregister2.cpp index c16994ac84d..8566e9426ff 100644 --- a/tkregister2/tkregister2.cpp +++ b/tkregister2/tkregister2.cpp @@ -29,8 +29,6 @@ #endif #ifndef lint -static char vcid[] = -"$Id: tkregister2.c,v 1.133 2016/08/02 21:17:11 greve Exp $"; #endif /* lint */ #ifdef HAVE_TCL_TK_GL @@ -488,7 +486,7 @@ int Register(ClientData clientData, parse_commandline(argc, argv); check_options(); dump_options(stdout); - printf("%s\n",vcid); + printf("%s\n",getVersion().c_str()); printf("Diagnostic Level %d\n",Gdiag_no); AllocBuffs(); @@ -1692,7 +1690,7 @@ static void print_help(void) { print_usage() ; printf("\n"); - printf("%s\n", vcid) ; + std::cout << getVersion() << std::endl; printf( @@ -2191,7 +2189,7 @@ static void print_help(void) { /* --------------------------------------------- */ static void print_version(void) { - printf("%s\n", vcid) ; + std::cout << getVersion() << std::endl; exit(1) ; } diff --git a/trc/dmri_forrest.cxx b/trc/dmri_forrest.cxx index 175e6392f8d..0287b7b128f 100644 --- a/trc/dmri_forrest.cxx +++ b/trc/dmri_forrest.cxx @@ -61,7 +61,6 @@ int debug = 0, checkoptsonly = 0; int main(int argc, char *argv[]); -static char vcid[] = ""; const char *Progname = "dmri_forrest"; char *testDir = NULL, *trainListFile = NULL, @@ -305,7 +304,7 @@ static void usage_exit(void) { /* --------------------------------------------- */ static void print_version(void) { - cout << vcid << endl; + cout << getVersion() << endl; exit(1); } @@ -333,7 +332,7 @@ static void check_options(void) { /* --------------------------------------------- */ static void dump_options() { cout << endl - << vcid << endl + << getVersion() << endl << "cwd " << cwd << endl << "cmdline " << cmdline << endl << "sysname " << uts.sysname << endl diff --git a/trc/dmri_group.cxx b/trc/dmri_group.cxx index 1889600a0f2..c908bf2bcdc 100644 --- a/trc/dmri_group.cxx +++ b/trc/dmri_group.cxx @@ -64,7 +64,6 @@ int debug = 0, checkoptsonly = 0; int main(int argc, char *argv[]); -static char vcid[] = ""; const char *Progname = "dmri_group"; int nSection = 0; @@ -859,7 +858,7 @@ static void usage_exit(void) { /* --------------------------------------------- */ static void print_version(void) { - cout << vcid << endl; + cout << getVersion() << endl; exit(1); } @@ -878,7 +877,7 @@ static void check_options(void) { static void dump_options(FILE *fp) { cout << endl - << vcid << endl + << getVersion() << endl << "cwd " << cwd << endl << "cmdline " << cmdline << endl << "sysname " << uts.sysname << endl diff --git a/trc/dmri_mergepaths.cxx b/trc/dmri_mergepaths.cxx index 1bdf9cd5b8c..f71ab41d01b 100644 --- a/trc/dmri_mergepaths.cxx +++ b/trc/dmri_mergepaths.cxx @@ -61,7 +61,6 @@ int debug = 0, checkoptsonly = 0; int main(int argc, char *argv[]) ; -static char vcid[] = ""; const char *Progname = "dmri_mergepaths"; int nframe = 0; @@ -272,7 +271,7 @@ static void usage_exit(void) { /* --------------------------------------------- */ static void print_version(void) { - printf("%s\n", vcid) ; + std::cout << getVersion() << std::endl; exit(1) ; } @@ -300,7 +299,7 @@ static void check_options(void) { /* --------------------------------------------- */ static void dump_options(FILE *fp) { fprintf(fp,"\n"); - fprintf(fp,"%s\n",vcid); + fprintf(fp,"%s\n", getVersion().c_str()); fprintf(fp,"cwd %s\n",cwd); fprintf(fp,"cmdline %s\n",cmdline); fprintf(fp,"sysname %s\n",uts.sysname); diff --git a/trc/dmri_motion.cxx b/trc/dmri_motion.cxx index 6b146a5f1a6..194eafbf9b4 100644 --- a/trc/dmri_motion.cxx +++ b/trc/dmri_motion.cxx @@ -64,7 +64,6 @@ int debug = 0, checkoptsonly = 0; int main(int argc, char *argv[]) ; -static char vcid[] = ""; const char *Progname = "dmri_motion"; float T = 100, D = .001; @@ -511,7 +510,7 @@ static void usage_exit(void) { /* --------------------------------------------- */ static void print_version(void) { - cout << vcid << endl; + cout << getVersion() << endl; exit(1); } @@ -539,7 +538,7 @@ static void check_options(void) { static void dump_options() { cout << endl - << vcid << endl + << getVersion() << endl << "cwd " << cwd << endl << "cmdline " << cmdline << endl << "sysname " << uts.sysname << endl diff --git a/trc/dmri_paths.cxx b/trc/dmri_paths.cxx index 0557b9e6161..68361b82e1a 100644 --- a/trc/dmri_paths.cxx +++ b/trc/dmri_paths.cxx @@ -61,7 +61,6 @@ int debug = 0, checkoptsonly = 0; int main(int argc, char *argv[]); -static char vcid[] = ""; const char *Progname = "dmri_paths"; unsigned int nlab1 = 0, nlab2 = 0; @@ -569,7 +568,7 @@ static void usage_exit(void) { /* --------------------------------------------- */ static void print_version(void) { - cout << vcid << endl; + cout << getVersion() << endl; exit(1); } @@ -670,7 +669,7 @@ static void dump_options() { vector::const_iterator istr; cout << endl - << vcid << endl + << getVersion() << endl << "cwd " << cwd << endl << "cmdline " << cmdline << endl << "sysname " << uts.sysname << endl diff --git a/trc/dmri_pathstats.cxx b/trc/dmri_pathstats.cxx index 997ba72c2d0..145bbc2de7f 100644 --- a/trc/dmri_pathstats.cxx +++ b/trc/dmri_pathstats.cxx @@ -66,7 +66,6 @@ int debug = 0, checkoptsonly = 0; int main(int argc, char *argv[]) ; -static char vcid[] = ""; const char *Progname = "dmri_pathstats"; float probThresh = .2, faThresh = 0; @@ -660,7 +659,7 @@ static void usage_exit(void) { /* --------------------------------------------- */ static void print_version(void) { - printf("%s\n", vcid) ; + std::cout << getVersion() << std::endl; exit(1) ; } @@ -712,7 +711,7 @@ static void WriteHeader(char *OutFile) { fout << "# Title Pathway Statistics" << endl << "#" << endl << "# generating_program " << Progname << endl - << "# cvs_version " << vcid << endl + << "# cvs_version " << getVersion() << endl << "# cmdline " << cmdline << endl << "# sysname " << uts.sysname << endl << "# hostname " << uts.nodename << endl @@ -729,7 +728,7 @@ static void WriteHeader(char *OutFile) { static void dump_options(FILE *fp) { fprintf(fp,"\n"); - fprintf(fp,"%s\n",vcid); + fprintf(fp,"%s\n", getVersion().c_str()); fprintf(fp,"cwd %s\n",cwd); fprintf(fp,"cmdline %s\n",cmdline); fprintf(fp,"sysname %s\n",uts.sysname); diff --git a/trc/dmri_spline.cxx b/trc/dmri_spline.cxx index 00c83347bbc..f0b74e1d836 100644 --- a/trc/dmri_spline.cxx +++ b/trc/dmri_spline.cxx @@ -62,7 +62,6 @@ int debug = 0, checkoptsonly = 0; int main(int argc, char *argv[]); -static char vcid[] = ""; const char *Progname = "dmri_spline"; bool showControls = false; @@ -270,7 +269,7 @@ static void usage_exit(void) { /* --------------------------------------------- */ static void print_version(void) { - cout << vcid << endl; + cout << getVersion() << endl; exit(1); } @@ -294,7 +293,7 @@ static void check_options(void) { /* --------------------------------------------- */ static void dump_options() { cout << endl - << vcid << endl + << getVersion() << endl << "cwd " << cwd << endl << "cmdline " << cmdline << endl << "sysname " << uts.sysname << endl diff --git a/trc/dmri_train.cxx b/trc/dmri_train.cxx index 3120b589859..609aa90f4ae 100644 --- a/trc/dmri_train.cxx +++ b/trc/dmri_train.cxx @@ -61,7 +61,6 @@ int debug = 0, checkoptsonly = 0; int main(int argc, char *argv[]); -static char vcid[] = ""; const char *Progname = "dmri_train"; bool useTrunc = false, excludeStr = false; @@ -400,7 +399,7 @@ static void usage_exit(void) { /* --------------------------------------------- */ static void print_version(void) { - cout << vcid << endl; + cout << getVersion() << endl; exit(1); } @@ -489,7 +488,7 @@ static void dump_options() { vector::const_iterator istr; cout << endl - << vcid << endl + << getVersion() << endl << "cwd " << cwd << endl << "cmdline " << cmdline << endl << "sysname " << uts.sysname << endl diff --git a/trc/dmri_trk2trk.cxx b/trc/dmri_trk2trk.cxx index c38af80d539..9b893f57911 100644 --- a/trc/dmri_trk2trk.cxx +++ b/trc/dmri_trk2trk.cxx @@ -65,7 +65,6 @@ int debug = 0, checkoptsonly = 0; int main(int argc, char *argv[]) ; -static char vcid[] = ""; const char *Progname = "dmri_trk2trk"; int doInvNonlin = 0, doFill = 0, doMean = 0, doNth = 0, strNum = -1, @@ -955,7 +954,7 @@ static void usage_exit(void) { /* --------------------------------------------- */ static void print_version(void) { - cout << vcid << endl; + cout << getVersion() << endl; exit(1) ; } @@ -1009,7 +1008,7 @@ static void check_options(void) { /* --------------------------------------------- */ static void dump_options(FILE *fp) { cout << endl - << vcid << endl + << getVersion() << endl << "cwd " << cwd << endl << "cmdline " << cmdline << endl << "sysname " << uts.sysname << endl diff --git a/trc/dmri_vox2vox.cxx b/trc/dmri_vox2vox.cxx index e9191167222..88be45f0730 100644 --- a/trc/dmri_vox2vox.cxx +++ b/trc/dmri_vox2vox.cxx @@ -61,7 +61,6 @@ int debug = 0, checkoptsonly = 0; int main(int argc, char *argv[]) ; -static char vcid[] = ""; const char *Progname = "dmri_vox2vox"; int doInvNonlin = 0, nin = 0, nout = 0; @@ -344,7 +343,7 @@ static void usage_exit(void) { /* --------------------------------------------- */ static void print_version(void) { - printf("%s\n", vcid) ; + std::cout << getVersion() << std::endl; exit(1) ; } @@ -376,7 +375,7 @@ static void check_options(void) { /* --------------------------------------------- */ static void dump_options(FILE *fp) { fprintf(fp,"\n"); - fprintf(fp,"%s\n",vcid); + fprintf(fp,"%s\n", getVersion().c_str()); fprintf(fp,"cwd %s\n",cwd); fprintf(fp,"cmdline %s\n",cmdline); fprintf(fp,"sysname %s\n",uts.sysname); diff --git a/utils/cmdargs.cpp b/utils/cmdargs.cpp index 07229757c74..13e5149d981 100644 --- a/utils/cmdargs.cpp +++ b/utils/cmdargs.cpp @@ -13,7 +13,6 @@ */ // cmdargs.c - utilities for handling command-line arguments -// $Id: cmdargs.c,v 1.3 2011/03/02 00:04:42 nicks Exp $ #include #include @@ -21,9 +20,6 @@ #include "cmdargs.h" -/* --------------------------------------------- */ -const char *CMDSrcVersion(void) { return ("$Id: cmdargs.c,v 1.3 2011/03/02 00:04:42 nicks Exp $"); } - /* -------------------------------------------------------------------------- CMDargNErr() - prints a msg as to the number of arguments needed by a flag and then exits. diff --git a/utils/dti.cpp b/utils/dti.cpp index f1dae8863df..9808f64e982 100644 --- a/utils/dti.cpp +++ b/utils/dti.cpp @@ -12,7 +12,6 @@ * */ -// $Id: dti.c,v 1.30 2015/04/22 16:49:32 greve Exp $ #include "dti.h" #include @@ -35,9 +34,6 @@ #include "utils.h" #include "version.h" -/* --------------------------------------------- */ -// Return the CVS version of this file. -const char *DTIsrcVersion(void) { return ("$Id: dti.c,v 1.30 2015/04/22 16:49:32 greve Exp $"); } /* --------------------------------------------- */ int DTIfree(DTI **pdti) { diff --git a/utils/dtk.fs.cpp b/utils/dtk.fs.cpp index 866719d1a8b..a2906656188 100644 --- a/utils/dtk.fs.cpp +++ b/utils/dtk.fs.cpp @@ -15,12 +15,6 @@ * */ -/*! - \file dtk.fs.c - \brief FS interface to Diffusion Toolkit and TrackVis data. - DTk http://trackvis.org/docs/?subsect=fileformat - $Id: dtk.fs.c,v 1.5 2011/03/02 00:04:43 nicks Exp $ -*/ #include #include #include @@ -43,10 +37,6 @@ double round(double x); double trkvisOffset = 0.5; -/* --------------------------------------------- */ -// Return the CVS version of this file. -const char *DTKFSSrcVersion(void) { return ("$Id: dtk.fs.c,v 1.5 2011/03/02 00:04:43 nicks Exp $"); } - /*----------------------------------------------------------------*/ DTK_TRACK_SET *DTKloadTrackSet(char *trkfile, char *mrifile) { diff --git a/utils/fmriutils.cpp b/utils/fmriutils.cpp index 923dd469bfa..ba3024b5757 100644 --- a/utils/fmriutils.cpp +++ b/utils/fmriutils.cpp @@ -16,8 +16,6 @@ \file fmriutils.c \brief Multi-frame utilities - $Id: fmriutils.c,v 1.80 2016/11/01 20:25:12 greve Exp $ - Things to do: 1. Add flag to turn use of weight on and off @@ -46,10 +44,6 @@ double round(double x); #undef X #endif -/* --------------------------------------------- */ -// Return the CVS version of this file. -const char *fMRISrcVersion(void) { return ("$Id: fmriutils.c,v 1.80 2016/11/01 20:25:12 greve Exp $"); } - /*--------------------------------------------------------*/ MRI *fMRImatrixMultiply(MRI *inmri, MATRIX *M, MRI *outmri) { diff --git a/utils/fsenv.cpp b/utils/fsenv.cpp index edaad98eb05..e4e20ec68a7 100644 --- a/utils/fsenv.cpp +++ b/utils/fsenv.cpp @@ -31,9 +31,6 @@ #include "utils.h" #include "version.h" -/* --------------------------------------------- */ -// Return the CVS version of this file. -const char *FSENVsrcVersion(void) { return ("$Id: fsenv.c,v 1.7 2015/04/16 18:49:31 greve Exp $"); } FSENV *FSENVgetenv(void) { diff --git a/utils/fsglm.cpp b/utils/fsglm.cpp index f98f6f1cedb..e269ae44155 100644 --- a/utils/fsglm.cpp +++ b/utils/fsglm.cpp @@ -13,7 +13,6 @@ */ // fsglm.c - routines to perform GLM analysis. -// $Id: fsglm.c,v 1.34 2015/04/15 19:55:39 greve Exp $ /* y = X*beta + n; Forward Model beta = inv(X'*X)*X'*y; Fit beta @@ -136,10 +135,6 @@ #include "utils.h" #undef X -/* --------------------------------------------- */ -// Return the CVS version of this file. -const char *GLMSrcVersion(void) { return ("$Id: fsglm.c,v 1.34 2015/04/15 19:55:39 greve Exp $"); } - /*------------------------------------------------------------ GLManalyze() - fill y, X, ncontrasts, and C in the glm and run this to fit and test. diff --git a/utils/mosaic.cpp b/utils/mosaic.cpp index 48d6c85bcc8..7643ade6249 100644 --- a/utils/mosaic.cpp +++ b/utils/mosaic.cpp @@ -16,7 +16,6 @@ Name: mosaic.c Author: Douglas Greve Date: 09/12/01 - $Id: mosaic.c,v 1.4 2011/03/02 00:04:45 nicks Exp $ Description: routines to convert between mosaics and volumes ncvol - number of columns in the volume diff --git a/utils/mrisurf.cpp b/utils/mrisurf.cpp index 2a02a24b093..0b340081ead 100644 --- a/utils/mrisurf.cpp +++ b/utils/mrisurf.cpp @@ -63,11 +63,6 @@ int (*gMRISexternalRipVertices)(MRI_SURFACE *mris, INTEGRATION_PARMS *parms) = N int (*gMRISexternalClearSSEStatus)(MRI_SURFACE *mris) = NULL; int (*gMRISexternalReduceSSEIncreasedGradients)(MRI_SURFACE *mris, double pct) = NULL; -/*--------------------------------------------------------------- - MRISurfSrcVersion() - returns CVS version of this file. - ---------------------------------------------------------------*/ -const char *MRISurfSrcVersion(void) { return ("$Id$"); } - /*----------------------------------------------------- ------------------------------------------------------*/ diff --git a/utils/randomfields.cpp b/utils/randomfields.cpp index 65a94c478ca..1e597e1681f 100644 --- a/utils/randomfields.cpp +++ b/utils/randomfields.cpp @@ -30,10 +30,6 @@ #undef SIGN #define SIGN(x) (((x) > 0) ? 1.0 : -1.0) -/* --------------------------------------------- */ -// Return the CVS version of this file. -const char *RFSrcVersion(void) { return ("$Id: randomfields.c,v 1.18 2016/12/06 20:25:48 greve Exp $"); } - /*-------------------------------------------------------------------*/ int RFname2Code(RFS *rfs) { diff --git a/utils/selxavgio.cpp b/utils/selxavgio.cpp index 4b8c9a366df..9f0fe17eec9 100644 --- a/utils/selxavgio.cpp +++ b/utils/selxavgio.cpp @@ -14,7 +14,6 @@ /*************************************************************** Name: selxavgio.c - $Id: selxavgio.c,v 1.10 2011/03/02 00:04:55 nicks Exp $ Author: Douglas Greve Purpose: Routines for handling header files for data created by selxavg or selavg (selectively averaged). diff --git a/utils/surfcluster.cpp b/utils/surfcluster.cpp index eda7d20644b..228f7f06c9b 100644 --- a/utils/surfcluster.cpp +++ b/utils/surfcluster.cpp @@ -41,11 +41,6 @@ static int sclustCompare(const void *a, const void *b); -/*--------------------------------------------------------------- - sculstSrcVersion(void) - returns CVS version of this file. - ---------------------------------------------------------------*/ -const char *sculstSrcVersion(void) { return ("$Id: surfcluster.c,v 1.36 2016/11/01 19:40:11 greve Exp $"); } - /* ------------------------------------------------------------ sclustMapSurfClusters() - grows a clusters on the surface. The cluster is a list of contiguous vertices that that meet the diff --git a/utils/test/MRISwaveletsTransform.cpp b/utils/test/MRISwaveletsTransform.cpp index 95d9ce92494..171e643cc61 100644 --- a/utils/test/MRISwaveletsTransform.cpp +++ b/utils/test/MRISwaveletsTransform.cpp @@ -44,8 +44,6 @@ extern "C" #include "matrix.h" } -static char vcid[] = - "$Id: MRISwaveletsTransform.cpp,v 1.4 2011/03/02 00:04:55 nicks Exp $"; #define VERTEX_EDGE(vec, v0, v1) VECTOR_LOAD(vec,v1->x-v0->x,v1->y-v0->y, v1->z-v0->z) typedef struct _double_3d { diff --git a/utils/test/mri_transform_to_COR.c b/utils/test/mri_transform_to_COR.c index 0303c3a98cf..ec3e23c740e 100644 --- a/utils/test/mri_transform_to_COR.c +++ b/utils/test/mri_transform_to_COR.c @@ -41,8 +41,6 @@ #define SAMPLE_BSPLINE 5 //#define DBL_EPSILON 1e-10 -static char vcid[] = - "$Id: mri_transform_to_COR.c,v 1.9 2016/02/27 20:38:29 nicks Exp $"; LTA *ltaReadFileEx(const char *fname); int MYvg_isEqual(const VOL_GEOM *vg1, const VOL_GEOM *vg2); @@ -852,7 +850,7 @@ usage_exit(int exit_val) static void print_version(void) { - fprintf(stderr, "%s\n", vcid) ; + fprintf(stderr, "%s\n", getVersion().c_str()) ; exit(1) ; } diff --git a/utils/test/mris_compute_thickness.cpp b/utils/test/mris_compute_thickness.cpp index 0cb8ae6d9c2..d6680a1ad94 100644 --- a/utils/test/mris_compute_thickness.cpp +++ b/utils/test/mris_compute_thickness.cpp @@ -56,7 +56,6 @@ double3d ; static float max_thickness = 10.0 ; -static char vcid[] = "$Id: mris_compute_thickness.cpp,v 1.5 2016/02/27 20:38:29 nicks Exp $"; int main(int argc, char *argv[]) ; @@ -299,7 +298,7 @@ static void print_usage(void) fprintf(stdout, "Options:\n"); fprintf(stdout, " -trg_type %%s output format\n"); fprintf(stdout, "\n"); - printf("%s\n", vcid) ; + std::cout << getVersion() << std::endl; printf("\n"); } @@ -330,7 +329,7 @@ static void print_help(void) /* --------------------------------------------- */ static void print_version(void) { - fprintf(stdout, "%s\n", vcid) ; + fprintf(stdout, "%s\n", getVersion().c_str()) ; exit(1) ; } diff --git a/utils/test/mris_diff.cpp b/utils/test/mris_diff.cpp index 5d376a865b3..608bff0a78c 100644 --- a/utils/test/mris_diff.cpp +++ b/utils/test/mris_diff.cpp @@ -71,7 +71,6 @@ void lubksb(double** a,int n,int* indx,double* b); static char *log_fname = NULL ; static char *subject_name = NULL ; -static char vcid[] = "$Id: mris_diff.cpp,v 1.11 2011/03/02 00:04:55 nicks Exp $"; int main(int argc, char *argv[]) ; @@ -727,7 +726,7 @@ static void print_usage(void) fprintf(stdout, " -L %%s log_file name \n"); fprintf(stdout, " -S %%s subject name \n"); fprintf(stdout, "\n"); - printf("%s\n", vcid) ; + std::cout << getVersion() << std::endl; printf("\n"); } @@ -781,7 +780,7 @@ static void print_help(void) /* --------------------------------------------- */ static void print_version(void) { - fprintf(stdout, "%s\n", vcid) ; + fprintf(stdout, "%s\n", getVersion().c_str()) ; exit(1) ; } diff --git a/utils/test/mris_diff_on_surface.c b/utils/test/mris_diff_on_surface.c index 0d70d6883d8..184181920d2 100644 --- a/utils/test/mris_diff_on_surface.c +++ b/utils/test/mris_diff_on_surface.c @@ -38,7 +38,6 @@ #define MAX_DATA_NUMBERS 200 -static char vcid[] = "$Id: mris_diff_on_surface.c,v 1.3 2011/03/02 00:04:55 nicks Exp $"; int main(int argc, char *argv[]) ; @@ -286,7 +285,7 @@ static void print_usage(void) fprintf(stdout, " -trg_type %%s output format\n"); fprintf(stdout, " -neg take negative of data2, thus compute sum!\n"); fprintf(stdout, "\n"); - printf("%s\n", vcid) ; + std::cout << getVersion() << std::endl; printf("\n"); } @@ -321,7 +320,7 @@ static void print_help(void) /* --------------------------------------------- */ static void print_version(void) { - fprintf(stdout, "%s\n", vcid) ; + fprintf(stdout, "%s\n", getVersion().c_str()) ; exit(1) ; } diff --git a/utils/test/mris_indirect_morph.cpp b/utils/test/mris_indirect_morph.cpp index 193352ca53e..dd6e3523973 100644 --- a/utils/test/mris_indirect_morph.cpp +++ b/utils/test/mris_indirect_morph.cpp @@ -68,8 +68,6 @@ void lubksb(double** a,int n,int* indx,double* b); void MRISsampleTemplateMappingToSource(MRI_SURFACE *mris, MRI_SURFACE *mris_template); -static char vcid[] = - "$Id: mris_indirect_morph.cpp,v 1.7 2011/03/02 00:04:55 nicks Exp $"; int main(int argc, char *argv[]) ; @@ -363,7 +361,7 @@ static void print_usage(void) fprintf(stdout, " -src %%s source volume for -xform \n"); fprintf(stdout, " -dst %%s target volume for -xform \n"); fprintf(stdout, "\n"); - printf("%s\n", vcid) ; + std::cout << getVersion() << std::endl; printf("\n"); } @@ -417,7 +415,7 @@ static void print_help(void) /* --------------------------------------------- */ static void print_version(void) { - fprintf(stdout, "%s\n", vcid) ; + fprintf(stdout, "%s\n", getVersion().c_str()) ; exit(1) ; } diff --git a/utils/volcluster.cpp b/utils/volcluster.cpp index 446e041f204..510d321e61a 100644 --- a/utils/volcluster.cpp +++ b/utils/volcluster.cpp @@ -19,6 +19,7 @@ #include #include +#include "version.h" #include "diag.h" #include "matrix.h" #include "mri.h" @@ -30,10 +31,6 @@ #include "surfcluster.h" #include "volcluster.h" -/*--------------------------------------------------------------- - vculstSrcVersion(void) - returns CVS version of this file. - ---------------------------------------------------------------*/ -const char *vclustSrcVersion(void) { return ("$Id: volcluster.c,v 1.57 2016/11/01 19:43:00 greve Exp $"); } static int ConvertCRS2XYZ(int col, int row, int slc, MATRIX *CRS2XYZ, float *x, float *y, float *z); @@ -1648,7 +1645,7 @@ int CSDprintHeader(FILE *fp, CLUSTER_SIM_DATA *csd) fprintf(fp, "# NOTE: nreps and nrepetitions are both valid for volume data.\n"); fprintf(fp, "# NOTE: nreps is invalid (-1) for surface data to assure.\n"); fprintf(fp, "# NOTE: backwards INcompatibility.\n"); - fprintf(fp, "# %s\n", vclustSrcVersion()); + fprintf(fp, "# %s\n", getVersion().c_str()); if (!strcmp(csd->anattype, "surface")) { // In Dec 2008, a bug was found in sclustSurfaceArea() which @@ -1667,7 +1664,7 @@ int CSDprintHeader(FILE *fp, CLUSTER_SIM_DATA *csd) // Also assures that the new surfcluster.c is linked to. fprintf(fp, "# FixSurfClusterArea %d\n", FixSurfClusterArea); // Version of surfcluster.c - fprintf(fp, "# %s\n", sculstSrcVersion()); + fprintf(fp, "# %s\n", getVersion().c_str()); } else { // Volume