Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
cpython
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
Batuhan Osman TASKAYA
cpython
Commits
8805354b
Kaydet (Commit)
8805354b
authored
Nis 24, 1998
tarafından
Fred Drake
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Simplify how some options get propogated.
üst
3af9f251
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
27 additions
and
24 deletions
+27
-24
mkhowto.sh
Doc/tools/mkhowto.sh
+27
-24
No files found.
Doc/tools/mkhowto.sh
Dosyayı görüntüle @
8805354b
...
...
@@ -13,7 +13,6 @@ DEFAULT_FORMAT=PDF
USE_DEFAULT_FORMAT
=
true
DISCARD_TEMPS
=
true
HTML_SPLIT_LEVEL
=
0
L2H_INIT_FILE
=
$TOPDIR
/perl/l2hinit.perl
# This is needed to support kpathsea based TeX installations. Others are
...
...
@@ -39,6 +38,7 @@ Options specifying formats to build:
HTML options:
--address, -a Specify an address for page footers.
--link Specify the number of levels to include on each page.
--split, -s Specify a section level for page splitting.
Other options:
...
...
@@ -54,29 +54,25 @@ EOF
exit
$1
}
# These are LaTeX2HTML controls; they reflect l2h variables of the same name.
# The values here are the defaults after modification by perl/l2hinit.perl.
#
ADDRESS
=
''
MAX_LINK_DEPTH
=
3
MAX_SPLIT_DEPTH
=
8
build_html
()
{
if
[
"
$HTML_SPLIT_LEVEL
"
-gt
0
]
;
then
if
[
"
$ADDRESS
"
]
;
then
latex2html
-init_file
$L2H_INIT_FILE
\
-address
"
$ADDRESS
"
\
-split
$HTML_SPLIT_LEVEL
\
$1
||
exit
$?
else
latex2html
-init_file
$L2H_INIT_FILE
\
-split
$HTML_SPLIT_LEVEL
\
$1
||
exit
$?
fi
if
[
"
$ADDRESS
"
]
;
then
latex2html
-init_file
$L2H_INIT_FILE
\
-address
"
$ADDRESS
"
\
-link
$MAX_LINK_DEPTH
-split
$MAX_SPLIT_DEPTH
\
$1
||
exit
$?
else
if
[
"
$ADDRESS
"
]
;
then
latex2html
-init_file
$L2H_INIT_FILE
\
-address
"
$ADDRESS
"
\
$1
||
exit
$?
else
latex2html
-init_file
$L2H_INIT_FILE
\
$1
||
exit
$?
fi
latex2html
-init_file
$L2H_INIT_FILE
\
-link
$MAX_LINK_DEPTH
-split
$MAX_SPLIT_DEPTH
\
$1
||
exit
$?
fi
if
[
"
$
HTML_SPLIT_LEVEL
"
-ne
1
]
;
then
if
[
"
$
MAX_SPLIT_DEPTH
"
-ne
1
]
;
then
(
cd
$FILE
;
$MYDIR
/node2label.pl
*
.html
)
||
exit
$?
fi
}
...
...
@@ -141,7 +137,7 @@ while [ "$1" ] ; do
USE_DEFAULT_FORMAT
=
false
shift
1
;;
--ps
)
--ps
|
--postscript
|
--postscrip
|
--postscri
|
--postscr
|
--postsc
|
--posts
|
--post
|
--pos
|
--po
)
BUILD_PS
=
true
USE_DEFAULT_FORMAT
=
false
shift
1
...
...
@@ -163,11 +159,15 @@ while [ "$1" ] ; do
ADDRESS
=
"
$2
"
shift
2
;;
--link
|
--lin
|
--li
)
LINK
=
"
$2
"
shift
2
;;
-s
|
--split
|
--spli
|
--spl
|
--sp
|
--s
)
HTML_SPLIT_LEVEL
=
"
$2
"
MAX_SPLIT_DEPTH
=
"
$2
"
shift
2
;;
-l
|
--logging
|
--loggin
|
--loggi
|
--logg
|
--log
|
--lo
|
--l
)
-l
|
--logging
|
--loggin
|
--loggi
|
--logg
|
--log
|
--lo
)
LOGGING
=
true
shift
1
;;
...
...
@@ -183,6 +183,9 @@ while [ "$1" ] ; do
QUIET
=
true
shift
1
;;
--
)
break
;;
-
*
)
usage 2
;;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment