xiaoxiang781216 commented on code in PR #15542:
URL: https://github.com/apache/nuttx/pull/15542#discussion_r1915030340
##########
tools/refresh.sh:
##########
@@ -117,24 +118,29 @@ fi
if [ "X${CONFIGS}" == "Xall" ]; then
echo "Normalizing all boards!"
CONFIGS=`find boards -name defconfig | cut -d'/' -f4,6`
+ CNT_CONFIGS=`find boards -name defconfig | wc -l`
else
if [[ "X${CONFIGS}" == "Xarch:"* ]]; then
IFS=: read -r atype archname <<< "${CONFIGS}"
ARCH=$archname
echo "Normalizing all boards in arch: ${ARCH} !"
CONFIGS=`find boards/${ARCH} -name defconfig | cut -d'/' -f4,6`
+ CNT_CONFIGS=`find boards/${ARCH} -name defconfig | wc -l`
else
if [[ "X${CONFIGS}" == "Xchip:"* ]]; then
IFS=: read -r atype chipname <<< "${CONFIGS}"
CHIP=$chipname
echo "Normalizing all boards in chip: ${CHIP} !"
CONFIGS=`find boards/*/${CHIP} -name defconfig | cut -d'/' -f4,6`
+ CNT_CONFIGS=`find boards/*/${CHIP} -name defconfig | wc -l`
fi
fi
fi
+IDX=0
for CONFIG in ${CONFIGS}; do
Review Comment:
let's change to for i...
##########
tools/refresh.sh:
##########
@@ -117,24 +118,29 @@ fi
if [ "X${CONFIGS}" == "Xall" ]; then
echo "Normalizing all boards!"
CONFIGS=`find boards -name defconfig | cut -d'/' -f4,6`
+ CNT_CONFIGS=`find boards -name defconfig | wc -l`
Review Comment:
can we directly compute from ${CONFIGS}
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]