Skip to content

Commit

Permalink
make the version file a sourceable script instead of a static file
Browse files Browse the repository at this point in the history
This allows for things like comments without having special version file
parsing handling when extracting the value.
  • Loading branch information
Tim Harder committed Sep 14, 2016
1 parent ada7991 commit 91aca5b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 8 deletions.
1 change: 0 additions & 1 deletion VERSION

This file was deleted.

10 changes: 3 additions & 7 deletions get_version.m
Original file line number Diff line number Diff line change
@@ -1,11 +1,7 @@
function version = get_version()
% extract version info from VERSION file
try
fid = fopen('VERSION');
version = deblank(fgets(fid));
catch
version = '';
end
% source version info file
version = '';
release_version;

version_regex = '^\d+\.\d+\.\d+$';
[tokens, match] = regexpi(version, version_regex, 'tokens', 'match');
Expand Down
2 changes: 2 additions & 0 deletions release_version.m
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
% Current version of the filter wizard.
version = '16.1.1';

0 comments on commit 91aca5b

Please sign in to comment.