-
-
Notifications
You must be signed in to change notification settings - Fork 71
/
build.sh
executable file
·40 lines (31 loc) · 911 Bytes
/
build.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
#!/bin/bash -ex
# CLEANING
if [ -h dl ]; then
rm -f dl
fi
rm -fr staging_dir build_dir bin broken_packages
make distclean
# DOWNLOAD CACHE
if [ -n "$DL_FOLDER" ] && [ ! -a dl ]; then
ln -s $DL_FOLDER dl
fi
# FEEDS
./scripts/feeds uninstall -a
rm -rf feeds
./scripts/feeds update -a
./scripts/feeds install -a
./scripts/feeds uninstall erlang freeswitch remotefs libzstream shflags opensips pulseaudio xmlrpc-c rtorrent sox umurmur-polarssl freecwmp-zstream osirisd logtrigger libplist libimobiledevice cmus mxml boost wt etherpuppet php4 aprx n2n pdnsd crtmpserver kissdx openconnect telepathy-python alljoyn
# CONFIG
rm -f .config
git checkout .config
if [ "Yes" = "$BUILD_BASE_ONLY" ]; then
sed 's/=m$/=n/' < .config > .baseonlyconfig
mv .config .origconfig
mv .baseonlyconfig .config
fi
make oldconfig
# BUILDING
if [ -z "$MAKE_JOBS" ]; then
MAKE_JOBS="2"
fi
nice -n 10 make -j $MAKE_JOBS V=s