2010-12-27 16:49:39 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
BASEDIR=/tmp/eeschema-lib
|
|
|
|
|
|
|
|
CATEGORIES="lions tigers kitties"
|
|
|
|
|
|
|
|
PARTS="eyes ears feet"
|
|
|
|
|
|
|
|
REVS="rev1 rev5 rev10"
|
|
|
|
|
|
|
|
|
2011-03-27 06:07:25 +00:00
|
|
|
REFERENCE="
|
2011-04-03 00:36:10 +00:00
|
|
|
(reference U?
|
2011-04-18 06:26:00 +00:00
|
|
|
(effects (at 12 13 180)(font (size 7 10))(visible yes))
|
2011-03-27 06:07:25 +00:00
|
|
|
)"
|
|
|
|
|
|
|
|
LINE="
|
|
|
|
(line
|
2011-04-18 06:26:00 +00:00
|
|
|
(pts (xy 12 13)(xy 12 20))(stroke 1.5)
|
2011-03-27 06:07:25 +00:00
|
|
|
)"
|
|
|
|
|
|
|
|
RECT="
|
|
|
|
(rectangle
|
2011-04-18 06:26:00 +00:00
|
|
|
(start 4 5)(end 6 8)(stroke 2.3)(fill transparent)
|
2011-03-27 06:07:25 +00:00
|
|
|
)"
|
|
|
|
|
|
|
|
CIRCLE="
|
|
|
|
(circle
|
2011-04-18 06:26:00 +00:00
|
|
|
(center 1 0)(radius 5)(stroke 2.1)(fill none)
|
2011-03-27 06:07:25 +00:00
|
|
|
)"
|
|
|
|
|
|
|
|
ARC="
|
|
|
|
(arc
|
2011-04-18 06:26:00 +00:00
|
|
|
(pos 22 33)(radius 12)(start 2 4)(end 13 33)(stroke 2.3)(fill filled)
|
2011-03-27 06:07:25 +00:00
|
|
|
)"
|
|
|
|
|
|
|
|
BEZIER="
|
|
|
|
(bezier
|
2011-04-18 06:26:00 +00:00
|
|
|
(fill none)(stroke 2.0)(pts (xy 0 1)(xy 2 4))
|
2011-03-27 06:07:25 +00:00
|
|
|
)"
|
|
|
|
|
|
|
|
TEXT="
|
2011-04-03 18:24:45 +00:00
|
|
|
(text (at 23 23 90.0) \"This is some text\" (justify left bottom)(visible yes)(fill filled)
|
2011-04-18 06:26:00 +00:00
|
|
|
(font arial (size 8 12))
|
2011-03-27 06:07:25 +00:00
|
|
|
)"
|
|
|
|
|
|
|
|
PIN1="
|
2011-04-18 06:26:00 +00:00
|
|
|
(pin out line (at 7 8 90)
|
|
|
|
(signal #WE (font (size 8 10) bold)(visible no))
|
|
|
|
(pad A23 (font (size 9 11) italic bold))
|
2011-03-27 06:07:25 +00:00
|
|
|
)"
|
|
|
|
|
|
|
|
PIN2="
|
2011-04-18 06:26:00 +00:00
|
|
|
(pin in line (at 8 8)(visible yes)
|
|
|
|
(signal #WAIT (visible yes))
|
|
|
|
(pad A24 (visible yes))
|
2011-03-27 06:07:25 +00:00
|
|
|
)"
|
|
|
|
|
2011-04-11 03:36:37 +00:00
|
|
|
PIN3="
|
2011-04-18 06:26:00 +00:00
|
|
|
(pin (pad A25))"
|
2011-04-11 03:36:37 +00:00
|
|
|
|
|
|
|
PINS="
|
2011-04-18 06:26:00 +00:00
|
|
|
(pin (pad Z12))(pin (pad Y14))(pin (pad Z13))(pin (pad Y15))"
|
2011-04-11 03:36:37 +00:00
|
|
|
|
|
|
|
|
|
|
|
PIN_SWAP="
|
|
|
|
(pin_swap A23 A24)"
|
|
|
|
|
|
|
|
PIN_RENUM="
|
|
|
|
(pin_renum A24 B24)"
|
|
|
|
|
|
|
|
PIN_RENAME="
|
2011-04-18 06:26:00 +00:00
|
|
|
(pin_rename B24 LED)"
|
2011-04-11 03:36:37 +00:00
|
|
|
|
|
|
|
PIN_DELETE="
|
|
|
|
(pin_del B24)"
|
|
|
|
|
2011-04-18 06:26:00 +00:00
|
|
|
PIN_MERGE="(pin_merge A23 (pads Z12 Y14))(pin_merge A25 (pads Z13 Y15))"
|
2011-04-11 03:36:37 +00:00
|
|
|
|
|
|
|
|
2011-03-27 06:07:25 +00:00
|
|
|
PROP1="
|
|
|
|
(property mWatts 12
|
2011-04-18 06:26:00 +00:00
|
|
|
(effects (at 1 34 270)(font (size 5 9) italic bold)(visible no))
|
2011-03-27 06:07:25 +00:00
|
|
|
)"
|
2011-03-20 01:59:17 +00:00
|
|
|
|
2011-03-28 05:02:59 +00:00
|
|
|
KEYWORDS="
|
|
|
|
(keywords varistor batcave einstein)"
|
|
|
|
|
2011-04-11 03:36:37 +00:00
|
|
|
ALTERNATES="
|
|
|
|
(alternates 7400/7400_b 7400/7400_c)"
|
|
|
|
|
|
|
|
|
2011-03-20 01:59:17 +00:00
|
|
|
|
2010-12-27 16:49:39 +00:00
|
|
|
for C in ${CATEGORIES}; do
|
|
|
|
|
|
|
|
mkdir -p $BASEDIR/$C
|
|
|
|
|
|
|
|
for P in ${PARTS}; do
|
2011-06-26 23:35:44 +00:00
|
|
|
|
2010-12-27 16:49:39 +00:00
|
|
|
for R in ${REVS}; do
|
2011-04-03 00:36:10 +00:00
|
|
|
echo "(part $C/$P (value 22)(footprint SM0805)(model Airplane)(datasheet http://favorite.pdf)
|
2011-03-27 06:07:25 +00:00
|
|
|
$REFERENCE
|
2011-02-28 05:45:58 +00:00
|
|
|
$LINE
|
|
|
|
$RECT
|
|
|
|
$CIRCLE
|
|
|
|
$ARC
|
|
|
|
$BEZIER
|
|
|
|
$TEXT
|
2011-03-27 06:07:25 +00:00
|
|
|
$PIN1
|
|
|
|
$PIN2
|
2011-04-11 03:36:37 +00:00
|
|
|
$PIN3
|
|
|
|
$PINS
|
2011-03-27 06:07:25 +00:00
|
|
|
$PROP1
|
2011-03-28 05:02:59 +00:00
|
|
|
$KEYWORDS
|
2011-04-11 03:36:37 +00:00
|
|
|
$ALTERNATES
|
|
|
|
$PIN_SWAP
|
|
|
|
$PIN_RENUM
|
|
|
|
$PIN_RENAME
|
|
|
|
$PIN_DELETE
|
|
|
|
$PIN_MERGE
|
2011-02-28 05:45:58 +00:00
|
|
|
)" > $BASEDIR/$C/$P.part.$R
|
2010-12-27 16:49:39 +00:00
|
|
|
done
|
2011-06-26 23:35:44 +00:00
|
|
|
|
2011-01-09 13:35:13 +00:00
|
|
|
# also make the part without a rev:
|
2011-04-03 00:36:10 +00:00
|
|
|
echo "(part $C/$P (value 22)(footprint SM0805)(model Airplane)(datasheet http://favorite.pdf)
|
2011-03-27 06:07:25 +00:00
|
|
|
$REFERENCE
|
2011-02-28 05:45:58 +00:00
|
|
|
$LINE
|
|
|
|
$RECT
|
|
|
|
$CIRCLE
|
|
|
|
$ARC
|
|
|
|
$BEZIER
|
|
|
|
$TEXT
|
2011-03-27 06:07:25 +00:00
|
|
|
$PIN1
|
|
|
|
$PIN2
|
2011-04-11 03:36:37 +00:00
|
|
|
$PIN3
|
|
|
|
$PINS
|
2011-03-27 06:07:25 +00:00
|
|
|
$PROP1
|
2011-03-28 05:02:59 +00:00
|
|
|
$KEYWORDS
|
2011-04-11 03:36:37 +00:00
|
|
|
$ALTERNATES
|
|
|
|
$PIN_SWAP
|
|
|
|
$PIN_RENUM
|
|
|
|
$PIN_RENAME
|
|
|
|
$PIN_DELETE
|
|
|
|
$PIN_MERGE
|
2011-02-28 05:45:58 +00:00
|
|
|
)" > $BASEDIR/$C/$P.part
|
2011-06-26 23:35:44 +00:00
|
|
|
|
2010-12-27 16:49:39 +00:00
|
|
|
done
|
2011-06-26 23:35:44 +00:00
|
|
|
|
2010-12-27 16:49:39 +00:00
|
|
|
done
|
2011-01-09 13:35:13 +00:00
|
|
|
|