2 source $SP/cfg/defaults
3 source $SP/cfg/$CFG_NAME
6 VERSION=$(date -u +"%Y%m%d")
9 # Setup important paths
12 SOURCE_ROOT=$ROOT/Source
13 SOURCE_AROS=$SOURCE_ROOT/AROS
14 SOURCE_CONTRIB=$SOURCE_ROOT/Contrib
15 SOURCE_DOCS=$SOURCE_ROOT/Documentation
17 BUILD_ROOT=$ROOT/Build
18 BUILD_BASE=$BUILD_ROOT/$VERSION
20 ARCHIVE_ROOT=$ROOT/Archive
21 ARCHIVE_BASE=$ARCHIVE_ROOT/$VERSION
23 PORTSSOURCES_ROOT=$ROOT/PortsSources
24 TOOLCHAIN_BASE=$BUILD_BASE/Toolchain
27 LOG_BASE=$ARCHIVE_BASE/logs/$CFG_NAME
28 LOG_ALL=$LOG_BASE/all.log
31 # Figure out the host platform
53 # Figure out the build tools
54 if [[ $HOST_OS == "freebsd" ]]; then
55 alias make='execute gmake'
57 alias make='execute make'
60 alias makedir='execute mkdir -p'
61 alias delete='execute rm -rf'
62 alias copy='execute cp -pRL'
63 alias move='execute mv -f'
66 export PYTHON=$CFG_PYTHON
67 MAKE_JOBS=$CFG_MAKE_JOBS
69 AROSTOOLCHAININSTALLOPT=""
72 # Enable --with-portssources ?
73 if [[ "$CFG_PORTSSOURCES_ENABLE" == "yes" ]]; then
74 PORTSSOURCESOPT="--with-portssources=$PORTSSOURCES_ROOT"
77 # Enable --with-aros-toolchain ?
78 if [[ "$CFG_PREBUILD_TOOLCHAIN_PACKAGE" != "none" ]]; then
79 AROSTOOLCHAININSTALLOPT="--with-aros-toolchain-install=$TOOLCHAIN_BASE"
80 AROSTOOLCHAINOPT="--with-aros-toolchain=yes"
84 # Initial setup, if requested
85 if [[ $1 == "initial" ]]; then
86 # Setup directories if needed
87 rm -rf $BUILD_BASE $ARCHIVE_BASE
88 mkdir -p $BUILD_ROOT $BUILD_BASE
89 mkdir -p $ARCHIVE_BASE
92 if [ ! -f $LOG_ALL ]; then