Verified Commit 09255f2b authored by Stéphane Adjemian's avatar Stéphane Adjemian
Browse files

Fixed installation or update of x13 binary.

parent 025b1d2e
...@@ -26,12 +26,21 @@ if ~exist('x13.zip','file') ...@@ -26,12 +26,21 @@ if ~exist('x13.zip','file')
end end
unzip('x13.zip'); unzip('x13.zip');
if ismac() if ismac()
if exist('./osx', 'dir')
rmdir('osx', 's')
end
mkdir osx; mkdir osx;
movefile('binaries/osx/*','./osx'); movefile('binaries/osx/*','./osx');
elseif isunix() elseif isunix()
if exist('./linux', 'dir')
rmdir('linux', 's')
end
mkdir linux; mkdir linux;
movefile('binaries/linux/*','./linux'); movefile('binaries/linux/*','./linux');
elseif ispc() elseif ispc()
if exist('./windows', 'dir')
rmdir('windows', 's')
end
mkdir windows; mkdir windows;
movefile('binaries/windows/*','./windows'); movefile('binaries/windows/*','./windows');
else else
......
...@@ -22,4 +22,8 @@ if exist('x13.zip','file') ...@@ -22,4 +22,8 @@ if exist('x13.zip','file')
delete('x13.zip') delete('x13.zip')
end end
if exist('./binaries', 'dir')
rmdir('binaries', 's');
end
installx13(); installx13();
\ 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