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
6ca627ae
Commit
6ca627ae
authored
19 years ago
by
Daniel Stenberg
Browse files
Options
Downloads
Patches
Plain Diff
curl-config got a --checkfor option
parent
80a0b81c
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
CHANGES
+8
-0
8 additions, 0 deletions
CHANGES
RELEASE-NOTES
+2
-1
2 additions, 1 deletion
RELEASE-NOTES
curl-config.in
+43
-2
43 additions, 2 deletions
curl-config.in
docs/curl-config.1
+7
-2
7 additions, 2 deletions
docs/curl-config.1
with
60 additions
and
5 deletions
CHANGES
+
8
−
0
View file @
6ca627ae
...
...
@@ -6,6 +6,14 @@
Changelog
Daniel (2 May 2006)
- Added a --checkfor option to curl-config to allow users to easier
write for example shell scripts that test for the presence of a
new-enough libcurl version. If --checkfor is given a version string
newer than what is currently installed, curl-config will return a
non-zero exit code and output a string about the unfulfilled
requirement.
Daniel (26 April 2006)
- David McCreedy brought initial line end conversions when doing FTP ASCII
transfers. They are done on non-windows systems and translate CRLF to LF.
...
...
This diff is collapsed.
Click to expand it.
RELEASE-NOTES
+
2
−
1
View file @
6ca627ae
...
...
@@ -11,6 +11,7 @@ Curl and libcurl 7.15.4
This release includes the following changes:
o curl-config got a --checkfor option to compare version numbers
o line end conversions for FTP ASCII transfers
o curl_multi_socket() API added (still mostly untested)
o conversion callback options for EBCDIC <=> ASCII conversions
...
...
@@ -45,6 +46,6 @@ advice from friends like these:
Dan Fandrich, Ilja van Sprundel, David McCreedy, Tor Arntsen, Xavier Bouchoux,
David Byron, Michele Bini, Ates Goral, Katie Wang, Robson Braga Araujo,
Ale Vesely, Paul Querna
Ale Vesely, Paul Querna
, Gisle Vanem
Thanks! (and sorry if I forgot to mention someone)
This diff is collapsed.
Click to expand it.
curl-config.in
+
43
−
2
View file @
6ca627ae
#! /bin/sh
#***************************************************************************
# _ _ ____ _
# Project ___| | | | _ \| |
# / __| | | | |_) | |
# | (__| |_| | _ <| |___
# \___|\___/|_| \_\_____|
#
# The idea to this kind of setup info script was stolen from numerous
# other packages, such as neon, libxml and gnome.
# Copyright (C) 2001 - 2006, Daniel Stenberg, <daniel@haxx.se>, et al.
#
# This software is licensed as described in the file COPYING, which
# you should have received as part of this distribution. The terms
# are also available at http://curl.haxx.se/docs/copyright.html.
#
# You may opt to use, copy, modify, merge, publish, distribute and/or sell
# copies of the Software, and permit persons to whom the Software is
# furnished to do so, under the terms of the COPYING file.
#
# This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
# KIND, either express or implied.
#
# $Id$
###########################################################################
#
# The idea to this kind of setup info script was stolen from numerous
# other packages, such as neon, libxml and gnome.
#
prefix
=
@prefix@
exec_prefix
=
@exec_prefix@
...
...
@@ -19,6 +39,7 @@ Available values for OPTION include:
--ca ca bundle install path
--cc compiler
--cflags pre-processor and compiler flags
--checkfor [version] check for (lib)curl of the specified version
--features newline separated list of enabled features
--protocols newline separated list of enabled protocols
--help display this help and exit
...
...
@@ -122,6 +143,26 @@ while test $# -gt 0; do
exit
0
;;
--checkfor
)
checkfor
=
$2
cmajor
=
`
echo
$checkfor
|
cut
-d
.
-f1
`
cminor
=
`
echo
$checkfor
|
cut
-d
.
-f2
`
# when extracting the patch part we strip off everything after a
# dash as that's used for things like version 1.2.3-CVS
cpatch
=
`
echo
$checkfor
|
cut
-d
.
-f3
|
cut
-d-
-f1
`
checknum
=
`
echo
"
$cmajor
*256*256 +
$cminor
*256 +
${
cpatch
:-
0
}
"
| bc
`
numuppercase
=
`
echo
@VERSIONNUM@ |
tr
'a-f'
'A-F'
`
nownum
=
`
echo
"obase=10; ibase=16;
$numuppercase
"
| bc
`
if
test
"
$nownum
"
-ge
"
$checknum
"
;
then
# silent success
exit
0
else
echo
"requested version
$checkfor
is newer than existing @VERSION@"
exit
1
fi
;;
--vernum
)
echo
@VERSIONNUM@
exit
0
...
...
This diff is collapsed.
Click to expand it.
docs/curl-config.1
+
7
−
2
View file @
6ca627ae
...
...
@@ -5,7 +5,7 @@
.\" * | (__| |_| | _ <| |___
.\" * \___|\___/|_| \_\_____|
.\" *
.\" * Copyright (C) 1998 - 200
5
, Daniel Stenberg, <daniel@haxx.se>, et al.
.\" * Copyright (C) 1998 - 200
6
, Daniel Stenberg, <daniel@haxx.se>, et al.
.\" *
.\" * This software is licensed as described in the file COPYING, which
.\" * you should have received as part of this distribution. The terms
...
...
@@ -21,7 +21,7 @@
.\" * $Id$
.\" **************************************************************************
.\"
.TH curl-config 1 "25 Jan 2004" "Curl 7.1
3.0
" "curl-config manual"
.TH curl-config 1 "25 Jan 2004" "Curl 7.1
5.4
" "curl-config manual"
.SH NAME
curl-config \- Get information about a libcurl installation
.SH SYNOPSIS
...
...
@@ -37,6 +37,11 @@ Displays the compiler used to build libcurl.
.IP "--cflags"
Set of compiler options (CFLAGS) to use when compiling files that use
libcurl. Currently that is only thw include path to the curl include files.
.IP "--checkfor [version]"
Specify the oldest possible libcurl version string you want, and this
script will return 0 if the current installation is new enough or it
returns 1 and outputs a text saying that the current version is not new
enough. (Added in 7.15.4)
.IP "--feature"
Lists what particular main features the installed libcurl was built with. At
the time of writing, this list may include SSL, KRB4 or IPv6. Do not assume
...
...
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