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
472c4d86
Commit
472c4d86
authored
21 years ago
by
Daniel Stenberg
Browse files
Options
Downloads
Patches
Plain Diff
Insert the major, minor and patch numbers into the curl/curl.h header as
well. Removed the depedency on perl.
parent
45abf75e
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
maketgz
+9
-8
9 additions, 8 deletions
maketgz
with
9 additions
and
8 deletions
maketgz
+
9
−
8
View file @
472c4d86
...
...
@@ -11,23 +11,24 @@ fi
libversion
=
"
$version
"
#
# Now we have a section to get the major, minor and patch number from the
# full version string. We create a single hexadecimal number from it '0xMMmmpp'
#
perl
=
'$a=<STDIN>;@p=split("[\\.-]",$a);for(0..2){printf STDOUT ("%02x",$p[0+$_]);}'
;
numeric
=
`
echo
$libversion
| perl
-e
"
$perl
"
`
# we make curl the same version as libcurl
curlversion
=
$libversion
major
=
`
echo
$libversion
|cut
-d
.
-f1
|
sed
-e
"s/[^0-9]//g"
`
minor
=
`
echo
$libversion
|cut
-d
.
-f2
|
sed
-e
"s/[^0-9]//g"
`
patch
=
`
echo
$libversion
|cut
-d
.
-f3
|
sed
-e
"s/[^0-9]//g"
`
numeric
=
`
echo
"obase=16;
$major
*256*256 +
$minor
*256 +
$patch
"
| bc
`
HEADER
=
include/curl/curl.h
CHEADER
=
src/version.h
# Replace version number in header file:
sed
-e
's/^#define LIBCURL_VERSION .*/#define LIBCURL_VERSION "'
$libversion
'"/g'
\
-e
's/^#define LIBCURL_VERSION_NUM .*/#define LIBCURL_VERSION_NUM 0x'
$numeric
'/g'
\
-e
's/^#define LIBCURL_VERSION_MAJOR .*/#define LIBCURL_VERSION_MAJOR '
$major
'/g'
\
-e
's/^#define LIBCURL_VERSION_MINOR .*/#define LIBCURL_VERSION_MINOR '
$minor
'/g'
\
-e
's/^#define LIBCURL_VERSION_PATCH .*/#define LIBCURL_VERSION_PATCH '
$patch
'/g'
\
$HEADER
>
$HEADER
.dist
# Replace version number in header file:
...
...
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