#! /bin/sh
if [ $# -ne 1 ]; then
    echo "specify filename as argument";
    exit 1;
fi
name=$1
awk -v header=1 -v type=0 -v layer=1 -f e2p_conv.awk ${name}.sol > ${name}.pcb
awk -v header=0 -v type=0 -v layer=2 -f e2p_conv.awk ${name}.cmp >> ${name}.pcb
awk -v header=0 -v type=0 -v layer=4 -f e2p_conv.awk ${name}.plc >> ${name}.pcb
awk -v header=0 -v type=0 -v layer=5 -f e2p_conv.awk ${name}.sts >> ${name}.pcb
awk -v header=0 -v type=0 -v layer=6 -f e2p_conv.awk ${name}.stc >> ${name}.pcb
awk -v header=0 -v type=1 -v layer=8 -f e2p_conv.awk ${name}.drd >> ${name}.pcb



