diff options
author | Brian Woods | 2020-08-05 10:05:26 -0700 |
---|---|---|
committer | Stefano Stabellini | 2020-08-05 13:57:21 -0700 |
commit | 6bfed7743ac709a64e22e3832d353eed7c39ff78 (patch) | |
tree | d743b9632289809be5dbf80c9987b6fd5751350b /scripts/uboot-script-gen | |
parent | 4bae33b6e081010ef7f7c3e3aa1600240aacee88 (diff) |
Don't display full path when printing help
Signed-off-by: Brian Woods <brian.woods@xilinx.com>
Reviewed-by: Stefano Stabellini <sstabellini@kernel.org>
Signed-off-by: Stefano Stabellini <stefano.stabellini@xilinx.com>
Diffstat (limited to 'scripts/uboot-script-gen')
-rwxr-xr-x | scripts/uboot-script-gen | 7 |
1 files changed, 4 insertions, 3 deletions
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 |