mirror of
git://projects.qi-hardware.com/eda-tools.git
synced 2024-12-24 18:53:54 +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
|
>out.fig
|
||||||
|
|
||||||
neo900.pdf: $(NAME) sch2pdf neo900-template.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.lib $(KICAD_LIBS)/powered.lib \
|
||||||
$(NEO900_HW)/neo900.sch
|
$(NEO900_HW)/neo900.sch
|
||||||
|
|
||||||
|
@ -56,9 +56,12 @@ while [ "$2" ]; do
|
|||||||
shift
|
shift
|
||||||
done
|
done
|
||||||
|
|
||||||
first=true
|
./sch2fig "-DTITLE=`basename \"$1\" .sch" -DNUMBER=$num $template $libs "$1" |
|
||||||
|
fig2dev -L pdf >"$out"
|
||||||
|
|
||||||
sheet=false
|
sheet=false
|
||||||
while read line; do
|
while read line; do
|
||||||
|
num=`expr $num + 1`
|
||||||
if ! $sheet; then
|
if ! $sheet; then
|
||||||
[ "${line#\$Sheet}" != "$line" ] && sheet=true
|
[ "${line#\$Sheet}" != "$line" ] && sheet=true
|
||||||
continue
|
continue
|
||||||
@ -80,13 +83,7 @@ while read line; do
|
|||||||
./sch2fig "-DTITLE=$name" -DNUMBER=$num $template \
|
./sch2fig "-DTITLE=$name" -DNUMBER=$num $template \
|
||||||
$libs `dirname "$1"`/$file |
|
$libs `dirname "$1"`/$file |
|
||||||
fig2dev -L pdf >_tmp.pdf
|
fig2dev -L pdf >_tmp.pdf
|
||||||
if $first; then
|
|
||||||
mv _tmp.pdf "$out"
|
|
||||||
first=false
|
|
||||||
else
|
|
||||||
pdfunite "$out" _tmp.pdf _tmp2.pdf
|
pdfunite "$out" _tmp.pdf _tmp2.pdf
|
||||||
mv _tmp2.pdf "$out"
|
mv _tmp2.pdf "$out"
|
||||||
fi
|
|
||||||
num=`expr $num + 1`
|
|
||||||
done <"$1"
|
done <"$1"
|
||||||
exit
|
exit
|
||||||
|
Loading…
Reference in New Issue
Block a user