-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathcreate.sh
94 lines (83 loc) · 2.83 KB
/
create.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
#!/bin/bash
DATE=`date +%m-%d-%Y`
DOWNLOAD=download
FOLDERNAME=SD_card
cleanup () {
rm -rf $FOLDERNAME
rm -rf $DOWNLOAD
}
cleanup
#create folders
mkdir $DOWNLOAD
mkdir $FOLDERNAME
mkdir $FOLDERNAME/mos
mkdir $FOLDERNAME/utils
mkdir $FOLDERNAME/games
mkdir $FOLDERNAME/games/sokoban
mkdir $FOLDERNAME/docs
#Download full repos
cd $DOWNLOAD
git clone https://github.com/breakintoprogram/agon-bbc-basic.git
git clone https://github.com/lennart-benschop/agon-utilities.git
git clone https://github.com/lennart-benschop/agon-forth.git
git clone https://github.com/sijnstra/agon-projects.git
git clone https://github.com/envenomator/agon-sokoban.git
git clone https://github.com/nihirash/Agon-rokky.git
git clone https://github.com/breakintoprogram/agon-docs.wiki.git
git clone https://github.com/tomm/toms-agon-experiments.git
curl -s https://api.github.com/repos/breakintoprogram/agon-bbc-basic/releases/latest \
| grep "browser_download_url.*bin" \
| cut -d : -f 2,3 \
| tr -d \" \
| wget -qi -
curl -s https://api.github.com/repos/breakintoprogram/agon-mos/releases/latest \
| grep "browser_download_url.*bin" \
| cut -d : -f 2,3 \
| tr -d \" \
| wget -qi -
curl -s https://api.github.com/repos/envenomator/agon-ez80asm/releases/latest \
| grep "browser_download_url.*zip" \
| cut -d : -f 2,3 \
| tr -d \" \
| wget -qi -
cd ..
#root folder
echo -e "SET KEYBOARD 1\nLOAD bbcbasic.bin\nrun" > $FOLDERNAME/autoexec.txt
cp $DOWNLOAD/MOS.bin $FOLDERNAME/
crc32 $DOWNLOAD/MOS.bin > $FOLDERNAME/MOS.crc32
cp $DOWNLOAD/bbcbasic.bin $FOLDERNAME/
cp -r $DOWNLOAD/agon-forth/forth16/ $FOLDERNAME/forth16
#games
cp $DOWNLOAD/agon-sokoban/binaries/* $FOLDERNAME/games/sokoban/
cp $DOWNLOAD/Agon-rokky/bin/* $FOLDERNAME/games/
#utils
cp $DOWNLOAD/toms-agon-experiments/agon-bench/bin/agon-bench.bin $FOLDERNAME/utils/
#docs
cp $DOWNLOAD/agon-docs.wiki/*.md $FOLDERNAME/docs/
#mos
cd $FOLDERNAME/mos
cp ../../$DOWNLOAD/agon-utilities/Nano/Release/Nano.bin .
cp ../../$DOWNLOAD/agon-utilities/Comp/Release/Comp.bin .
cp ../../$DOWNLOAD/agon-utilities/More/Release/More.bin .
cp ../../$DOWNLOAD/agon-utilities/Memfill/Release/Memfill.bin .
cp ../../$DOWNLOAD/agon-projects/hexdump/Release/hexdump.bin .
cp ../../$DOWNLOAD/agon-projects/hexdumpm/Release/hexdumpm.bin .
cp ../../$DOWNLOAD/agon-projects/strings/Release/strings.bin .
unzip ../../$DOWNLOAD/ez80asm_agon.zip
curl -s https://api.github.com/repos/envenomator/agon-flash/releases/latest \
| grep "browser_download_url.*bin" \
| cut -d : -f 2,3 \
| tr -d \" \
| wget -qi -
curl -s https://api.github.com/repos/envenomator/agon-hexload/releases/latest \
| grep "browser_download_url.*bin" \
| cut -d : -f 2,3 \
| tr -d \" \
| wget -qi -
curl -s https://api.github.com/repos/envenomator/agon-hexload/releases/latest \
| grep "browser_download_url.*dll" \
| cut -d : -f 2,3 \
| tr -d \" \
| wget -qi -
cd ../..
zip -r $FOLDERNAME.zip $FOLDERNAME/