]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
remove redundant check in timestamp detection
authorYang Tse <yangsita@gmail.com>
Thu, 22 Feb 2007 17:34:02 +0000 (17:34 +0000)
committerYang Tse <yangsita@gmail.com>
Thu, 22 Feb 2007 17:34:02 +0000 (17:34 +0000)
tests/testcurl.pl

index 2dc17cad64e3ec1f605016d5398722b3a4d5c6af..a041f568b9cbf98de2566a1a4826cd9f688bf834 100755 (executable)
@@ -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+\"(.+)\".*$/) {