-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.ksh
executable file
·41 lines (34 loc) · 1.14 KB
/
build.ksh
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
#!/usr/bin/env ksh93
# This script is the head of Copacabana's build system.
# Copyright (c) 2023-2024: Pindorama
# SPDX-Licence-Identifier: NCSA
set -e
progname="${0##*/}"
progdir="$(cd "$(dirname "$progname")"; pwd -P)"
# _make
tasks="$progdir/build-system/tasks"
made="$progdir/_made"
. "$progdir/build-system/internals/makier.ksh"
# Immediatly source and run the platform
# checks before doing anything else.
_make 'checks/platform'
. "$progdir/build-system/internals/posix-alt.shi"
. "$progdir/build-system/internals/log.shi"
. "$progdir/build-system/internals/helpers.shi"
. "$progdir/build-system/internals/rconfig.shi"
. "$progdir/build-system/internals/disks.shi"
rconfig "$progdir/build-system/machine.ini"
rconfig "$progdir/build-system/work.ini"
rconfig "$progdir/build-system/fhs.ini"
trash="$(mktemp -d "$TRASH_PREFIX/CopaBuild.XXXXXX")"
map dtime initial "$(date +'%Hh%Mmin on %B %d, %Y')"
check_for_colour_support
check_elevate_method
_make 'checks/dependencies'
_make 'disk/create_disk' "$DISK_BLOCK"
_make set_dirs
_make 'disk/populate'
_make get_sources sources.txt sources.sha256
_make build_set toolchain
_make build_set base
_make finish