diff --git a/scripts/klayout b/scripts/klayout index dc5d39f..73c4342 100644 --- a/scripts/klayout +++ b/scripts/klayout @@ -1,11 +1,11 @@ -#!/bin/bash -export KLAYOUT_HOME=$PDK_ROOT/$PDK/libs.tech/klayout -if [[ $PDK = gf180mcu* ]]; then - if [[ ! -d $KLAYOUT_HOME/pymacros/cells ]]; then - mv $KLAYOUT_HOME/pymacros/* $KLAYOUT_HOME/pymacros/cells | mkdir $KLAYOUT_HOME/pymacros/cells - fi - if [[ ! -f $KLAYOUT_HOME/pymacros/gf180mcu.lym ]]; then - mv $KLAYOUT_HOME/tech/gf180mcu.lym $KLAYOUT_HOME/pymacros - fi -fi -/bin/klayout $@ +#!/bin/bash +export KLAYOUT_HOME=$PDK_ROOT/$PDK/libs.tech/klayout +if [[ $PDK = gf180mcu* ]]; then + if [[ ! -d $KLAYOUT_HOME/pymacros/cells ]]; then + mv $KLAYOUT_HOME/pymacros/* $KLAYOUT_HOME/pymacros/cells | mkdir $KLAYOUT_HOME/pymacros/cells + fi + if [[ ! -f $KLAYOUT_HOME/pymacros/gf180mcu.lym ]]; then + mv $KLAYOUT_HOME/tech/gf180mcu.lym $KLAYOUT_HOME/pymacros + fi +fi +/bin/klayout $@