1
0
mirror of git://projects.qi-hardware.com/eda-tools.git synced 2024-11-26 17:57:30 +02:00

sch2fig/genpng: start with the first/index sheet

This commit is contained in:
Werner Almesberger 2016-07-29 22:04:39 -03:00
parent fa8f76eb12
commit 626cae2210

View File

@ -18,14 +18,19 @@ fi
prefix=${1:-out} prefix=${1:-out}
sheet=1 sheet=1
while [ $sheet -le 37 ]; do while [ $sheet -le 38 ]; do
echo -n . echo -n .
sn=`printf '%02d' $sheet` sn=`printf '%02d' $sheet`
file=$dir/$prefix$sn.png file=$dir/$prefix$sn.png
if [ $sheet = 1 ]; then
in=$dir/neo900-ee/hw/neo900.sch
else
in=$dir/neo900-ee/hw/neo900_SS_`expr $sheet - 1`.sch
fi
file=$dir/$prefix$sn.png
$dir/../sch2fig -DSHEET=$sn -t $dir/frame.fig \ $dir/../sch2fig -DSHEET=$sn -t $dir/frame.fig \
$dir/neo900-ee/hw/neo900.lib \ $dir/neo900-ee/hw/neo900.lib \
$dir/kicad-libs/components/powered.lib \ $dir/kicad-libs/components/powered.lib "$in" |
$dir/neo900-ee/hw/neo900_SS_$sheet.sch |
fig2dev -L png -m 2 >$file fig2dev -L png -m 2 >$file
sheet=`expr $sheet + 1` sheet=`expr $sheet + 1`
done done