-
Notifications
You must be signed in to change notification settings - Fork 18
Expand file tree
/
Copy pathbuild-essential-libs-tools-apps
More file actions
executable file
·55 lines (45 loc) · 1.04 KB
/
build-essential-libs-tools-apps
File metadata and controls
executable file
·55 lines (45 loc) · 1.04 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
#!/bin/bash
libs_files="libs-xcode"
apps_files="apps-gorm plugins-themes-WinUXTheme"
# OS
OS=`uname -s`
# number of processes
CPUS=`nproc`
# func..
build_and_install()
{
echo "***** Building ${1}..."
cd ${1}
if [ -f configure ]; then
./configure
fi
if [ -f GNUmakefile ]; then
make -j${CPUS} debug=yes
if [ "$OS" == "Linux" ]; then
sudo -- sh -c '. /usr/GNUstep/System/Library/Makefiles/GNUstep.sh && make GNUSTEP_INSTALLATION_DOMAIN=SYSTEM debug=yes install'
else
. /usr/GNUstep/System/Library/Makefiles/GNUstep.sh && make GNUSTEP_INSTALLATION_DOMAIN=SYSTEM debug=yes install
fi
fi
cd ..
echo "***** Done"
}
install_files()
{
for file in ${1}
do
build_and_install $file
done
}
do_install()
{
. /usr/GNUstep/System/Library/Makefiles/GNUstep.sh
echo "======= Building libraries."
install_files ${libs_files}
# echo "======= Building tools."
# install_files ${tools_files}
echo "======= Building applications."
install_files ${apps_files}
}
do_install
exit 0