Changeset 76ad756c in rtems


Ignore:
Timestamp:
07/10/14 05:56:11 (9 years ago)
Author:
Chris Johns <chrisj@…>
Branches:
4.11, 5, master
Children:
333f9426
Parents:
e1f446d3
Message:

FreeBSD standard shell does not support substring expansion.

Switch to using awk to get a string of spaces.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • rtems-bsps

    re1f446d3 r76ad756c  
    99
    1010max_bsp_len=0
    11 spaces="                             "
    1211
    1312for bsp in ${cfg_list};
     
    1918  fi
    2019done
     20max_bsp_len=$(expr ${max_bsp_len} + 2)
    2121
    2222echo "RTEMS 4.11"
     
    3030   last_arch=${arch}
    3131 fi
    32  echo " ${bsp}${spaces:${#bsp}}${path}"
     32 spaces=$(echo ${bsp} | awk '{ printf("%*s", '${max_bsp_len}' -length(), " "); }')
     33 echo " ${bsp}${spaces}${path}"
    3334done
    3435
Note: See TracChangeset for help on using the changeset viewer.