GitHub
04/16/2023, 2:07 PM# Add missing trailing semi-colon to: is_macro_cell : true;
for f in $(find . -type f -exec egrep -Hinl "is_macro_cell\s*:\s*(true|false)\s+?$" {} \;); do echo $f; sed -e 's#\(is_macro_cell\s*:\s*true\)$#\1;#' -i "$f"; done
# Add missing trailing semi-colon to:
for f in $(find . -type f -exec egrep -Hinl '"\s*$' {} \;); do echo $f; sed -e 's#\s\+$#;#' -i "$f"; done
# sky130_ef_io__vssd_lvc_clamped3_pad_ss_100C_1v45_1v65.lib: operating_conditions (deep_sleep_lfclk_max_-40) {
# sky130_ef_io__vssd_lvc_clamped3_pad_ss_100C_1v45_1v65.lib: operating_conditions ("deep_sleep_lfclk_max_-40") {
for f in $(find . -name "*.lib" -exec egrep -Hni "\([^\"].*\).*{" {} \; | egrep -v "\([a-zA-Z\$_][a-zA-Z0-9\$_]+\)" | cut -d':' -f1); do \
echo $f; sed -e 's#operating_conditions (\(.*\))#operating_conditions (\"\1\")#' -i "$f"; done
# operating_conditions(MAX) {
# operating_conditions("MAX") {
for f in $(find . -name "*.lib" -exec egrep -Hnil "operating_conditions\s*\([^\"\)]+\)" {} \;); do \
echo $f; sed -e 's#\(operating_conditions\s*(\)\([^\)\"]\+\)#\1\"\2\"#' -i "$f"; done
RTimothyEdwards/open_pdksGitHub
04/23/2023, 7:00 AM