-
Notifications
You must be signed in to change notification settings - Fork 0
/
install
executable file
·54 lines (43 loc) · 1.07 KB
/
install
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
#!/bin/bash
# install
# Codeus Tech
#
# Script to Simplify Installation Process
#
# Detect Linux Varient\
OS=`grep '^NAME' /etc/os-release`
#
# DISTRO SPECIFIC PREREQS
#
# Fedora
if [[ $OS == "NAME=Fedora" ]]
then
sudo dnf upgrade --refresh -y
sudo dnf groupinstall "Development Tools" -y
sudo dnf groupinstall "C Development Tools and Libraries" -y
fi
# Arch
if [[ $OS == "NAME=\"EndeavourOS\"" || $OS == "NAME=\"Arch Linux\"" || $OS == "NAME=\"Antergos Linux\"" ]]
then
sudo pacman -Syyu --noconfirm
sudo pacman -S make gcc flex bison --noconfirm
fi
# Debian
if [[ $OS == "NAME=\"Debian GNU/Linux\"" || $OS == "NAME=\"Ubuntu\"" || "NAME=\"Linux Mint\"" ]]
then
sudo apt update
sudo apt upgrade
sudo apt install build-essential flex flexc++ bison bisonc++
fi
#
# DISTRO INDEPENDENT PREREQS
#
# Clone Repo into ~/.codeus
mkdir -p ~/.codeus
cd ~/.codeus
git clone https://github.com/CodeusTech/XCSL-AArch64
cd XCSL-AArch64
# Uncompress AArch64 Cross-Assembler to proper location
tar xf aarch64-assembler.tar.xz -C $HOME
# Perform installation
make install