summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xbootstrap-main.sh27
1 files changed, 19 insertions, 8 deletions
diff --git a/bootstrap-main.sh b/bootstrap-main.sh
index 9ec0f32..fcdfe63 100755
--- a/bootstrap-main.sh
+++ b/bootstrap-main.sh
@@ -26,15 +26,26 @@ SCRIPT_DIR=
main()
{
SCRIPT_DIR="$(cd "${0%/*}" && pwd)"
+ DATE="$(date '+%Y-%m-%d_%H:%M:%S')"
- "${SCRIPT_DIR}/bootstrap-prepare.sh"
- "${SCRIPT_DIR}/bootstrap-stage1-build.sh"
- "${SCRIPT_DIR}/bootstrap-stage1-install.sh"
- "${SCRIPT_DIR}/bootstrap-stage1-test.sh"
- "${SCRIPT_DIR}/bootstrap-stage2-build.sh"
- "${SCRIPT_DIR}/bootstrap-stage2-install.sh"
- "${SCRIPT_DIR}/bootstrap-stage2-test.sh"
- "${SCRIPT_DIR}/bootstrap-stage3-build.sh"
+ [-d logs ] || mkdir logs
+
+ { time -p "${SCRIPT_DIR}/bootstrap-prepare.sh"; } \
+ >"logs/${DATE}_prepare.log" 2>&1
+ { time -p "${SCRIPT_DIR}/bootstrap-stage1-build.sh" } \
+ >"logs/${DATE}_stage1-build.log" 2>&1
+ { time -p "${SCRIPT_DIR}/bootstrap-stage1-install.sh" } \
+ >"logs/${DATE}_stage1-install.log" 2>&1
+ { time -p "${SCRIPT_DIR}/bootstrap-stage1-test.sh" } \
+ >"logs/${DATE}_stage1-test.log" 2>&1
+ { time -p "${SCRIPT_DIR}/bootstrap-stage2-build.sh" } \
+ >"logs/${DATE}_stage2-build.log" 2>&1
+ { time -p "${SCRIPT_DIR}/bootstrap-stage2-install.sh" } \
+ >"logs/${DATE}_stage2-install.log" 2>&1
+ { time -p "${SCRIPT_DIR}/bootstrap-stage2-test.sh" } \
+ >"logs/${DATE}_stage2-test.log" 2>&1
+ { time -p "${SCRIPT_DIR}/bootstrap-stage3-build.sh" } \
+ >"logs/${DATE}_stage3-build.log" 2>&1
}
main "${@}"