-
Notifications
You must be signed in to change notification settings - Fork 1
/
makedist.sce
34 lines (28 loc) · 1.05 KB
/
makedist.sce
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
// =============================================================================
// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
//
// Copyright (C) 2023 - UTC - Stéphane MOTTELET
//
// This file is hereby licensed under the terms of the GNU GPL v3.0,
// For more information, see the COPYING file which you should have received
path_makedist = get_absolute_file_path();
cd(path_makedist);
modulename = "IPCV"
version = mgetl("VERSION")
[result,status] = http_get(msprintf("%s/%s/%s/DESCRIPTION","https://atoms.scilab.org/toolboxes",modulename,version));
if status == 200
mputl(result,"DESCRIPTION")
end
[sci,v]=getversion()
if getos() <> "Windows" then
filename = modulename+"_"+mgetl("VERSION")+".bin."+v(2)+"."+getos()+".tar.gz"
else
filename = modulename+"_"+mgetl("VERSION")+".bin."+v(2)+"."+getos()+".zip"
end
// move thirdparty build folder
movefile("thirdparty/build","../build.moved")
moduledir = fileparts(pwd(),"fname")
cd("..")
compress(filename,moduledir)
cd(path_makedist);
movefile("../build.moved","thirdparty/build")