summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile13
-rwxr-xr-xsch2pdf4
-rwxr-xr-xtest/genpng2
3 files changed, 10 insertions, 9 deletions
diff --git a/Makefile b/Makefile
index 998e37a..93f1592 100644
--- a/Makefile
+++ b/Makefile
@@ -136,14 +136,14 @@ sch:
eeschema test.sch
test: eeplot
- ./eeplot test.lib test.sch -- fig >out.fig
+ ./eeplot test.lib test.sch -- fig -o out.fig
fig2dev -L png -m 2 out.fig _out.png
[ ! -r ref.png ] || \
compare -metric AE ref.png _out.png _diff.png || \
qiv -t -R -D _diff.png ref.png _out.png
testref: eeplot
- ./eeplot test.lib test.sch -- fig | \
+ ./eeplot test.lib test.sch -- fig -o fig:- | \
fig2dev -L png -m 2 >ref.png
png: eeplot
@@ -168,8 +168,7 @@ SHEET ?= 12
neo900: eeplot
./eeplot $(NEO900_HW)/neo900.lib \
$(KICAD_LIBS)/powered.lib \
- $(NEO900_HW)/neo900_SS_$(SHEET).sch \
- >out.fig
+ $(NEO900_HW)/neo900_SS_$(SHEET).sch -- fig -o out.fig
neo900.pdf: eeplot sch2pdf neo900-template.fig
./sch2pdf -o $@ -t neo900-template.fig \
@@ -202,8 +201,10 @@ leak: eediff
$(SUPP:%=--suppressions=%.supp) \
./eediff $(NEO900_HW)/neo900.pro -- \
diff $(NEO900_HW)/neo900.pro >/dev/null
-# ./eeplot -N 1 $(NEO900_HW)/neo900.pro -- pdf >/dev/null
-# ./eeplot -N 1 $(NEO900_HW)/neo900.pro -- png >/dev/null
+# ./eeplot -N 1 $(NEO900_HW)/neo900.pro \
+# -- pdf -o pdf:- >/dev/null
+# ./eeplot -N 1 $(NEO900_HW)/neo900.pro \
+# -- png -o png:- >/dev/null
#----- Install / uninstall ---------------------------------------------------
diff --git a/sch2pdf b/sch2pdf
index 8613f5a..6233971 100755
--- a/sch2pdf
+++ b/sch2pdf
@@ -57,7 +57,7 @@ while [ "$2" ]; do
done
./eeplot $libs "$1" \
- -- fig $template "TITLE=`basename \"$1\" .sch`" NUMBER=$num |
+ -- fig -o fig:- $template "TITLE=`basename \"$1\" .sch`" NUMBER=$num |
fig2dev -L pdf >"$out"
sheet=false
@@ -84,7 +84,7 @@ while read line; do
$quiet || echo "$file" 1>&2
./eeplot $libs `dirname "$1"`/$file \
- -- fig $template "TITLE=$name" NUMBER=$num |
+ -- fig -o fig:- $template "TITLE=$name" NUMBER=$num |
fig2dev -L pdf >_tmp.pdf
pdfunite "$out" _tmp.pdf _tmp2.pdf
mv _tmp2.pdf "$out"
diff --git a/test/genpng b/test/genpng
index 36e0dfa..2ffbe33 100755
--- a/test/genpng
+++ b/test/genpng
@@ -30,7 +30,7 @@ while [ $sheet -le 38 ]; do
file=$dir/$prefix$sn.png
$dir/../eeplot $dir/neo900-ee/hw/neo900.lib \
$dir/kicad-libs/components/powered.lib "$in" \
- -- fig -t $dir/frame.fig SHEET=$sn |
+ -- fig -o fig:- -t $dir/frame.fig SHEET=$sn |
fig2dev -L png -m 2 >$file
sheet=`expr $sheet + 1`
done