mirror of
git://projects.qi-hardware.com/eda-tools.git
synced 2024-11-26 16:01:31 +02:00
sch2fig/sch2pdf: add missing backtick; count properly
This commit is contained in:
parent
7caf1fb84a
commit
9ac486aef8
@ -56,12 +56,11 @@ while [ "$2" ]; do
|
||||
shift
|
||||
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"
|
||||
|
||||
sheet=false
|
||||
while read line; do
|
||||
num=`expr $num + 1`
|
||||
if ! $sheet; then
|
||||
[ "${line#\$Sheet}" != "$line" ] && sheet=true
|
||||
continue
|
||||
@ -71,6 +70,7 @@ while read line; do
|
||||
continue
|
||||
fi
|
||||
fi
|
||||
|
||||
if [ "${line#F0 \"}" != "$line" ]; then
|
||||
name=${line#F0 \"}
|
||||
name=${name%%\"*}
|
||||
@ -79,6 +79,8 @@ while read line; do
|
||||
file=${line#F1 \"}
|
||||
file=${file%%\"*}
|
||||
|
||||
num=`expr $num + 1`
|
||||
|
||||
$quiet || echo "$file" 1>&2
|
||||
./sch2fig "-DTITLE=$name" -DNUMBER=$num $template \
|
||||
$libs `dirname "$1"`/$file |
|
||||
|
Loading…
Reference in New Issue
Block a user