Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
TLMSP curl
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
CYBER - Cyber Security
TS 103 523 MSP
TLMSP
TLMSP curl
Commits
1d937d62
Commit
1d937d62
authored
21 years ago
by
Daniel Stenberg
Browse files
Options
Downloads
Patches
Plain Diff
support configure --disable-manual
parent
f3663a9d
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
src/Makefile.am
+10
-1
10 additions, 1 deletion
src/Makefile.am
src/config.h.in
+3
-0
3 additions, 0 deletions
src/config.h.in
src/main.c
+13
-14
13 additions, 14 deletions
src/main.c
with
26 additions
and
15 deletions
src/Makefile.am
+
10
−
1
View file @
1d937d62
...
...
@@ -53,6 +53,9 @@ README=$(top_srcdir)/docs/MANUAL
MKHELP
=
$(
top_srcdir
)
/src/mkhelp.pl
HUGE
=
hugehelp.c
if
USE_MANUAL
# Here are the stuff to create a built-in manual
if
HAVE_LIBZ
# This generates the hugehelp.c file in both uncompressed and compressed formats
$(HUGE)
:
$(README) $(MANPAGE) mkhelp.pl
...
...
@@ -64,8 +67,14 @@ $(HUGE): $(README) $(MANPAGE) mkhelp.pl
echo
'#else'
>>
$(
HUGE
)
$(
NROFF
)
$(
MANPAGE
)
|
$(
PERL
)
$(
MKHELP
)
-c
$(
README
)
>>
$(
HUGE
)
echo
'#endif /* HAVE_LIBZ */'
>>
$(
HUGE
)
else
else
# HAVE_LIBZ
# This generates the hugehelp.c file uncompressed only
$(HUGE)
:
$(README) $(MANPAGE) mkhelp.pl
$(
NROFF
)
$(
MANPAGE
)
|
$(
PERL
)
$(
MKHELP
)
$(
README
)
>
$(
HUGE
)
endif
else
# USE_MANUAL
# built-in manual has been disabled, make a blank file
$(HUGE)
:
echo
"/* explicitly disabled */"
>
$(
HUGE
)
endif
This diff is collapsed.
Click to expand it.
src/config.h.in
+
3
−
0
View file @
1d937d62
...
...
@@ -91,3 +91,6 @@
/* type to use in place of socklen_t if not defined */
#undef socklen_t
/* Define to 1 if you want the built-in manual */
#undef USE_MANUAL
This diff is collapsed.
Click to expand it.
src/main.c
+
13
−
14
View file @
1d937d62
...
...
@@ -42,7 +42,9 @@
#include
"writeout.h"
#include
"getpass.h"
#include
"homedir.h"
#ifdef USE_MANUAL
#include
"hugehelp.h"
#endif
#ifdef USE_ENVIRONMENT
#include
"writeenv.h"
#endif
...
...
@@ -409,7 +411,6 @@ struct Configurable {
char
*
userpwd
;
char
*
proxyuserpwd
;
char
*
proxy
;
bool
configread
;
bool
proxytunnel
;
long
conf
;
...
...
@@ -489,8 +490,8 @@ struct Configurable {
/* global variable to hold info about libcurl */
static
curl_version_info_data
*
curlinfo
;
static
int
parseconfig
(
const
char
*
filename
,
struct
Configurable
*
config
);
static
void
parseconfig
(
const
char
*
filename
,
struct
Configurable
*
config
);
static
char
*
my_get_line
(
FILE
*
fp
);
static
int
create_dir_hierarchy
(
char
*
outfile
);
...
...
@@ -1069,7 +1070,6 @@ static ParameterError getparameter(char *flag, /* f or -long-flag */
char
subletter
=
0
;
/* subletters can only occur on long options */
const
char
*
parse
=
NULL
;
int
res
;
unsigned
int
j
;
time_t
now
;
int
hit
=-
1
;
...
...
@@ -1689,10 +1689,7 @@ static ParameterError getparameter(char *flag, /* f or -long-flag */
config
->
insecure_ok
^=
TRUE
;
break
;
case
'K'
:
/* parse config file */
res
=
parseconfig
(
nextarg
,
config
);
config
->
configread
=
TRUE
;
if
(
res
)
return
res
;
parseconfig
(
nextarg
,
config
);
break
;
case
'l'
:
config
->
conf
^=
CONF_FTPLISTONLY
;
/* only list the names of the FTP dir */
...
...
@@ -1713,8 +1710,13 @@ static ParameterError getparameter(char *flag, /* f or -long-flag */
return
PARAM_BAD_NUMERIC
;
break
;
case
'M'
:
/* M for manual, huge help */
#ifdef USE_MANUAL
hugehelp
();
return
PARAM_HELP_REQUESTED
;
#else
helpf
(
"built-in manual was disabled and build-time!
\n
"
);
return
PARAM_OPTION_UNKNOWN
;
#endif
case
'n'
:
switch
(
subletter
)
{
case
'o'
:
/* CA info PEM file */
...
...
@@ -1989,8 +1991,8 @@ static ParameterError getparameter(char *flag, /* f or -long-flag */
}
static
int
parseconfig
(
const
char
*
filename
,
struct
Configurable
*
config
)
static
void
parseconfig
(
const
char
*
filename
,
struct
Configurable
*
config
)
{
int
res
;
FILE
*
file
;
...
...
@@ -2163,7 +2165,6 @@ static int parseconfig(const char *filename,
if
(
file
!=
stdin
)
fclose
(
file
);
}
return
0
;
}
static
void
go_sleep
(
long
ms
)
...
...
@@ -2637,9 +2638,7 @@ operate(struct Configurable *config, int argc, char *argv[])
;
}
else
{
res
=
parseconfig
(
NULL
,
config
);
if
(
res
)
return
res
;
parseconfig
(
NULL
,
config
);
}
if
((
argc
<
2
)
&&
!
config
->
url_list
)
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment