linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Bhaskar Chowdhury <unixbhaskar@gmail.com>
To: dan.carpenter@linaro.org
Cc: Bhaskar Chowdhury <unixbhaskar@gmail.com>, linux-kernel@vger.kernel.org
Subject: [PATCH 2/9] Looks nicer in usage output without the full path of the script
Date: Sat, 21 Jun 2025 04:08:51 +0530	[thread overview]
Message-ID: <afef23e087d4ea73b1700b1effacdcaa46663d35.1750459100.git.unixbhaskar@gmail.com> (raw)
In-Reply-To: <cover.1750459100.git.unixbhaskar@gmail.com>

Add basename to scriptname for the clean look of the output.

Signed-off-by: Bhaskar Chowdhury <unixbhaskar@gmail.com>
---
 smatch_scripts/build_kernel_data.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/smatch_scripts/build_kernel_data.sh b/smatch_scripts/build_kernel_data.sh
index 87f1f0639c55..c338da6e43e4 100755
--- a/smatch_scripts/build_kernel_data.sh
+++ b/smatch_scripts/build_kernel_data.sh
@@ -6,7 +6,7 @@ PROJECT=kernel

 function usage {
     echo
-    echo "Usage:  $0"
+    echo "Usage:  $(basename $0)"
     echo "Updates the smatch_data/ directory and builds the smatch database"
     echo
     exit 1
--
2.46.3


  parent reply	other threads:[~2025-06-20 23:01 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-06-20 22:38 [PATCH 0/9] Trivial fixes in the smatch tree Bhaskar Chowdhury
2025-06-20 22:38 ` [PATCH 1/9] Replace pipes with a binary for cpu core count Bhaskar Chowdhury
2025-06-20 22:38 ` Bhaskar Chowdhury [this message]
2025-06-20 22:38 ` [PATCH 3/9] Eliminate the full path to the script in usage output Bhaskar Chowdhury
2025-06-20 22:38 ` [PATCH 4/9] Doing it for the consistency in the tree,eliminating the full path to the script Bhaskar Chowdhury
2025-06-27 19:07   ` Dan Carpenter
2025-06-20 22:38 ` [PATCH 5/9] Again, for the consistency, eliminate " Bhaskar Chowdhury
2025-06-20 22:38 ` [PATCH 6/9] Trivial fixup to take away the full path of " Bhaskar Chowdhury
2025-06-20 22:38 ` [PATCH 7/9] Took away the full path to " Bhaskar Chowdhury
2025-06-20 22:38 ` [PATCH 8/9] Usage shows without " Bhaskar Chowdhury
2025-06-20 22:38 ` [PATCH 9/9] Trivial changes,usage text show scriptname without path,and few of them use nproc binary to show cpu core Bhaskar Chowdhury

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=afef23e087d4ea73b1700b1effacdcaa46663d35.1750459100.git.unixbhaskar@gmail.com \
    --to=unixbhaskar@gmail.com \
    --cc=dan.carpenter@linaro.org \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).