#!/bin/sh
# ccteg
#
# (Circuit Example)
# This command allows a fast turn-around time when first putting together a
# cct via the Circuit_Macros 4.6. Run `ccteg', open an `xdvi ccteg' in
# another window, and fiddle until you are satisfied, then `cp ccteg.m4
# RealName.m4', followed by `cct RealName' to get the includable `.cct'
# file suitable for my `ArcMacro' LaTeX package.
# 
# 13/4/99 Alan Robert Clark a.clark@ee.wits.ac.za

# This line obviously operates on the working dir, hence need to copy the
# .tex file if one does not exist!
if [ -e ccteg.m4 ]
  then 
    m4 ccteg.m4 | gpic -t > ccteg.cct
    if  [ ! -e ccteg.tex ] 
      then 
        cp /usr/local/bin/ccteg.tex . 
    fi
    latex ccteg.tex
fi
