mirror of
https://github.com/curl/curl.git
synced 2025-03-25 15:50:32 +08:00
remove redundant check in timestamp detection
This commit is contained in:
parent
2a6a22a3b0
commit
141b3d0c2f
@ -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…
x
Reference in New Issue
Block a user