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"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
for C in ${CATEGORIES}; do
|
|
|
|
|
|
|
|
mkdir -p $BASEDIR/$C
|
|
|
|
|
|
|
|
for P in ${PARTS}; do
|
|
|
|
for R in ${REVS}; do
|
2011-01-09 13:35:13 +00:00
|
|
|
echo "(part $C/$P (value 22)(footprint SM0805))" > $BASEDIR/$C/$P.part.$R
|
2010-12-27 16:49:39 +00:00
|
|
|
done
|
2011-01-09 13:35:13 +00:00
|
|
|
# also make the part without a rev:
|
|
|
|
echo "(part $C/$P (value 22)(footprint SM0805))" > $BASEDIR/$C/$P.part
|
2010-12-27 16:49:39 +00:00
|
|
|
done
|
|
|
|
done
|
2011-01-09 13:35:13 +00:00
|
|
|
|