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
24 LOG_BASE=$ARCHIVE_BASE/logs/$CFG_NAME
25 LOG_ALL=$LOG_BASE/all.log
28 # Figure out the host platform
50 # Figure out the build tools
51 if [[ $HOST_OS == "freebsd" ]]; then
52 alias make='execute gmake'
54 alias make='execute make'
57 alias makedir='execute mkdir -p'
58 alias delete='execute rm -rf'
59 alias copy='execute cp -pRL'
60 alias move='execute mv -f'
63 export PYTHON=$CFG_PYTHON
64 MAKE_JOBS=$CFG_MAKE_JOBS
66 # Initial setup, if requested
67 if [[ $1 == "initial" ]]; then
68 # Setup directories if needed
69 rm -rf $BUILD_BASE $ARCHIVE_BASE
70 mkdir -p $BUILD_ROOT $BUILD_BASE
71 mkdir -p $ARCHIVE_BASE
74 if [ ! -f $LOG_ALL ]; then