1
0
mirror of https://github.com/moparisthebest/curl synced 2024-11-14 21:45:13 -05:00

remove redundant check in timestamp detection

This commit is contained in:
Yang Tse 2007-02-22 17:34:02 +00:00
parent 2a6a22a3b0
commit 141b3d0c2f

View File

@ -401,10 +401,8 @@ if ($CVS) {
} }
# Set timestamp to the one in curlver.h if this isn't a CVS test build. # Set timestamp to the one in curlver.h if this isn't a CVS test build.
if ((-f "$CURLDIR/include/curl/curlver.h") && if ((-f "include/curl/curlver.h") &&
(grepfile("define LIBCURL_TIMESTAMP", (open(F, "<include/curl/curlver.h"))) {
"$CURLDIR/include/curl/curlver.h")) &&
(open(F, "<$CURLDIR/include/curl/curlver.h"))) {
while (<F>) { while (<F>) {
chomp; chomp;
if ($_ =~ /^\#define\s+LIBCURL_TIMESTAMP\s+\"(.+)\".*$/) { if ($_ =~ /^\#define\s+LIBCURL_TIMESTAMP\s+\"(.+)\".*$/) {