mirror of
git://projects.qi-hardware.com/eda-tools.git
synced 2024-12-23 17:12:24 +02:00
sch2fig/sch2pdf, Makefile: also process the first page
This commit is contained in:
parent
0dfd3ff7e2
commit
fa8f76eb12
@ -57,7 +57,7 @@ neo900: $(NAME)
|
||||
>out.fig
|
||||
|
||||
neo900.pdf: $(NAME) sch2pdf neo900-template.fig
|
||||
./sch2pdf -n 2 -o $@ -t neo900-template.fig \
|
||||
./sch2pdf -o $@ -t neo900-template.fig \
|
||||
$(NEO900_HW)/neo900.lib $(KICAD_LIBS)/powered.lib \
|
||||
$(NEO900_HW)/neo900.sch
|
||||
|
||||
|
@ -56,9 +56,12 @@ while [ "$2" ]; do
|
||||
shift
|
||||
done
|
||||
|
||||
first=true
|
||||
./sch2fig "-DTITLE=`basename \"$1\" .sch" -DNUMBER=$num $template $libs "$1" |
|
||||
fig2dev -L pdf >"$out"
|
||||
|
||||
sheet=false
|
||||
while read line; do
|
||||
num=`expr $num + 1`
|
||||
if ! $sheet; then
|
||||
[ "${line#\$Sheet}" != "$line" ] && sheet=true
|
||||
continue
|
||||
@ -80,13 +83,7 @@ while read line; do
|
||||
./sch2fig "-DTITLE=$name" -DNUMBER=$num $template \
|
||||
$libs `dirname "$1"`/$file |
|
||||
fig2dev -L pdf >_tmp.pdf
|
||||
if $first; then
|
||||
mv _tmp.pdf "$out"
|
||||
first=false
|
||||
else
|
||||
pdfunite "$out" _tmp.pdf _tmp2.pdf
|
||||
mv _tmp2.pdf "$out"
|
||||
fi
|
||||
num=`expr $num + 1`
|
||||
pdfunite "$out" _tmp.pdf _tmp2.pdf
|
||||
mv _tmp2.pdf "$out"
|
||||
done <"$1"
|
||||
exit
|
||||
|
Loading…
Reference in New Issue
Block a user