#!/bin/sh
ext_opt=
act=
nom=
err=0
for i in $*
do
    ext_opt="$ext_opt $act"
    act=$nom
    nom=$i
done
case $act in 
    -*) err=1;;
esac
case $nom in 
    -*) err=1;;
esac
if test "$act" = "" -o "$err" = "1"
then
    cat >&2 << xxEOFxx

Usage: annospace <space options> <act_cell> <ref_cell>

Description:
   Annospace first uses space to extract a cell 'act_cell' without 
   parasitics, then uses match to back annotate net names and transistor
   names from a cell 'ref_cell' - which is supposed to be the equivalent
   circuit for 'act_cell' - to the layout of 'act_cell', and next extracts
   cell 'act_cell' including back annotated information and parasitics.
   Use 'annoclean' to remove back annotated information from a layout.

xxEOFxx
    exit 1
fi
space -Snode_pos_name -Sno_parasitics -Sno_annotations -t $ext_opt $act
match -annotate $nom $act
space $ext_opt $act
