Added functions for installing x13 binaries.

parent 0c4a8707
*~
externals
externals/*
src/git.info
src/git.last-commit-hash
\ No newline at end of file
src/git.last-commit-hash
!externals/x13/
x13.zip
linux/*
windows/*
*~
function installx13()
% Installs CENSUS X13 binaries (Windows and Linux).
% Copyright (C) 2017 Dynare Team
%
% This code is free software: you can redistribute it and/or modify
% it under the terms of the GNU General Public License as published by
% the Free Software Foundation, either version 3 of the License, or
% (at your option) any later version.
%
% Dynare dseries submodule is distributed in the hope that it will be useful,
% but WITHOUT ANY WARRANTY; without even the implied warranty of
% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
% GNU General Public License for more details.
%
% You should have received a copy of the GNU General Public License
% along with Dynare. If not, see <http://www.gnu.org/licenses/>.
if ~exist('x13.zip','file')
websave('x13.zip', 'http://www.dynare.org/x13/x13.zip');
unzip('x13.zip');
movefile('binaries/linux','./linux');
movefile('binaries/windows','./windows');
rmdir('binaries');
end
function uninstallx13()
% Uninstalls CENSUS X13 binaries (Windows and Linux).
% Copyright (C) 2017 Dynare Team
%
% This code is free software: you can redistribute it and/or modify
% it under the terms of the GNU General Public License as published by
% the Free Software Foundation, either version 3 of the License, or
% (at your option) any later version.
%
% Dynare dseries submodule is distributed in the hope that it will be useful,
% but WITHOUT ANY WARRANTY; without even the implied warranty of
% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
% GNU General Public License for more details.
%
% You should have received a copy of the GNU General Public License
% along with Dynare. If not, see <http://www.gnu.org/licenses/>.
if exist('x13.zip','file')
delete('x13.zip')
end
if exist('linux','dir')
rmdir('linux')
end
if exist('windows','dir')
rmdir('windows')
end
......@@ -48,4 +48,10 @@ end
if ~exist('get_cells_id','file')
addpath([dseries_src_root '/utilities/missing/get_cells_id'])
end
\ No newline at end of file
end
% Install X13 binaries
opath = pwd();
cd([dseries_src_root '/../externals/x13'])
installx13();
cd(opath);
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment