2023-02-19 01:02:03 +00:00
|
|
|
function echofail() {
|
|
|
|
echo $1
|
|
|
|
exit 1
|
|
|
|
}
|
|
|
|
|
|
|
|
function mkfaildir() {
|
|
|
|
echo "Creating directory '$1'."
|
|
|
|
mkdir -p $1 || echofail "Failed to create '$1' directory."
|
|
|
|
}
|
|
|
|
|
|
|
|
# clean the slate
|
|
|
|
rm -Rfv ${dir_stage}
|
2023-02-19 01:55:42 +00:00
|
|
|
rm -Rf ${dir_logs}
|
2023-02-19 01:02:03 +00:00
|
|
|
|
|
|
|
mkfaildir ${dir_stage}
|
|
|
|
mkfaildir ${dir_localtools}
|
|
|
|
mkfaildir ${dir_artifacts}
|
|
|
|
mkfaildir ${dir_logs}
|
|
|
|
mkfaildir ${dir_configs}
|
|
|
|
mkfaildir ${dir_patches}
|
|
|
|
mkfaildir ${dir_sources}
|
|
|
|
mkfaildir ${dir_sysroot}
|
|
|
|
|
|
|
|
echo "Stage directories now exist."
|