Daniel@0: function [rev, latest] = camirversion() Daniel@0: % returns the global version of the camir project Daniel@0: Daniel@0: global globalvars; Daniel@0: curpath = pwd; Daniel@0: Daniel@0: % go to camir directory Daniel@0: cd (globalvars.camir.path); Daniel@0: tmp = textscan(evalc('!svnversion'),'%s'); Daniel@0: Daniel@0: % return to current directory Daniel@0: cd (curpath); Daniel@0: Daniel@0: rev = tmp{1}; Daniel@0: latest = textscan(rev{1},'%d','Delimiter',':'); Daniel@0: if ~isempty(latest{1}) Daniel@0: latest = double(latest{end}(end)); Daniel@0: else Daniel@0: latest='-1'; Daniel@0: end