Allow running ./tests/testcurl.pl from within git repo.
My first instinct was to run the test script within the checked out repository. This small change to the script allows that to work as expected. Signed-off-by: Ben Greear <greearb@candelatech.com>
This commit is contained in:
Родитель
7784e3309d
Коммит
302507d5dc
|
@ -78,6 +78,10 @@ $fixed=0;
|
||||||
# Determine if we're running from git or a canned copy of curl,
|
# Determine if we're running from git or a canned copy of curl,
|
||||||
# or if we got a specific target option or setup file option.
|
# or if we got a specific target option or setup file option.
|
||||||
$CURLDIR="curl";
|
$CURLDIR="curl";
|
||||||
|
if (-f ".git/config") {
|
||||||
|
$CURLDIR = "./";
|
||||||
|
}
|
||||||
|
|
||||||
$git=1;
|
$git=1;
|
||||||
$setupfile = 'setup';
|
$setupfile = 'setup';
|
||||||
while ($ARGV[0]) {
|
while ($ARGV[0]) {
|
||||||
|
|
Загрузка…
Ссылка в новой задаче