-
Notifications
You must be signed in to change notification settings - Fork 16
/
mastertar.sh
executable file
·134 lines (84 loc) · 2.92 KB
/
mastertar.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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
# Create a folder myxos
mkdir myxos
# Make a direcotry for doc in myxos
mkdir ./myxos/doc
##### APL COMPILER #######
# Download apl pack
wget https://github.com/xosnitc/apl/archive/master.zip -P ./myxos
# Unzip apl pack
unzip ./myxos/master.zip -d ./myxos/
rm ./myxos/master.zip
# Rename master to apl
mv ./myxos/apl-master ./myxos/apl
# Remove the .git folder inside apl
rm -rf ./myxos/apl/.git
rm -rf ./myxos/apl/.gitignore
# Add folder apl_progs
mkdir ./myxos/apl/apl_progs
##### SPL COMPILER #######
# Download spl pack
wget https://github.com/xosnitc/spl/archive/master.zip -P ./myxos
# Unzip spl pack
unzip ./myxos/master.zip -d ./myxos/
rm ./myxos/master.zip
# Rename master to spl
mv ./myxos/spl-master ./myxos/spl
# Remove the .git folder inside spl
rm -rf ./myxos/spl/.git
rm -rf ./myxos/spl/.gitignore
# Add folder spl_progs
mkdir ./myxos/spl/spl_progs
##### XFS INTERFACE #######
# Download xfs-interface pack
wget https://github.com/xosnitc/xfs-interface/archive/master.zip -P ./myxos
# Unzip xfs-interface pack
unzip ./myxos/master.zip -d ./myxos/
rm ./myxos/master.zip
# Rename master to xfs-interface
mv ./myxos/xfs-interface-master ./myxos/xfs-interface
# Remove the .git folder inside xfs-interface
rm -rf ./myxos/xfs-interface/.git
rm -rf ./myxos/xfs-interface/.gitignore
##### XSM SIMULATOR #######
# Download xsm pack
wget https://github.com/xosnitc/xsm/archive/master.zip -P ./myxos
# Unzip xsm pack
unzip ./myxos/master.zip -d ./myxos/
rm ./myxos/master.zip
# Rename master to xsm
mv ./myxos/xsm-master ./myxos/xsm
# Remove the .git folder inside xsm
rm -rf ./myxos/xsm/.git
rm -rf ./myxos/xsm/.gitignore
###### DOCUMENTATION #######
# XFS Documentation
#wget https://github.com/xosnitc/xosdoc/blob/master/xfs/xfs.pdf?raw=true -P ./myxos/doc/ --no-check-certificate
#mv ./myxos/doc/xfs.pdf?raw=true ./myxos/doc/xfs.pdf
# XSM Documentation
#wget https://github.com/xosnitc/xosdoc/blob/master/xsm/xsm.pdf?raw=true -P ./myxos/doc/ --no-check-certificate
#mv ./myxos/doc/xsm.pdf?raw=true ./myxos/doc/xsm.pdf
#
# XOS Documentation
#wget https://github.com/xosnitc/xosdoc/blob/master/xos/xos.pdf?raw=true -P ./myxos/doc/ --no-check-certificate
#mv ./myxos/doc/xos.pdf?raw=true ./myxos/doc/xos.pdf
# APL Documentation
#wget https://github.com/xosnitc/xosdoc/blob/master/apl/apl.pdf?raw=true -P ./myxos/doc/ --no-check-certificate
#mv ./myxos/doc/apl.pdf?raw=true ./myxos/doc/apl.pdf
# SPL Documentation
#wget https://github.com/xosnitc/xosdoc/blob/master/spl/spl.pdf?raw=true -P ./myxos/doc/ --no-check-certificate
#mv ./myxos/doc/spl.pdf?raw=true ./myxos/doc/spl.pdf
cp ./files/Makefile ./myxos/
cp ./files/README ./myxos/
# Edit the README file
nano ./myxos/README
#Enter Version Number
echo "Enter Version Number:"
read version
# Compress myxos directory
filename="myxos"-$version."tar.gz"
tar c myxos | gzip > $filename
# Move myxos tar
mv -f $filename ./files/
# Remove myxos directory
rm -rf ./myxos
echo "Finished."