1
0
mirror of git://projects.qi-hardware.com/eda-tools.git synced 2024-11-26 18:42:28 +02:00

sch2fig/sch2pdf: add missing backtick; count properly

This commit is contained in:
Werner Almesberger 2016-07-29 23:29:17 -03:00
parent 7caf1fb84a
commit 9ac486aef8

View File

@ -56,12 +56,11 @@ while [ "$2" ]; do
shift shift
done done
./sch2fig "-DTITLE=`basename \"$1\" .sch" -DNUMBER=$num $template $libs "$1" | ./sch2fig "-DTITLE=`basename \"$1\" .sch`" -DNUMBER=$num $template $libs "$1" |
fig2dev -L pdf >"$out" 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
@ -71,6 +70,7 @@ while read line; do
continue continue
fi fi
fi fi
if [ "${line#F0 \"}" != "$line" ]; then if [ "${line#F0 \"}" != "$line" ]; then
name=${line#F0 \"} name=${line#F0 \"}
name=${name%%\"*} name=${name%%\"*}
@ -79,6 +79,8 @@ while read line; do
file=${line#F1 \"} file=${line#F1 \"}
file=${file%%\"*} file=${file%%\"*}
num=`expr $num + 1`
$quiet || echo "$file" 1>&2 $quiet || echo "$file" 1>&2
./sch2fig "-DTITLE=$name" -DNUMBER=$num $template \ ./sch2fig "-DTITLE=$name" -DNUMBER=$num $template \
$libs `dirname "$1"`/$file | $libs `dirname "$1"`/$file |