#!/bin/csh -f
#
#  This C-shell sccript is used to make the CIFoutput section of
#    MOSIS's CMOS technology file for Magic version 6.3
#
echo "Making CIFoutput in SCG style"
#  use C-preprocessor to calaulate lambda value
cc -P scgcifout.c
#  string replace...
sed -e "/^#/D" -e "s/(gen )/(gen)/" -e "s/(nwell )/(nwell)/" -e "s/(pwell )/(pwell)/" scgcifout.i > CIFout
# remove tmp file
rm -f scgcifout.i
