mirror of
https://github.com/curl/curl.git
synced 2026-06-02 04:24:15 +03:00
remove redundant check in timestamp detection
This commit is contained in:
parent
2a6a22a3b0
commit
141b3d0c2f
1 changed files with 2 additions and 4 deletions
|
|
@ -401,10 +401,8 @@ if ($CVS) {
|
|||
}
|
||||
|
||||
# Set timestamp to the one in curlver.h if this isn't a CVS test build.
|
||||
if ((-f "$CURLDIR/include/curl/curlver.h") &&
|
||||
(grepfile("define LIBCURL_TIMESTAMP",
|
||||
"$CURLDIR/include/curl/curlver.h")) &&
|
||||
(open(F, "<$CURLDIR/include/curl/curlver.h"))) {
|
||||
if ((-f "include/curl/curlver.h") &&
|
||||
(open(F, "<include/curl/curlver.h"))) {
|
||||
while (<F>) {
|
||||
chomp;
|
||||
if ($_ =~ /^\#define\s+LIBCURL_TIMESTAMP\s+\"(.+)\".*$/) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue