[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: gEDA-user: tragesym and multiple slots



On Tue, 21 Mar 2006 14:29:49 +0000
Tomasz Nowak <nowak2000@xxxxxxxxxxxxxx> wrote:

I wrote a shell script that allows to check if there aren't any repeating or missing pins (in my file there were, but the error still shows up).
Best regards
TN

== My new problematic slotdefs ==
footprint=pq208
numslots=3
slot=1
slotdef=1:105,106,107,108,109,110,115,37,38,31,32,33,34,35,36,29,40,56,75,93,111,129,7,26,28,131,146,164,183,199,19,62,116,152,188,8,20,27,30,39,41,57,63,76,94,112,117,130,132,147,153,165,184,189,200,113,114
slotdef=2:133,134,135,136,137,138,139,140,141,142,143,144,145,148,149,150,151,154,155,156,157,158,159,160,161,170,171,172,173,174,175,176,177,178,179,180,181,182,185,186,187,190,191,192,193,194,195,196,197,198,201,202,203,204,205,206,207,208,1,2,3,4,5,6,9,10,166,167,168,169
slotdef=3:42,43,44,45,46,47,48,49,50,51,52,53,54,55,58,59,60,61,64,65,66,67,68,69,70,71,72,73,74,77,78,79,125,126,127,128,80,81,82,83,84,85,86,87,88,89,90,91,92,95,96,97,98,99,100,101,102,103,104,118,119,120,121,122,123,124,17,18,21,22,23,24,25,162,163,11,12,13,14,15,16

== The script ==

#!/bin/bash

#######
# This script checks if the source file for tragesym contains
# repeating or missing pin numbers.
# Usage: pass as stdin the source.
# You'll get:
# <auto generated nr> <pin number from source> <if equal -> OK, else PROBLEM>
######
while read line; do
	echo "$line" | grep "^slotdef" | sed -e "s/slotdef.*\://g" | tr ',' '\n' >> tmpg
done
echo "No      Pin"
sort -n tmpg | nl | awk '{ print $1, $2, ($1==$2)?"OK":"PROBLEM" }'
rm tmpg