Changeset 277


Ignore:
Timestamp:
Nov 18, 2011, 11:00:00 AM (9 years ago)
Author:
gostiaux
Message:

check_functions renamed
uvmat.m now checks the svn revision

Location:
trunk/src
Files:
1 added
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/uvmat.m

    r276 r277  
    208208guidata(hObject, handles);
    209209
     210%% check the path and date of modification of all functions in uvmat
     211path_to_uvmat=which ('uvmat');% check the path detected for source file uvmat
     212[errormsg,date_str,svn_info]=check_files;%check the path of the functions called by uvmat.m
     213date_str=['last modification: ' date_str];
     214
     215
    210216%% set the position of colorbar and ancillary GUIs:
    211217set(hObject,'Units','Normalized')
     
    307313
    308314
    309 %% check the path and date of modification of all functions in uvmat
    310 path_to_uvmat=which ('uvmat');% check the path detected for source file uvmat
    311 [errormsg,date_str]=check_functions;%check the path of the functions called by uvmat.m
    312 date_str=['last modification: ' date_str];
    313315
    314316%% case of an input argument for uvmat
     
    351353else
    352354   if ishandle(handles.UVMAT_title)
    353        fid=fopen('revision.info');
    354        if fid~=-1
    355          a=textscan(fid,'%s%s%s',1,'HeaderLines',4,'Delimiter',' ');
    356          set(handles.UVMAT_title,'String',[{'Copyright Joel Sommeria, 2008, Coriolis/ LEGI / CNRS-UJF-INPG'};{'GNU General Public License'}; {path_to_uvmat}; ...
    357            {['at revision ' a{3}{1}]};{date_str};errormsg]);
    358          fclose(fid);
    359        else
    360           set(handles.UVMAT_title,'String',[{'Copyright Joel Sommeria, 2008, Coriolis/ LEGI / CNRS-UJF-INPG'};{'GNU General Public License'};{path_to_uvmat};...
    361                {date_str};errormsg]);
    362        end
     355       set(handles.UVMAT_title,'String',...
     356           [{'Copyright  LEGI UMR 5519 /CNRS-UJF-Grenoble INP, 2010'};...
     357           {'GNU General Public License'};...
     358           {path_to_uvmat};...
     359           {date_str};...
     360           {['SVN version : ' num2str(svn_info.cur_rev)]};...
     361           errormsg]);
    363362   end
    364363end
Note: See TracChangeset for help on using the changeset viewer.