]> git.ipfire.org Git - people/ms/ipfire-2.x.git/commitdiff
make.sh: Add a tail command to stream any logs
authorMichael Tremer <michael.tremer@ipfire.org>
Mon, 8 Jul 2024 16:18:57 +0000 (16:18 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Mon, 8 Jul 2024 16:18:57 +0000 (16:18 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
make.sh

diff --git a/make.sh b/make.sh
index b952627782a0d5ef4ac75f17315b689fcb3b4fe0..b0f747e2ae4aa36f691ef3041ba9a108927a5793 100755 (executable)
--- 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