Skip to content

Commit

Permalink
windows: show -V output (#392)
Browse files Browse the repository at this point in the history
It will be picked up from the next curl-for-win release.

Ref: curl/curl-for-win@053daa1
  • Loading branch information
vszakats committed Sep 2, 2024
1 parent 1a1f729 commit 957176d
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 0 deletions.
10 changes: 10 additions & 0 deletions windows/_index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
<html>
<head> <title>curl for Windows</title>
#include "css.t"
#include "term.t"
<style type="text/css">
a.windl {
font-size: 200%;
Expand Down Expand Up @@ -89,6 +90,15 @@
DEP_TOOLS
</ul>

#ifdef CURL_WIN64_VERSION_1
<div class="term">
<div class="tline">CURL_WIN64_VERSION_1</div>
<div class="tline">CURL_WIN64_VERSION_2</div>
<div class="tline">CURL_WIN64_VERSION_3</div>
<div class="tline">CURL_WIN64_VERSION_4</div>
</div>
#endif

<p>
The <a href="BUILD_LOGURL">log from the build</a>.

Expand Down
13 changes: 13 additions & 0 deletions windows/mkfiles.pl
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,17 @@ sub getlog {
printf "#define BUILD_LOGURL %s\n", $l[0];
}

sub getcurlv {
my ($dir)=@_; # where the download files are
open(L, "$dir/curl-version-x86_64.txt") || return;
my @l = <L>;
close(L);
chomp $l[0]; printf "#define CURL_WIN64_VERSION_1 %s\n", $l[0];
chomp $l[1]; printf "#define CURL_WIN64_VERSION_2 %s\n", $l[1];
chomp $l[2]; printf "#define CURL_WIN64_VERSION_3 %s\n", $l[2];
chomp $l[3]; printf "#define CURL_WIN64_VERSION_4 %s\n", $l[3];
}

my $dl = latest();

my @files = getdl($dl);
Expand Down Expand Up @@ -166,3 +177,5 @@ sub num {
gethashes($dl);

getlog($dl);

getcurlv($dl);

0 comments on commit 957176d

Please sign in to comment.