% Specify the version information for analyzePos
function [versionStruct] = loadVersion;

%% AnalyzePos Version Tag
% When creating a release build: 
% 1. Set the releaseBuild flag to 1.
% 2. Update the version tag to reflect the tag you are going to add
%    to CVS. 
% 3. Check this file into CVS. 
% 4. Release AnalyzePos. For now look at instructions for
%    releasing PiPro. 
% 5. Update the releaseBuild flag to 0. 
% 6. Check this file into CVS. 
% 

releaseBuild = 1; 

if releaseBuild 
  % Release Build
  versionStruct.versionTag = 'ANALYZEPOS_V103_27MAR2008'; 
  versionStruct.releaseTag = 'Release';
else
  % Beta Build
  versionStruct.versionTag = ['ANALYZEPOS_V104_' date];; 
  versionStruct.releaseTag = 'Beta'; 
end

versionString = sprintf('analyzePos: Version = %s. Build = %s.', ...
  versionStruct.versionTag, ...
  versionStruct.releaseTag);
disp(versionString);
end
