From patchwork Sun May 29 18:51:58 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: jon X-Patchwork-Id: 5639 Return-Path: Received: from mail01.ipfire.org (mail01.haj.ipfire.org [172.28.1.202]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384 client-signature ECDSA (P-384) client-digest SHA384) (Client CN "mail01.haj.ipfire.org", Issuer "R3" (verified OK)) by web04.haj.ipfire.org (Postfix) with ESMTPS id 4LB72S2lThz3wcf for ; Sun, 29 May 2022 18:52:32 +0000 (UTC) Received: from mail02.haj.ipfire.org (mail02.haj.ipfire.org [172.28.1.201]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) client-signature ECDSA (P-384)) (Client CN "mail02.haj.ipfire.org", Issuer "R3" (verified OK)) by mail01.ipfire.org (Postfix) with ESMTPS id 4LB72P0QR2zSK; Sun, 29 May 2022 18:52:29 +0000 (UTC) Received: from mail02.haj.ipfire.org (localhost [127.0.0.1]) by mail02.haj.ipfire.org (Postfix) with ESMTP id 4LB72N6Jc0z2yPh; Sun, 29 May 2022 18:52:28 +0000 (UTC) Received: from mail01.ipfire.org (mail01.haj.ipfire.org [172.28.1.202]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384 client-signature ECDSA (P-384) client-digest SHA384) (Client CN "mail01.haj.ipfire.org", Issuer "R3" (verified OK)) by mail02.haj.ipfire.org (Postfix) with ESMTPS id 4LB72M0k4Kz2xGX for ; Sun, 29 May 2022 18:52:27 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384) (No client certificate requested) by mail01.ipfire.org (Postfix) with ESMTPSA id 4LB72K6jtZzSK; Sun, 29 May 2022 18:52:25 +0000 (UTC) DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=ipfire.org; s=202003ed25519; t=1653850346; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=uGlHctKTQTPVHCEMV9fNrG50hIxda8RfBXrEIEZAsHc=; b=+gpTgDZGKIkMe0zZFUeE2ErrJZ4R/sPzC0jgD6Lmo4Xih9hZJ0SC0W3EJ+Lv/sLzmC6ZVr LtQKqrEyZV5OFXBA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ipfire.org; s=202003rsa; t=1653850346; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=uGlHctKTQTPVHCEMV9fNrG50hIxda8RfBXrEIEZAsHc=; b=gKTL+21cX1Jm4GgFQOmEUJVKN7RnyhK9gUI7g4CQ1M6idMwBeYKVjAN+upL/wqnpGTD6mK 3yMIlPxboS9MMJENFF82nvx6RH+sb8Nzy1KGDL+TaFoAX4k7S/oX3X9U01iqlzVhxcRta2 NZ18JztITwwxrEXHW93zK1PfHftUp+LLPvHTZjax6m8epqtQqcaeKXmPnJoEIVuWvE04GL dIyxeGImYN/7JtVx9Kk5iFG+C2RBHYlByslrNmj7yFBBk9l3QR+wJHZ1RmzPvOmWmrBkjw eMw1og7+qnaZPOMJCJm+YCFnLx0lTZ7YiMf3kATvw3WUdiAMfEesH+kVvIYOLQ== From: Jon Murphy To: development@lists.ipfire.org Subject: [PATCH] make.sh: Add OPTION to not clear screen Date: Sun, 29 May 2022 13:51:58 -0500 Message-Id: <20220529185158.3517499-1-jon.murphy@ipfire.org> MIME-Version: 1.0 X-BeenThere: development@lists.ipfire.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: IPFire development talk List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: development-bounces@lists.ipfire.org Sender: "Development" - minor changes to build and toolchain section - screen will not clear if option "--no-clear" is included - assists beginners (me!) view all steps in build process Signed-off-by: Jon Murphy --- doc/make.sh-usage | 3 +++ make.sh | 10 ++++++++-- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/doc/make.sh-usage b/doc/make.sh-usage index 5e1e3dd22..32e7fd862 100644 --- a/doc/make.sh-usage +++ b/doc/make.sh-usage @@ -21,3 +21,6 @@ Options: the desired target architecture. Can be permanently set with TARGET_ARCH= in .config. + + --no-clear : do not clear screen when during command build or toolchain + diff --git a/make.sh b/make.sh index 3ed9190b9..1e22a513b 100755 --- a/make.sh +++ b/make.sh @@ -1803,11 +1803,17 @@ ipfirepackages() { rm -rf $BASEDIR/build/install/packages/* } +# Default setting +CLEAR_SCREEN=true + while [ $# -gt 0 ]; do case "${1}" in --target=*) configure_build "${1#--target=}" ;; + --no-clear) + CLEAR_SCREEN=false + ;; -*) exiterror "Unknown configuration option: ${1}" ;; @@ -1825,7 +1831,7 @@ build) START_TIME="${SECONDS}" # Clear screen - ${INTERACTIVE} && clear + ${INTERACTIVE} && ${CLEAR_SCREEN} && clear PACKAGE="$BASEDIR/cache/toolchains/$SNAME-$VERSION-toolchain-$TOOLCHAINVER-${BUILD_ARCH}.tar.zst" #only restore on a clean disk @@ -1971,7 +1977,7 @@ downloadsrc) ;; toolchain) # Clear screen - ${INTERACTIVE} && clear + ${INTERACTIVE} && ${CLEAR_SCREEN} && clear prepareenv print_build_stage "Toolchain compilation (${BUILD_ARCH})"