forked from SpiNNakerManchester/SupportScripts
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstall.sh
More file actions
executable file
·103 lines (95 loc) · 4.21 KB
/
install.sh
File metadata and controls
executable file
·103 lines (95 loc) · 4.21 KB
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
#!/bin/bash
yes_to_all=""
check_or_install() {
if [ -d "$1" ]; then
# Control will enter here if DIRECTORY exists.
if [ -d "$1/.git" ]; then
echo $1 already exists
else
echo Directory $1 exists but does not appear to be connected to git
echo Unable to install $2 there
exit
fi
else
while true; do
yn="y"
echo "$yes_to_all"
if [ "$yes_to_all" == "" ]; then
read -p "Do you wish to install $2 to $(pwd)/$1 [y]? " yn
yn=${yn:-y}
fi
case $yn in
[Yy]* ) echo instaling $2;
git clone $2
echo installed $2 to $(pwd)/$1;
break;;
[Nn]* ) echo Exiting script please rerun or install manually
exit;;
* ) echo "Please answer yes or no.";;
esac
done
fi
}
install_eight(){
check_or_install sPyNNaker https://github.com/SpiNNakerManchester/sPyNNaker.git
check_or_install sPyNNaker8 https://github.com/SpiNNakerManchester/sPyNNaker8.git ;
check_or_install sPyNNaker8NewModelTemplate https://github.com/SpiNNakerManchester/sPyNNaker8NewModelTemplate.git
check_or_install PyNN8Examples https://github.com/SpiNNakerManchester/PyNN8Examples.git
}
install_gfe(){
check_or_install SpiNNakerGraphFrontEnd https://github.com/SpiNNakerManchester/SpiNNakerGraphFrontEnd.git
}
case $1 in
*8 ) echo "Installing for PyNN8";;
gfe) echo "Installing Graph Front End";;
man ) echo "Installing special manchester repositories";;
all ) echo "Installing All the main repositories";;
* ) echo "Please specifiy if you wish to install for PyNN8, gfe or all:";
exit;;
esac
if [ $# -gt 1 ]; then
if [ "$2" == "-y" ]; then
echo "Installing without prompt"
yes_to_all="y"
fi
fi
check_or_install spinnaker_tools https://github.com/SpiNNakerManchester/spinnaker_tools.git
check_or_install spinn_common https://github.com/SpiNNakerManchester/spinn_common.git
check_or_install SpiNNUtils https://github.com/SpiNNakerManchester/SpiNNUtils.git
check_or_install SpiNNMachine https://github.com/SpiNNakerManchester/SpiNNMachine.git
check_or_install SpiNNStorageHandlers https://github.com/SpiNNakerManchester/SpiNNStorageHandlers.git
check_or_install PACMAN https://github.com/SpiNNakerManchester/PACMAN.git
check_or_install SpiNNMan https://github.com/SpiNNakerManchester/SpiNNMan.git
check_or_install DataSpecification https://github.com/SpiNNakerManchester/DataSpecification.git
check_or_install SpiNNFrontEndCommon https://github.com/SpiNNakerManchester/SpiNNFrontEndCommon.git
check_or_install sPyNNakerVisualisers https://github.com/SpiNNakerManchester/sPyNNakerVisualisers.git
check_or_install IntroLab https://github.com/SpiNNakerManchester/IntroLab.git
check_or_install spalloc https://github.com/SpiNNakerManchester/spalloc.git
case $1 in
*8 )
install_eight
echo "Please ensure your locally installed PyNN is version 8"
;;
gfe )
install_gfe
;;
man )
install_eight
install_gfe
check_or_install IntegrationTester https://github.com/SpiNNakerManchester/IntegrationTester.git
check_or_install sphinx7 https://github.com/SpiNNakerManchester/sphinx7.git
check_or_install sphinx8 https://github.com/SpiNNakerManchester/sphinx8.git ;
check_or_install SupportScripts https://github.com/SpiNNakerManchester/SupportScripts.git
check_or_install spalloc_server https://github.com/SpiNNakerManchester/spalloc_server.git
check_or_install SpiNNakerManchester.github.io https://github.com/SpiNNakerManchester/SpiNNakerManchester.github.io.git
check_or_install lab_answers https://github.com/SpiNNakerManchester/lab_answers.git
echo "Warning you will need to use virtual machines or reinstall PyNN each time you switch PyNN version"
;;
all )
install_eight
install_gfe
echo "Warning you will need to use virtual machines or reinstall PyNN each time you switch PyNN version"
;;
* ) echo "Please specifiy if you wish to install for PyNN8, gfe or all:";
exit;;
esac