forked from Kroc/elite-harmless
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.sh
50 lines (38 loc) · 1.19 KB
/
setup.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
#!/usr/bin/sh
# Elite C64 disassembly / Elite : Harmless, cc-by-nc-sa 2018-2020,
# see LICENSE.txt. "Elite" is copyright / trademark David Braben & Ian Bell,
# All Rights Reserved. <github.com/Kroc/elite-harmless>
#===============================================================================
# if you've just installed Linux on Windows, you need to fetch
# up-to-date package information or install downloads will 404
# TODO: test if packages already exist?
# TODO: mac support via Brew?
echo
echo "Enter your Linux root password"
echo "to install required tools:"
echo "(git, gcc, make, python3, bison)"
echo
sudo apt update
sudo apt-get install git gcc make python3 bison
# todo: make this script `git pull` if code is already present?
cd bin
if [ ! -d "cc65" ]; then
git clone --recurse-submodules https://github.com/cc65/cc65.git cc65
cd cc65
make
sudo PREFIX=/usr/local make install
cd ..
fi
if [ ! -d "mkd64" ]; then
git clone --recurse-submodules https://github.com/Zirias/c64_tool_mkd64.git mkd64
cd mkd64
make
sudo make install
cd ..
fi
# compile exomizer (requires CC65 to be on the path)
cd exomizer/src
make
cd ../..
echo
echo "Setup complete."