forked from Infinity-OS/infinity
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfigure.sh
executable file
·49 lines (39 loc) · 1.05 KB
/
configure.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
#!/bin/sh
#
# This script is used to configure some variables for the build system
#
# Args:
# - Prefix for the tools (when not present use '/usr/local')
#
# TODO:
# - parse arguments as options (--option=value)
##########################################################
# This function is simple a banner to introduce the script
##########################################################
banner ()
{
echo "+----------------------------------------+"
echo "|-------- Welcome to Infinity OS --------|"
echo "+----------------------------------------+"
}
# Fetch Git submodules
git submodule update --recursive --init
# Show banner
banner
# Set the prefix parameter
if [ -z "$1" ]; then
prefix=
else
prefix=$1
fi
# This check if we are on a macOS system
ismac() {
uname -s | grep Darwin
}
# Header message for the generated file
cat > config.mak <<- EOM
# This was automatically generated by the ./configure script. Please don't apply
# changes to this file, do it on the script file.
EOM
echo prefix=$prefix>>config.mak
echo done, now run make