summaryrefslogtreecommitdiff
path: root/amlogic_help.sh
diff options
context:
space:
mode:
authorJerry Cao <jerry.cao@amlogic.com>2017-02-09 22:26:23 -0800
committerXiaobo Gu <xiaobo.gu@amlogic.com>2017-02-23 15:08:23 +0800
commit3b154988c7c9d7cf9e5fb238a3cdcf2f5328d0bf (patch)
tree2f674f5e9031d62e6d76d1edea01ef06c108db67 /amlogic_help.sh
parent0b507a407b2f008a533d65f763eeb1951b541303 (diff)
downloadu-boot-odroid-c1-3b154988c7c9d7cf9e5fb238a3cdcf2f5328d0bf.tar.gz
Fix amlogic_help.sh stand alone invocation [1/1]
Set srctree variable to support invoking amlogic_help.sh stand alone. Use printf instead of echo to print tabulated help list in stand alone invocation. Change-Id: I100f704eb4b850f2be75f79883663b8d41650b00
Diffstat (limited to 'amlogic_help.sh')
-rwxr-xr-xamlogic_help.sh11
1 files changed, 6 insertions, 5 deletions
diff --git a/amlogic_help.sh b/amlogic_help.sh
index 4df368f39b..d29218dacb 100755
--- a/amlogic_help.sh
+++ b/amlogic_help.sh
@@ -1,9 +1,12 @@
# print amlogic board config
+if [ -z ${srctree} ]; then
+ srctree=`pwd`
+fi
+
folder_board=${srctree}"/board/amlogic"
#echo $folder_board
-
#ls -a ${folder_board}
echo ""
@@ -17,8 +20,7 @@ for file in ${folder_board}/*; do
temp_file=`basename $file`
#echo "$temp_file"
if [ -d ${folder_board}/${temp_file} ] && [ "$temp_file" != "defconfigs" ] && [ "$temp_file" != "configs" ];then
- echo " \c"
- echo $temp_file
+ printf "\t$temp_file\n"
fi
done
@@ -30,8 +32,7 @@ if [ -e ${customer_folder} ];then
for file in ${customer_folder}/*; do
temp_file=`basename $file`
if [ -d ${customer_folder}/${temp_file} ] && [ "$temp_file" != "defconfigs" ] && [ "$temp_file" != "configs" ];then
- echo " \c"
- echo $temp_file
+ printf "\t$temp_file\n"
fi
done
echo "*******************************************"