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_NECESSARY=$SOURCE_ROOT/Necessary
16 SOURCE_DOCS=$SOURCE_ROOT/Documentation
18 BUILD_ROOT=$ROOT/Build
19 BUILD_BASE=$BUILD_ROOT/$VERSION
21 ARCHIVE_ROOT=$ROOT/Archive
22 ARCHIVE_BASE=$ARCHIVE_ROOT/$VERSION
25 LOG_BASE=$ARCHIVE_BASE/logs/$CFG_NAME
26 LOG_ALL=$LOG_BASE/all.log
29 # Figure out the host platform
51 # Figure out the build tools
52 if [[ $HOST_OS == "freebsd" ]]; then
53 alias make='execute gmake'
55 alias make='execute make'
58 alias makedir='execute mkdir -p'
59 alias delete='execute rm -rf'
60 alias copy='execute cp -pRL'
61 alias move='execute mv -f'
65 # Initial setup, if requested
66 if [[ $1 == "initial" ]]; then
67 # Setup directories if needed
68 rm -rf $BUILD_BASE $ARCHIVE_BASE
69 mkdir -p $BUILD_ROOT $BUILD_BASE
70 mkdir -p $ARCHIVE_BASE
73 if [ ! -f $LOG_ALL ]; then