[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
gEDA: bad grep in gschem2pcb
Hi-
I'm using the gschem2pcb that came in the geda-ngnetlist-20030525-1 rpm,
and the PCB that came from the latest snapshot on sourceforge. When
attempting to add C1 to the PCB after it already has a "SUBD_MALE_LAY
25" footprinted connector in it fails due to the fact that the connector
footprint contains a "C1" pin.
A cursory search of the archives didn't pull up anything, so please
forgive me if this has already been covered, but changing line 79 of
gschem2pcb from:
LINE=`grep -n $f $PCBTEMPFILENAME|sed 's/:.*$//g' `
to
LINE=`grep -n ^Element.\*$f $PCBTEMPFILENAME|sed 's/:.*$//g' `
fixes the problem by ignoring the pin lines in the pcb file. I wouldn't
claim to know if this breaks anything else yet, since I'm just getting
started using the gEDA suite, but it might be a change you want to
consider. It also might be a good idea to sanity check the LINE
variable to make sure it only has one line.
Hope this is helpful,
-Chris
--
Christopher K Eveland <eveland@equinoxsensors.com>
Equinox Corporation