Commit 9fa5bf2f authored by Brad Kennedy's avatar Brad Kennedy
Browse files

2017-07-25 Brad Kennedy <bk@co60.ca>

    * CHANGELOG: Change changelog format to actually contain changes
    ensure you follow the format and put newer changes above this one

    * eegplugin_vised_marks.m: Added version such that it generates it
    from the VERSION file in this directory
parent 86735fac
2017-07-25 Brad Kennedy <bk@co60.ca>
* CHANGELOG: Change changelog format to actually contain changes
ensure you follow the format and put newer changes above this one
* eegplugin_vised_marks.m: Added version such that it generates it
from the VERSION file in this directory
\ No newline at end of file
v1.0.1
\ No newline at end of file
......@@ -41,34 +41,31 @@
%
% See also: eeglab, pop_vised
%Copyright (C) 2013 BUCANL
% Copyright (C) 2017 Brock University Cognitive and Affective Neuroscience Lab
%
%Code originally written by James A. Desjardins with contributions from
%Allan Campopiano and Andrew Lofts, supported by NSERC funding to
%Sidney J. Segalowitz at the Jack and Nora Walker Canadian Centre for
%Lifespan Development Research (Brock University), and a Dedicated Programming
%award from SHARCNet, Compute Ontario.
% Code written by James A. Desjardins, Allan Campopiano, and Andrew Lofts
%
%This program is free software; you can redistribute it and/or modify
%it under the terms of the GNU General Public License as published by
%the Free Software Foundation; either version 2 of the License, or
%(at your option) any later version.
% This program is free software; you can redistribute it and/or modify
% it under the terms of the GNU General Public License as published by
% the Free Software Foundation; either version 2 of the License, or
% (at your option) any later version.
%
%This program is distributed in the hope that it will be useful,
%but WITHOUT ANY WARRANTY; without even the implied warranty of
%MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
%GNU General Public License for more details.
% This program is distributed in the hope that it will be useful,
% but WITHOUT ANY WARRANTY; without even the implied warranty of
% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
% GNU General Public License for more details.
%
%You should have received a copy of the GNU General Public License
%along with this program (LICENSE.txt file in the root directory); if not,
%write to the Free Software Foundation, Inc., 59 Temple Place,
%Suite 330, Boston, MA 02111-1307 USA
% You should have received a copy of the GNU General Public License
% along with this program (LICENSE.txt file in the root directory); if not,
% write to the Free Software Foundation, Inc., 59 Temple Place,
% Suite 330, Boston, MA 02111-1307 USA
function eegplugin_vised_marks(fig,try_strings,catch_strings)
function version = eegplugin_vised_marks(fig, try_strings, catch_strings)
version = get_version('vised_marks', 'vised_marks1.0.0');
%% start up
addpath(genpath(fileparts(which('eegplugin_vised_marks.m'))));
......@@ -172,4 +169,26 @@ uimenu(editmenu,'label','Combine flag types','callback',finalcmdCFM);
uimenu(editmenu,'label','Add/remove/clear marks flag type','callback',finalcmdARF);
uimenu(marksmenu,'label','Select data','callback',finalcmdMPD);
\ No newline at end of file
uimenu(marksmenu,'label','Select data','callback',finalcmdMPD);
end
function version = get_version(prefix, fallback)
version = fallback;
[curdir, ~, ~] = fileparts(which(mfilename()));
versionpath = fullfile(curdir, 'VERSION');
if ~exist(versionpath, 'file')
return;
end
fid = fopen(versionpath);
if fid == -1
return;
end
text = deblank(fread(fid, '*char')');
fclose(fid);
if text(1) == 'v'
version = [prefix text(2:end)];
else
version = [prefix text];
end
end
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment