Changeset 30 for trunk/src


Ignore:
Timestamp:
Mar 3, 2010, 12:26:23 PM (15 years ago)
Author:
gostiaux
Message:

The version number is now read from the revision.log file that can be found in /raid/soft/UVMAT/src/
This revision.log file is generated by the bash script export.sh which exports the code from /raid/soft/UVMAT/SVN/trunk/src/ to /raid/soft/UVMAT/src/;
if revision.log is absent, nothing is written there.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/uvmat.m

    r29 r30  
    325325else
    326326   if ishandle(handles.UVMAT_title)
    327         set(handles.UVMAT_title,'String',[{'Copyright Joel Sommeria, 2008, Coriolis/ LEGI / CNRS-UJF-INPG';'GNU General Public License'; path_to_uvmat; 'version 2.2.beta';date_str};errormsg]);
     327       fid=fopen('revision.log')
     328       if fid
     329        a=textscan(fid,'%s%s%s',1,'HeaderLines',1,'Delimiter','|');
     330        set(handles.UVMAT_title,'String',[{'Copyright Joel Sommeria, 2008, Coriolis/ LEGI / CNRS-UJF-INPG';'GNU General Public License'; path_to_uvmat; ['at revision ' a{1}{1}]};a{3}{1};errormsg]);
     331        fclose(fid);
     332       else
     333           set(handles.UVMAT_title,'String',[{'Copyright Joel Sommeria, 2008, Coriolis/ LEGI / CNRS-UJF-INPG';'GNU General Public License'; path_to_uvmat; 'version 2.2.beta';date_str};errormsg]);
     334       end
    328335   end
    329336end
Note: See TracChangeset for help on using the changeset viewer.