From 6bfed7743ac709a64e22e3832d353eed7c39ff78 Mon Sep 17 00:00:00 2001 From: Brian Woods Date: Wed, 5 Aug 2020 10:05:26 -0700 Subject: Don't display full path when printing help Signed-off-by: Brian Woods Reviewed-by: Stefano Stabellini Signed-off-by: Stefano Stabellini --- scripts/uboot-script-gen | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'scripts/uboot-script-gen') diff --git a/scripts/uboot-script-gen b/scripts/uboot-script-gen index 0bf5c90..db194fe 100755 --- a/scripts/uboot-script-gen +++ b/scripts/uboot-script-gen @@ -189,9 +189,10 @@ function check_depends() function print_help { + script=`basename "$0"` echo "usage:" - echo " $0 -c CONFIG_FILE -t UBOOT_TYPE -d DIRECTORY [-o FILE]" - echo " $0 -h" + echo " $script -c CONFIG_FILE -t UBOOT_TYPE -d DIRECTORY [-o FILE]" + echo " $script -h" echo "where:" echo " CONFIG_FILE - configuration file" echo " UBOOT_TYPE can be:" @@ -204,7 +205,7 @@ function print_help echo "Defaults:" echo " CONFIG_FILE=$cfg_file, UBOOT_TYPE=\"LOAD_CMD\" env var, DIRECTORY=$uboot_dir" echo "Example:" - echo " $0 -c ../config -d ./build42 -t \"scsi load 1:1\"" + echo " $script -c ../config -d ./build42 -t \"scsi load 1:1\"" } while getopts ":c:t:d:ho:" opt; do -- cgit v1.2.3