Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
9f6f0da0
Commit
9f6f0da0
authored
Aug 12, 1998
by
Fred Drake
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improved some error messages for command line processing.
Added --all to produce all formats at once.
parent
00c468b0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
2 deletions
+17
-2
Doc/tools/mkhowto.sh
Doc/tools/mkhowto.sh
+17
-2
No files found.
Doc/tools/mkhowto.sh
View file @
9f6f0da0
...
...
@@ -40,7 +40,7 @@ Options specifying formats to build:
--dvi "DeVice Indepentent" format from TeX
--text ASCII text
More than one output format may be specified.
More than one output format may be specified
, or --all
.
HTML options:
--address, -a Specify an address for page footers.
...
...
@@ -59,6 +59,10 @@ Other options:
(stderr is also lost, sorry; see *.how for errors)
EOF
if
[
"
$2
"
]
;
then
echo
"
$2
"
echo
fi
exit
$1
}
...
...
@@ -159,6 +163,15 @@ cleanup() {
# figure out what our targets are:
while
[
"
$1
"
]
;
do
case
"
$1
"
in
--all
|
--al
)
BUILD_PDF
=
true
BUILD_PS
=
true
BUILD_DVI
=
true
BUILD_HTML
=
true
BUILD_TEXT
=
true
USE_DEFAULT_FORMAT
=
false
shift
1
;;
--pdf
|
--pd
)
BUILD_PDF
=
true
USE_DEFAULT_FORMAT
=
false
...
...
@@ -243,8 +256,10 @@ if [ $# = 0 ] ; then
COUNT
=
`
ls
-1
*
.tex |
wc
-l
|
sed
's/[ ]//g'
`
if
[
"
$COUNT
"
-eq
1
]
;
then
set
--
`
ls
-1
*
.tex
`
elif
[
"
$COUNT
"
-gt
1
]
;
then
usage 2
"Could not deduce which file(s) to process as HOWTO documents."
else
usage 2
usage 2
"No file to process."
fi
fi
...
...
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