]> code.ossystems Code Review - openembedded-core.git/commitdiff
toolchain-shar-extract.sh: print full-length title underline
authorPaul Eggleton <paul.eggleton@linux.intel.com>
Mon, 19 Oct 2015 16:33:12 +0000 (17:33 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 20 Oct 2015 09:11:44 +0000 (10:11 +0100)
Print a line that's the full length of the title that it's underneath.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/files/toolchain-shar-extract.sh

index 2eeb2903c8d9473910aec0042c7dd747f7689276..98b9f1cd98bedc0aedb8f39a97aa4de1df0171c8 100644 (file)
@@ -68,8 +68,9 @@ while getopts ":yd:nDRS" OPT; do
        esac
 done
 
-echo "@SDK_TITLE@ installer version @SDK_VERSION@"
-echo "==========================================================="
+titlestr="@SDK_TITLE@ installer version @SDK_VERSION@"
+printf "%s\n" "$titlestr"
+printf "%${#titlestr}s\n" | tr " " "="
 
 if [ $verbose = 1 ] ; then
        set -x