aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorBrian Woods2020-08-05 10:05:26 -0700
committerStefano Stabellini2020-08-05 13:57:21 -0700
commit6bfed7743ac709a64e22e3832d353eed7c39ff78 (patch)
treed743b9632289809be5dbf80c9987b6fd5751350b /scripts
parent4bae33b6e081010ef7f7c3e3aa1600240aacee88 (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')
-rwxr-xr-xscripts/uboot-script-gen7
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