-
Notifications
You must be signed in to change notification settings - Fork 18
Expand file tree
/
Copy pathgnustep-web-install-dev
More file actions
executable file
·80 lines (72 loc) · 2.72 KB
/
gnustep-web-install-dev
File metadata and controls
executable file
·80 lines (72 loc) · 2.72 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
#!/bin/sh
echo "Install GNUstep"
echo " "
cat <<EOF
@@@@@@@@@
@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@ @@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@
@@@@@@@@@@@@@@@@@@@@@@@@@@@ @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@
@@@@@@@@@@@@@@
@@@@@@@@@@@@@ @
@@@@@@@@@@@@@ @
@@@@@@@@@@@@ @@
@@@@@@@@@@@@ @@@
@@@@@@@@@@@ @@@@
@@@@@@@@@ @@@@@
@@@@@@@ @@@@@@@
@@@@@@@@@ @@@@@@@@@
@@@@@@@@@@@@ @@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@
EOF
echo " "
echo "IMPORTANT!"
echo "You must update your .ssh directory so it contains your github ssh key"
echo " "
export KERNEL=`uname -s | sed "s/\-.*//g" | awk '{print(tolower($0))}'`
echo "Begin setup for ${KERNEL}"
if [ ! -f ./setup-${KERNEL} ] ; then
# Download the setup script only if not already present (e.g. CI).
export USER=`whoami`
if [ "X${KERNEL}" == "Xopenbsd" ];then
ftp -o ./setup-${KERNEL} https://raw.githubusercontent.com/gnustep/tools-scripts/master/setup-${KERNEL}
else
curl -fsSL > ./setup-${KERNEL} https://raw.githubusercontent.com/gnustep/tools-scripts/master/setup-${KERNEL}
fi
./setup-${KERNEL}
rm ./setup-${KERNEL}
else
# Else, assume inside CI.
# For CI purposes, default to failing. Using bashism is fine here, for now.
set -euo pipefail
./setup-${KERNEL}
fi
echo "======== Create gnustep build directories ========"
if [ ! -e .git ] ; then
# Default outside CI.
mkdir -p gnustep
cd gnustep
git clone git@github.com:gnustep/tools-scripts.git
else
# Inside CI we are already in the repo.
# Just go to the parent directory, tools-scripts will exist.
cd ..
fi
./tools-scripts/clone-all-repos
echo "================ Install Dependencies ================"
# Install dependencies
./tools-scripts/install-dependencies-${KERNEL}
echo "================ Build ================"
# Build it...
WITH_ARC="${WITH_ARC}" ./tools-scripts/build-${KERNEL}
# Post installation
echo "================ Post Installation ================"
./tools-scripts/post-install-${KERNEL}
echo "Done..."