source: prextra/webversion.m @ 149

Last change on this file since 149 was 147, checked in by bduin, 5 years ago
File size: 740 bytes
RevLine 
[144]1%WEBVERSION Set version on website
2%
[147]3%  OUT = WEBVERSION(VERSION,TOOLBOX,FTPSITE)
[144]4%
[147]5%Creates a file TOOLBOX_version.txt containing just the VERSION number on
6%FTPSITE. FTPSITE should be created by the @FTP package andchanged to the
7%proper directory.
[144]8
9function out = webversion(version,varargin)
10
[147]11[toolbox,ftpsite] = setdefaults(varargin,'prtools',[]);
[144]12if isempty(ftpsite)
13  ftpsite = ftp('prtools.tudelft.nl','prlab','0iX7&b3c');
[147]14  cd(ftpsite,'httpdocs/files')
[144]15end
16
17versionfile = fullfile(fileparts(which(mfilename)),[toolbox '_version.txt']);
18fid = fopen(versionfile,'w');
[147]19fprintf(fid,['Version ' version ' ' date]);
[144]20fclose(fid);
21s = mput(ftpsite,versionfile);
22delete(versionfile)
23if nargout > 1
24  out = s;
25end
26
Note: See TracBrowser for help on using the repository browser.