Skip to content

Commit

Permalink
***** NPMK Version 4.5.2.0 :September 13, 2017 *****
Browse files Browse the repository at this point in the history
% NPMKverChecker 1.0.1.0: September 13, 2017
%   - Fixed a crash in case there is no Internet connection.
%
  • Loading branch information
Kian Torab committed Sep 13, 2017
1 parent dc43c38 commit 5b1e97b
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 10 deletions.
24 changes: 15 additions & 9 deletions NPMK/NPMKverChecker.m
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,21 @@ function NPMKverChecker()
% 1.0.0.0: September 13, 2017
% - Initial release.
%
% 1.0.1.0: September 13, 2017
% - Fixed a crash in case there is no Internet connection.
%

%% Check for the latest version fo NPMK
FIDv = fopen('Versions.txt');
verFile = fscanf(FIDv, '%s');
fclose(FIDv);
latestVersion = verFile(findstr('LATEST', verFile)+7:findstr('LATEST', verFile)+13);
gitHubPage = urlread('https://github.com/BlackrockMicrosystems/NPMK/releases/latest');
newVersionAvailable = findstr(latestVersion, gitHubPage);
if isempty(newVersionAvailable)
disp('A new version of NPMK may be available.');
disp('Please visit https://github.com/BlackrockMicrosystems/NPMK/releases/latest to get the latest version.');
try
FIDv = fopen('Versions.txt');
verFile = fscanf(FIDv, '%s');
fclose(FIDv);
latestVersion = verFile(findstr('LATEST', verFile)+7:findstr('LATEST', verFile)+13);
gitHubPage = urlread('https://github.com/BlackrockMicrosystems/NPMK/releases/latest');
newVersionAvailable = findstr(latestVersion, gitHubPage);
if isempty(newVersionAvailable)
disp('A new version of NPMK may be available.');
disp('Please visit https://github.com/BlackrockMicrosystems/NPMK/releases/latest to get the latest version.');
end
catch
end
8 changes: 7 additions & 1 deletion NPMK/Versions.txt
Original file line number Diff line number Diff line change
Expand Up @@ -373,4 +373,10 @@ NPMK Version 2.8.2.0: 5 May 2014
% NPMKverChecker 1.0.0.0: September 13, 2017
% - Initial Release.

LATEST:4.5.1.1
***** NPMK Version 4.5.2.0 :September 13, 2017 *****

% NPMKverChecker 1.0.1.0: September 13, 2017
% - Fixed a crash in case there is no Internet connection.
%

LATEST:4.5.2.0

0 comments on commit 5b1e97b

Please sign in to comment.