-
Notifications
You must be signed in to change notification settings - Fork 18
Expand file tree
/
Copy pathgnustep-web-install
More file actions
executable file
·76 lines (65 loc) · 2.44 KB
/
gnustep-web-install
File metadata and controls
executable file
·76 lines (65 loc) · 2.44 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
#!/bin/sh
echo "Install GNUstep"
echo " "
cat <<EOF
@@@@@@@@@
@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@ @@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@
@@@@@@@@@@@@@@@@@@@@@@@@@@@ @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@
@@@@@@@@@@@@@@
@@@@@@@@@@@@@ @
@@@@@@@@@@@@@ @
@@@@@@@@@@@@ @@
@@@@@@@@@@@@ @@@
@@@@@@@@@@@ @@@@
@@@@@@@@@ @@@@@
@@@@@@@ @@@@@@@
@@@@@@@@@ @@@@@@@@@
@@@@@@@@@@@@ @@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@
EOF
echo " "
export KERNEL=`uname -s | sed "s/\-.*//g" | awk '{print(tolower($0))}'`
echo "Begin setup for ${KERNEL}"
export USER=`whoami`
if [ ! -f ./setup-${KERNEL} ] ; then
# Download the setup script only if not already present (e.g. CI).
curl -fsSL > ./setup-${KERNEL} https://raw.githubusercontent.com/gnustep/tools-scripts/master/setup-${KERNEL}
. ./setup-${KERNEL}
rm ./setup-${KERNEL}
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 https://github.com/gnustep/tools-scripts
else
# Inside CI we are already in the repo.
# Just go to the parent directory, tools-scripts will exist.
cd ..
fi
./tools-scripts/clone-essential-repos-https
echo "================ Install Dependencies ================"
# Install dependencies
./tools-scripts/install-dependencies-${KERNEL}
echo "================ Build ================"
# Build it...
./tools-scripts/build-${KERNEL}
# Post installation
echo "================ Post Installation ================"
./tools-scripts/post-install-${KERNEL}
echo "Done..."