Skip to content

Commit

Permalink
reset_template.m: Change default version of new projects to 0.0.1
Browse files Browse the repository at this point in the history
Currently, `reset_template.m` resets the project version to 0.0.0, which is a bit strange and may not work well with release workflows etc. Change to 0.0.1.

Closes #16.
  • Loading branch information
alexdewar authored and djmaxus committed Nov 27, 2024
1 parent d526247 commit 60aa42c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions reset_template.m
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@
error('Could not open CHANGELOG.md for writing.');
end

% Write "0.0.0" to version.txt
% Write "0.0.1" to version.txt
fid = fopen(versionPath, 'w');
if fid ~= -1
fprintf(fid, '0.0.0\n');
fprintf(fid, '0.0.1\n');
fclose(fid);
fprintf('version has been set to "0.0.0".\n');
fprintf('version has been set to "0.0.1".\n');
else
error('Could not open version.txt for writing.');
end
Expand Down

0 comments on commit 60aa42c

Please sign in to comment.