From: Michael Tremer Date: Mon, 8 Jul 2024 16:18:57 +0000 (+0000) Subject: make.sh: Add a tail command to stream any logs X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=f575be2ae7fbbb3639fa5f0117fcd2f42dff8215;p=people%2Fms%2Fipfire-2.x.git make.sh: Add a tail command to stream any logs Signed-off-by: Michael Tremer --- diff --git a/make.sh b/make.sh index b95262778..b0f747e2a 100755 --- a/make.sh +++ b/make.sh @@ -2248,6 +2248,12 @@ build) print_build_summary $(( SECONDS - START_TIME )) ;; +tail) + tail -F \ + "${LOG_DIR}/_build.toolchain.log" \ + "${LOG_DIR}/_build.${SNAME}.log" \ + "${LOG_DIR}/_build.packages.log" 2>/dev/null + ;; shell) # Launch in a new namespace exec_in_namespace "$@" @@ -2376,7 +2382,7 @@ __timer) __timer "${2}" || exit $? ;; *) - echo "Usage: $0 [OPTIONS] {build|check-manualpages|clean|downloadsrc|find-dependencies|gettoolchain|lang|shell|toolchain|update-contributors|uploadsrc}" + echo "Usage: $0 [OPTIONS] {build|check-manualpages|clean|downloadsrc|find-dependencies|gettoolchain|lang|shell|tail|toolchain|update-contributors|uploadsrc}" cat doc/make.sh-usage ;; esac