2010-12-27 10:49:39 -06:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
BASEDIR=/tmp/eeschema-lib
|
|
|
|
|
|
|
|
CATEGORIES="lions tigers kitties"
|
|
|
|
|
|
|
|
PARTS="eyes ears feet"
|
|
|
|
|
|
|
|
REVS="rev1 rev5 rev10"
|
|
|
|
|
2011-02-27 02:16:05 -06:00
|
|
|
LINE="(line (pts (xy 12 13)(xy 12 20))(line_width 1.5))"
|
|
|
|
RECT="(rectangle (start 4 5)(end 6 8)(line_width 2.3)(fill transparent))"
|
|
|
|
CIRCLE="(circle (center 1 0)(radius 5)(line_width 2.1)(fill none))"
|
|
|
|
ARC="(arc (pos 22 33)(radius 12)(start 2 4)(end 13 33)(line_width 2.3)(fill filled))"
|
2010-12-27 10:49:39 -06:00
|
|
|
|
|
|
|
|
|
|
|
for C in ${CATEGORIES}; do
|
|
|
|
|
|
|
|
mkdir -p $BASEDIR/$C
|
|
|
|
|
|
|
|
for P in ${PARTS}; do
|
|
|
|
for R in ${REVS}; do
|
2011-02-27 02:16:05 -06:00
|
|
|
echo "(part $C/$P (value 22)(footprint SM0805)(model Airplane)$LINE$RECT$CIRCLE$ARC)" > $BASEDIR/$C/$P.part.$R
|
2010-12-27 10:49:39 -06:00
|
|
|
done
|
2011-01-09 07:35:13 -06:00
|
|
|
# also make the part without a rev:
|
2011-02-27 02:16:05 -06:00
|
|
|
echo "(part $C/$P (value 22)(footprint SM0805)(model Airplane)$LINE$RECT$CIRCLE$ARC)" > $BASEDIR/$C/$P.part
|
2010-12-27 10:49:39 -06:00
|
|
|
done
|
|
|
|
done
|
2011-01-09 07:35:13 -06:00
|
|
|
|