caravel/scripts/fix_mag.bash

10 lines
265 B
Bash
Raw Normal View History

#!/bin/env bash
mag_path=$1
mags=$(find $mag_path -maxdepth 1 -type f -name '*.mag' )
for mag in $mags; do
filename=$(basename $mag)
2022-10-18 06:55:54 -05:00
sed -i -E 's#(use +sky130_\S+_sc_(\S+)__\S+ +\S+ +)\S+#\1$PDKPATH/libs.ref/sky130_fd_sc_\2/mag#' $mag_path/$filename
done