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
a4565b07
Kaydet (Commit)
a4565b07
authored
May 15, 1998
tarafından
Fred Drake
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Update to use latex2html 98.1p5.
üst
8dbf46a7
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
32 additions
and
36 deletions
+32
-36
l2hinit.perl
Doc/perl/l2hinit.perl
+29
-34
mkhtml.sh
Doc/tools/mkhtml.sh
+3
-2
No files found.
Doc/perl/l2hinit.perl
Dosyayı görüntüle @
a4565b07
...
...
@@ -28,40 +28,6 @@ $ICONSERVER = '../icons';
$CHILDLINE
=
"\n<p><hr>\n"
;
$VERBOSITY
=
0
;
$TEXINPUTS
=
''
;
# avoid bogus l2h setting it to ':' !!!
sub
absolutize_path
{
my
$path
=
@_
[
0
];
my
$npath
=
''
;
foreach
$dir
(
split
$envkey
,
$path
)
{
$npath
.=
make_directory_a
bsolute
(
$dir
)
.
$envkey
;
}
$npath
=~
s/$envkey$//
;
$npath
;
}
# This is done because latex2html doesn't do this for us, but does change the
# directory out from under us.
if
(
defined
$ENV
{
'TEXINPUTS'
})
{
$ENV
{
'TEXINPUTS'
}
=
absolutize_path
(
$ENV
{
'TEXINPUTS'
});
}
# Locate a file that's been "require"d. Assumes that the file name of interest
# is unique within the set of loaded files, after directory names have been
# stripped. Only the directory is returned.
#
sub
find_my_file
{
my
(
$myfile
,
$key
,
$tmp
,
$mydir
)
=
(
@_
[
0
],
''
,
''
,
''
);
foreach
$key
(
keys
%
INC
)
{
$tmp
=
"$key"
;
$tmp
=~
s
|^.*/||
o
;
if
(
$tmp
eq
$myfile
)
{
$mydir
=
$INC
{
$key
};
}
}
$mydir
=~
s
|
/[^/
]
*
$|
|
;
$mydir
;
}
# A little painful, but lets us clean up the top level directory a little,
...
...
@@ -79,6 +45,35 @@ $LATEX2HTMLSTYLES = "$mydir$envkey$LATEX2HTMLSTYLES";
chop
$myrootdir
;
# Hackish way to get the appropriate paper-*/ directory into $TEXINPUTS;
# pass in the paper size (a4 or letter) as the environment variable PAPER
# to add the right directory. If not given, the current directory is
# added instead for use with HOWTO processing.
#
if
(
defined
$ENV
{
'PAPER'
})
{
$mytexinputs
=
"$myrootdir${dd}paper-$ENV{'PAPER'}$envkey"
;
}
else
{
$mytexinputs
=
getcwd
()
.
$envkey
;
}
$mytexinputs
.=
"$myrootdir${dd}texinputs"
;
sub
custom_driver_hook
{
#
# This adds the directory of the main input file to $TEXINPUTS; it
# seems to be sufficiently general that it should be fine for HOWTO
# processing.
#
my
$file
=
@_
[
0
];
my
(
$jobname
,
$dir
,
$ext
)
=
fileparse
(
$file
,
'\..*'
);
$dir
=
make_directory_a
bsolute
(
$dir
);
$dir
=~
s/$dd$//
;
$TEXINPUTS
=
"$dir$envkey$mytexinputs"
;
print
"\nadding $dir to \$TEXINPUTS\n"
;
}
sub
make_nav_panel
{
(
$NEXT_TITLE
?
$NEXT
:
''
)
.
(
$UP_TITLE
?
$UP
:
''
)
...
...
Doc/tools/mkhtml.sh
Dosyayı görüntüle @
a4565b07
...
...
@@ -19,10 +19,11 @@ if [ -d $part ] ; then
rm
-f
$part
/
*
.html
fi
echo
"latex2html -init_file
$srcdir
/perl/l2hinit.perl
${
1
:+
$@
}
"
\
"
$srcdir
/
$part
/
$part
.tex"
echo
"latex2html -init_file
$srcdir
/perl/l2hinit.perl
-dir
$part
"
\
"
$
{
1
:+
$@
}
$
srcdir
/
$part
/
$part
.tex"
latex2html
\
-init_file
$srcdir
/perl/l2hinit.perl
\
-dir
$part
\
${
1
:+
$@
}
\
$srcdir
/
$part
/
$part
.tex
...
...
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