source: prextra/webversion.m @ 150

Last change on this file since 150 was 147, checked in by bduin, 5 years ago
File size: 740 bytes
Line 
1%WEBVERSION Set version on website
2%
3%  OUT = WEBVERSION(VERSION,TOOLBOX,FTPSITE)
4%
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.
8
9function out = webversion(version,varargin)
10
11[toolbox,ftpsite] = setdefaults(varargin,'prtools',[]);
12if isempty(ftpsite)
13  ftpsite = ftp('prtools.tudelft.nl','prlab','0iX7&b3c');
14  cd(ftpsite,'httpdocs/files')
15end
16
17versionfile = fullfile(fileparts(which(mfilename)),[toolbox '_version.txt']);
18fid = fopen(versionfile,'w');
19fprintf(fid,['Version ' version ' ' date]);
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.