-
Notifications
You must be signed in to change notification settings - Fork 0
/
CreateDistributionFolder_Beef.sh
executable file
·50 lines (40 loc) · 1.43 KB
/
CreateDistributionFolder_Beef.sh
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
#!/bin/bash
#Remove old existing stuff
rm -rf BeefDeb
#Create folders
mkdir BeefDeb
mkdir DebVersions
cd BeefDeb
#Create control file
mkdir DEBIAN
var=$(date '+%Y%m%d')
sed "s/CURRENTDATE/${var}/" ../control >> DEBIAN/control
#Create link file
mkdir usr
mkdir usr/bin
#Create run file
printf "#! /bin/bash\nexec /opt/BeefBuild/bin/BeefBuild \"\$@\"" > usr/bin/BeefBuild
chmod a+x usr/bin/BeefBuild
mkdir opt
mkdir opt/BeefBuild
cp -r ../Beef/wasm/ opt/BeefBuild/wasm/
cp ../Beef/LICENSE.TXT opt/BeefBuild/
cp ../Beef/LICENSES.TXT opt/BeefBuild/
cp -r ../Beef_website/Samples opt/BeefBuild/
cp -r ../Beef/IDE/mintest/ opt/BeefBuild/mintest/
cp -r ../Beef/BeefLibs/ opt/BeefBuild/BeefLibs/
#Copy dists
mkdir opt/BeefBuild/bin
cp -r ../Beef/IDE/dist/lib/ opt/BeefBuild/bin/
cp -r ../Beef/IDE/dist/llvm/ opt/BeefBuild/bin/
cp ../Beef/IDE/dist/BeefBuild opt/BeefBuild/bin/
cp ../Beef/IDE/dist/BeefBuild_d opt/BeefBuild/bin/
cp ../Beef/IDE/dist/BeefDbgVis.toml opt/BeefBuild/bin/
cp ../Beef/IDE/dist/libBeefRT.a opt/BeefBuild/bin/
cp ../Beef/IDE/dist/libBeefRT_d.a opt/BeefBuild/bin/
cp ../Beef/IDE/dist/libBeefySysLib.so opt/BeefBuild/bin/
cp ../Beef/IDE/dist/libBeefySysLib_d.so opt/BeefBuild/bin/
cp ../Beef/IDE/dist/libIDEHelper.so opt/BeefBuild/bin/
cp ../Beef/IDE/dist/libIDEHelper_d.so opt/BeefBuild/bin/
cp ../Beef/IDE/dist/Standard.dbgvis opt/BeefBuild/bin/
sed "s/..\/..\//..\//" ../Beef/IDE/dist/BeefConfig.toml >> opt/BeefBuild/bin/BeefConfig.toml