Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 7984256

Browse files
committed
build_ps(): Fix flags to dvips.
build_html(): Deal with node2label.pl a little better.
1 parent 5ccf330 commit 7984256

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

Doc/tools/mkhowto.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ DEFAULT_FORMAT=PDF
1313
USE_DEFAULT_FORMAT=true
1414
DISCARD_TEMPS=true
1515

16-
HTML_SPLIT_LEVEL=''
16+
HTML_SPLIT_LEVEL=0
1717
L2H_INIT_FILE=$TOPDIR/perl/l2hinit.perl
1818

1919
# This is needed to support kpathsea based TeX installations. Others are
@@ -55,7 +55,7 @@ EOF
5555
}
5656

5757
build_html() {
58-
if [ "$HTML_SPLIT_LEVEL" ] ; then
58+
if [ "$HTML_SPLIT_LEVEL" -gt 0 ] ; then
5959
if [ "$ADDRESS" ] ; then
6060
latex2html -init_file $L2H_INIT_FILE \
6161
-address "$ADDRESS" \
@@ -76,7 +76,7 @@ build_html() {
7676
$1 || exit $?
7777
fi
7878
fi
79-
if [ "$HTML_SPLIT_LEVEL" != 1 ] ; then
79+
if [ "$HTML_SPLIT_LEVEL" -ne 1 ] ; then
8080
(cd $FILE; $MYDIR/node2label.pl *.html) || exit $?
8181
fi
8282
}
@@ -123,7 +123,7 @@ build_pdf() {
123123
}
124124

125125
build_ps() {
126-
dvips -N0 -o $1.ps -f $1 || exit $?
126+
dvips -N0 -o $1.ps $1 || exit $?
127127
}
128128

129129
cleanup() {

0 commit comments

Comments
 (0)