Skip to content

Commit

Permalink
Reduced number of if statements in deploy script
Browse files Browse the repository at this point in the history
  • Loading branch information
AlanRace committed Aug 11, 2020
1 parent 31d6b7c commit 28997b7
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions deploy/deploy.m
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@
if ispc
wOption = "'WinMain:SpectralAnalysis,version=1.4'";
osText = 'win';
defaultInstallDir = 'C:\Program Files\SpectralAnalysis';
elseif isunix
defaultInstallDir = '/usr/local/SpectralAnalysis';
end

saFolder = [getSpectralAnalysisFolder() filesep];
Expand All @@ -35,12 +38,6 @@

eval(mccCommand);

if ispc
defaultInstallDir = 'C:\Program Files\SpectralAnalysis';
elseif isunix
defaultInstallDir = '/usr/local/SpectralAnalysis';
end

matlabVersion = version('-release');
matlabYear = str2num(matlabVersion(1:end-1));

Expand Down

0 comments on commit 28997b7

Please sign in to comment.