Skip to content
Snippets Groups Projects
Commit f0b58956 authored by Yoann Guilhem's avatar Yoann Guilhem Committed by Nicola Vigano
Browse files

Bugfix for gtVersion (was wrongly using DCT_DIR env variable instead of global GT_MATLAB_HOME)

git-svn-id: https://svn.code.sf.net/p/dct/code/trunk@927 4c865b51-4357-4376-afb4-474e03ccb993
parent 39ac9562
No related branches found
No related tags found
No related merge requests found
function [info] = gtVersion
function info = gtVersion()
% GTVERSION Gives matlabDCT version used with svn information
% -------------------------------------------------------------------------
% svnInfo = gtVersion
......@@ -10,10 +10,9 @@ function [info] = gtVersion
%
% Version 001 22-08-2012 by YGuilhem
% Get DCT_DIR env variable and display it
dctDir = getenv('DCT_DIR');
disp(['You are using DCT code from directory: ' dctDir]);
% Get GT_MATLAB_HOME (which is set in initialise_gt) variable and display it
global GT_MATLAB_HOME;
disp(['You are using DCT code from directory: ' GT_MATLAB_HOME]);
% Store LANG env variable and set it as C
lang = getenv('LANG');
......@@ -22,7 +21,7 @@ if ~isempty(lang)
end
% Guess svn info related to DCT_DIR
[status, result] = system(['svn info ' dctDir]);
[status, result] = system(['svn info ' GT_MATLAB_HOME]);
% Set back LANG env variable
if ~isempty(lang)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment