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
e1feb8f2
Kaydet (Commit)
e1feb8f2
authored
Agu 28, 1998
tarafından
Fred Drake
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Support long options that take arguments of the form --option=value as well
as --option value. Minor nits cleaned up.
üst
d82575d5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
40 additions
and
5 deletions
+40
-5
mkhowto.sh
Doc/tools/mkhowto.sh
+40
-5
No files found.
Doc/tools/mkhowto.sh
Dosyayı görüntüle @
e1feb8f2
...
@@ -22,10 +22,12 @@ DISCARD_TEMPS=true
...
@@ -22,10 +22,12 @@ DISCARD_TEMPS=true
ICONSERVER
=
''
ICONSERVER
=
''
TEMPBASE
=
mkhowto-
$LOGNAME
-
$$
L2H_INIT_FILE
=
$TOPDIR
/perl/l2hinit.perl
L2H_INIT_FILE
=
$TOPDIR
/perl/l2hinit.perl
L2H_AUX_INIT_FILE
=
/usr/tmp/
mkhowto-
$LOGNAME
-
$$
.perl
L2H_AUX_INIT_FILE
=
/usr/tmp/
$TEMPBASE
.perl
LOGFILE
=
/usr/tmp/
mkhowto-
$LOGNAME
-
$$
.how
LOGFILE
=
/usr/tmp/
$TEMPBASE
.how
LOGGING
=
''
LOGGING
=
''
usage
()
{
usage
()
{
...
@@ -160,9 +162,23 @@ cleanup() {
...
@@ -160,9 +162,23 @@ cleanup() {
rm
-f
$1
/IMG
*
$1
/
*
.pl
$1
/WARNINGS
$1
/index.dat
$1
/modindex.dat
rm
-f
$1
/IMG
*
$1
/
*
.pl
$1
/WARNINGS
$1
/index.dat
$1
/modindex.dat
}
}
parse_option
()
{
# When using a long option with a parameter separated by '=',
# generalize the parsing of the two:
OPTION
=
"
$1
"
unset
VALUE
STUFF
=
`
echo
"
$1
"
|
grep
'^--[-a-zA-Z0-9]*='
`
if
[
"
$STUFF
"
]
;
then
# This leaves OPTION=--option= and VALUE=value
OPTION
=
`
echo
"
$STUFF
"
|
sed
's/^\(--[-a-zA-Z0-9]*=\)\(.*\)$/\1/'
`
VALUE
=
`
echo
"
$STUFF
"
|
sed
's/^\(--[-a-zA-Z0-9]*=\)\(.*\)$/\2/'
`
fi
}
# figure out what our targets are:
# figure out what our targets are:
while
[
"
$1
"
]
;
do
while
[
"
$1
"
]
;
do
case
"
$1
"
in
parse_option
"
$1
"
case
"
$OPTION
"
in
--all
|
--al
)
--all
|
--al
)
BUILD_PDF
=
true
BUILD_PDF
=
true
BUILD_PS
=
true
BUILD_PS
=
true
...
@@ -204,10 +220,18 @@ while [ "$1" ] ; do
...
@@ -204,10 +220,18 @@ while [ "$1" ] ; do
ICONSERVER
=
"
$2
"
ICONSERVER
=
"
$2
"
shift
2
shift
2
;;
;;
--iconserver
=
*
|
--iconserve
=
*
|
--iconserv
=
*
|
--iconser
=
*
|
--iconse
=
*
|
--icons
=
*
|
--icon
=
*
|
--ico
=
*
|
--ic
=
*
|
--i
=
*
)
ICONSERVER
=
"
$VALUE
"
shift
1
;;
-a
|
--address
|
--addres
|
--addre
|
-addr
|
--add
|
--ad
)
-a
|
--address
|
--addres
|
--addre
|
-addr
|
--add
|
--ad
)
ADDRESS
=
"
$2
"
ADDRESS
=
"
$2
"
shift
2
shift
2
;;
;;
--address
=
*
|
--addres
=
*
|
--addre
=
*
|
-addr
=
*
|
--add
=
*
|
--ad
=
*
)
ADDRESS
=
"
$VALUE
"
shift
1
;;
--a4
)
--a4
)
TEXINPUTS
=
$TOPDIR
/paper-a4:
$TEXINPUTS
TEXINPUTS
=
$TOPDIR
/paper-a4:
$TEXINPUTS
shift
1
shift
1
...
@@ -219,10 +243,18 @@ while [ "$1" ] ; do
...
@@ -219,10 +243,18 @@ while [ "$1" ] ; do
LINK
=
"
$2
"
LINK
=
"
$2
"
shift
2
shift
2
;;
;;
--link
=
*
|
--lin
=
*
|
--li
=
*
)
LINK
=
"
$VALUE
"
shift
1
;;
-s
|
--split
|
--spli
|
--spl
|
--sp
|
--s
)
-s
|
--split
|
--spli
|
--spl
|
--sp
|
--s
)
MAX_SPLIT_DEPTH
=
"
$2
"
MAX_SPLIT_DEPTH
=
"
$2
"
shift
2
shift
2
;;
;;
--split
=
|
--spli
=
|
--spl
=
|
--sp
=
|
--s
=
)
MAX_SPLIT_DEPTH
=
"
$VALUE
"
shift
1
;;
-l
|
--logging
|
--loggin
|
--loggi
|
--logg
|
--log
|
--lo
)
-l
|
--logging
|
--loggin
|
--loggi
|
--logg
|
--log
|
--lo
)
LOGGING
=
true
LOGGING
=
true
shift
1
shift
1
...
@@ -244,7 +276,7 @@ while [ "$1" ] ; do
...
@@ -244,7 +276,7 @@ while [ "$1" ] ; do
break
break
;;
;;
-
*
)
-
*
)
usage 2
usage 2
"Unknown option:
${
VALUE
%=
}
"
;;
;;
*
)
*
)
break
;;
break
;;
...
@@ -277,6 +309,9 @@ fi
...
@@ -277,6 +309,9 @@ fi
echo
'# auxillary init file for latex2html'
>
$L2H_AUX_INIT_FILE
echo
'# auxillary init file for latex2html'
>
$L2H_AUX_INIT_FILE
echo
'# generated by mkhowto.sh -- do no edit'
>>
$L2H_AUX_INIT_FILE
echo
'# generated by mkhowto.sh -- do no edit'
>>
$L2H_AUX_INIT_FILE
if
[
"
$ICONSERVER
"
]
;
then
ICONSERVER
=
"
${
ICONSERVER
%/
}
"
fi
l2hoption ICONSERVER
"
$ICONSERVER
"
l2hoption ICONSERVER
"
$ICONSERVER
"
l2hoption ADDRESS
"
$ADDRESS
"
l2hoption ADDRESS
"
$ADDRESS
"
l2hoption MAX_LINK_DEPTH
"
$MAX_LINK_DEPTH
"
l2hoption MAX_LINK_DEPTH
"
$MAX_LINK_DEPTH
"
...
@@ -285,7 +320,7 @@ echo '1;' >>$L2H_AUX_INIT_FILE
...
@@ -285,7 +320,7 @@ echo '1;' >>$L2H_AUX_INIT_FILE
for
FILE
in
$@
;
do
for
FILE
in
$@
;
do
FILEDIR
=
`
dirname
$FILE
`
FILEDIR
=
`
dirname
$FILE
`
FILE
=
`
basename
$
{
FILE
%.tex
}
`
FILE
=
`
basename
$
FILE
.tex
`
#
#
# Put the directory the .tex file is in is also the first directory in
# Put the directory the .tex file is in is also the first directory in
# TEXINPUTS, to allow files there to override files in the common area.
# TEXINPUTS, to allow files there to override files in the common area.
...
...
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