-
Notifications
You must be signed in to change notification settings - Fork 14
/
build-libs-tools-apps
executable file
·58 lines (48 loc) · 1.24 KB
/
build-libs-tools-apps
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
#!/bin/bash
# Libraries/Apps/Tools
libs_files="libs-xcode libs-ppd libs-steptalk libs-ucsdata libs-renaissance apps-gorm libs-gdl2 libs-gsweb"
tools_files="tools-charsets"
apps_files="apps-systempreferences apps-gworkspace apps-projectcenter apps-thematic apps-easydiff"
# 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"
echo " "
}
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