You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by ut...@apache.org on 2019/01/04 14:08:12 UTC
[mynewt-core] 02/02: Fix identation (tabs -> spaces)
This is an automated email from the ASF dual-hosted git repository.
utzig pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mynewt-core.git
commit d6ffc9bf7d072b15685fdf7c4a0b865d14d6f6cf
Author: Fabio Utzig <ut...@apache.org>
AuthorDate: Fri Jan 4 07:07:13 2019 -0200
Fix identation (tabs -> spaces)
---
hw/scripts/common.sh | 42 +++++++++++++++++++++---------------------
1 file changed, 21 insertions(+), 21 deletions(-)
diff --git a/hw/scripts/common.sh b/hw/scripts/common.sh
index f64fc14..763c803 100755
--- a/hw/scripts/common.sh
+++ b/hw/scripts/common.sh
@@ -5,9 +5,9 @@
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
-#
+#
# http://www.apache.org/licenses/LICENSE-2.0
-#
+#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
@@ -53,25 +53,25 @@ parse_extra_jtag_cmd() {
NEW_EXTRA_JTAG_CMD=""
while [ "$1" != "" ]; do
- case $1 in
- -port)
- shift
- # Many BSP scripts append their own things additional
- # parameters. This is done in a way where openocd delimeter is
- # immediatelly adjacent to parameters passed via newt.
- # The following is to filter out the delimeter from
- # PORT, but keep it present within the string passed
- # to openocd.
- PORT=`echo $1 | tr -c -d 0-9`
- ADDITIONAL_CHARS=`echo $1 | tr -d 0-9`
- NEW_EXTRA_JTAG_CMD="$NEW_EXTRA_JTAG_CMD $ADDITIONAL_CHARS"
- shift
- ;;
- *)
- NEW_EXTRA_JTAG_CMD="$NEW_EXTRA_JTAG_CMD $1"
- shift
- ;;
- esac
+ case $1 in
+ -port)
+ shift
+ # Many BSP scripts append their own things additional
+ # parameters. This is done in a way where openocd delimeter is
+ # immediatelly adjacent to parameters passed via newt.
+ # The following is to filter out the delimeter from
+ # PORT, but keep it present within the string passed
+ # to openocd.
+ PORT=`echo $1 | tr -c -d 0-9`
+ ADDITIONAL_CHARS=`echo $1 | tr -d 0-9`
+ NEW_EXTRA_JTAG_CMD="$NEW_EXTRA_JTAG_CMD $ADDITIONAL_CHARS"
+ shift
+ ;;
+ *)
+ NEW_EXTRA_JTAG_CMD="$NEW_EXTRA_JTAG_CMD $1"
+ shift
+ ;;
+ esac
done
echo $NEW_EXTRA_JTAG_CMD
EXTRA_JTAG_CMD=$NEW_EXTRA_JTAG_CMD