This is an automated email from the ASF dual-hosted git repository.

davids5 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git

commit 580364362cd85eb60369a322714b105f9e2e1709
Author: Xiang Xiao <[email protected]>
AuthorDate: Fri Mar 20 12:14:26 2020 +0800

    tools/refresh.sh: Support passing the multiple configuration
    
    Signed-off-by: Xiang Xiao <[email protected]>
    Change-Id: Id3d4464e2d30871763b40067b3162b793e99c98f
---
 tools/README.txt |  2 +-
 tools/refresh.sh | 11 +++++------
 2 files changed, 6 insertions(+), 7 deletions(-)

diff --git a/tools/README.txt b/tools/README.txt
index dfee90f..c5aa36e 100644
--- a/tools/README.txt
+++ b/tools/README.txt
@@ -856,7 +856,7 @@ refresh.sh
     $ tools/refresh.sh --help
     tools/refresh.sh is a tool for refreshing board configurations
 
-    USAGE: ./refresh.sh [options] <board>/<config>
+    USAGE: ./refresh.sh [options] <board>/<config>+
 
     Where [options] include:
       --debug
diff --git a/tools/refresh.sh b/tools/refresh.sh
index 14a9a6e..9dda1dc 100755
--- a/tools/refresh.sh
+++ b/tools/refresh.sh
@@ -34,7 +34,7 @@
 
 WD=`test -d ${0%/*} && cd ${0%/*}; pwd`
 
-USAGE="USAGE: $0 [options] <board>:<config>"
+USAGE="USAGE: $0 [options] <board>:<config>+"
 ADVICE="Try '$0 --help' for more information"
 
 unset CONFIGS
@@ -47,7 +47,6 @@ while [ ! -z "$1" ]; do
   case $1 in
   --debug )
     debug=y
-    set -x
     ;;
   --silent )
     defaults=y
@@ -90,7 +89,7 @@ while [ ! -z "$1" ]; do
     exit 0
     ;;
   * )
-    CONFIGS=$1
+    CONFIGS=$*
     break
     ;;
   esac
@@ -238,13 +237,13 @@ for CONFIG in ${CONFIGS}; do
       if [ "X${debug}" = "Xy" ]; then
         make olddefconfig V=1
       else
-        make olddefconfig 1>/dev/null 2>&1
+        make olddefconfig 1>/dev/null
       fi
     else
       if [ "X${debug}" = "Xy" ]; then
         make oldconfig V=1
       else
-        make oldconfig
+        make oldconfig 1>/dev/null
       fi
     fi
   fi
@@ -254,7 +253,7 @@ for CONFIG in ${CONFIGS}; do
   if [ "X${debug}" = "Xy" ]; then
     make savedefconfig V=1
   else
-    make savedefconfig 1>/dev/null 2>&1
+    make savedefconfig 1>/dev/null
   fi
 
   # Save the refreshed configuration

Reply via email to