[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
Re: gEDA-user: all pads became oval
> > I've been following the latest CVS of PCB. Just recently, all of the
> > pads on one of my designs became oval... I don't know if it was like
I just checked in a fix for this.
FYI my ongoing backup script is attached. Following CVS without a
backup plan is a Bad Thing.
> Same here. What did you do to make them square again?
You need something like this:
sed 's/\(Pad.*\)"\]/\1,square"\]/' < old.pcb > temp.pcb
sed 's/",square"/"square"/' < temp.pcb > new.pcb
That adds a "square" flag to all pads, then you can re-oval the ones
you want oval.
#!/usr/bin/perl
($s,$m,$h,$dd,$mm,$yy) = localtime;
$yy += 1900;
$mm += 1;
$bu = sprintf("%04d%02d%02d-%02d%02d", $yy, $mm, $dd, $h, $m);
system "cp control.pcb backups/control-$bu.pcb";