Skip to content
Snippets Groups Projects
Commit 2c2b3bce authored by Troy Kisky's avatar Troy Kisky
Browse files

boundary_insert.sh: add check for = in added config to check for success

parent c26d13e0
No related branches found
No related tags found
No related merge requests found
...@@ -53,11 +53,15 @@ for board in ${boards} ; do ...@@ -53,11 +53,15 @@ for board in ${boards} ; do
if [ $? -eq 1 ] ; then if [ $? -eq 1 ] ; then
cp defconfig configs/${defconfig}_defconfig; cp defconfig configs/${defconfig}_defconfig;
echo updated ${defconfig}_defconfig; echo updated ${defconfig}_defconfig;
# git update-index configs/${defconfig}_defconfig; git update-index configs/${defconfig}_defconfig;
update_cnt=`expr $update_cnt + 1`; update_cnt=`expr $update_cnt + 1`;
for insert_config in ${cfgs} ; do for insert_config in ${cfgs} ; do
if [ `expr "${board_cfgs}" : "[A-Z0-9_:]*:${insert_config}:"` -eq 0 ] ; then if [ `expr "${board_cfgs}" : "[A-Z0-9_:]*:${insert_config}:"` -eq 0 ] ; then
cnt=`sed -n "/${insert_config}=/=" configs/${defconfig}_defconfig` if [[ ${insert_config} == *=* ]] ; then
cnt=`sed -n "/${insert_config}/=" configs/${defconfig}_defconfig`
else
cnt=`sed -n "/${insert_config}=/=" configs/${defconfig}_defconfig`
fi
if [ "${cnt}" != "" ] ; then if [ "${cnt}" != "" ] ; then
board_cfgs="${board_cfgs}:${insert_config}:" board_cfgs="${board_cfgs}:${insert_config}:"
fi fi
...@@ -75,10 +79,10 @@ for board in ${boards} ; do ...@@ -75,10 +79,10 @@ for board in ${boards} ; do
echo "${board}: ${update_cnt} defconfigs updated, ${already_there} already there"; echo "${board}: ${update_cnt} defconfigs updated, ${already_there} already there";
numsuccess=`expr $numsuccess + 1`; numsuccess=`expr $numsuccess + 1`;
if [ ${board_cfgs} != ":" ] ; then if [ ${board_cfgs} != ":" ] ; then
# git c -m"${board}: add ${board_cfgs//::/ } to defconfigs"; git c -m"${board}: add ${board_cfgs//::/ } to defconfigs";
echo updating ${board} ${board_cfgs//::/ } echo updating ${board} ${board_cfgs//::/ }
else else
# git c -m"${board}: reorder defconfigs"; git c -m"${board}: reorder defconfigs";
echo reorder ${board} ${board_cfgs//::/ } echo reorder ${board} ${board_cfgs//::/ }
fi fi
else else
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment