Reviewed by me.
* Scripts/cvs-abandon: Use cwd instead of `pwd`.
* Scripts/cvs-apply: Ditto.
* Scripts/cvs-create-patch: Ditto.
* Scripts/cvs-unapply: Ditto.
* Scripts/run-webkit-tests: Ditto.
* Scripts/webkitdirs.pm: Ditto. Also improve handling when there's no "Configuration" file.
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@9373
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
+2005-06-12 Darin Adler <darin@apple.com>
+
+ Changes by Stuart Morgan.
+ Reviewed by me.
+
+ * Scripts/cvs-abandon: Use cwd instead of `pwd`.
+ * Scripts/cvs-apply: Ditto.
+ * Scripts/cvs-create-patch: Ditto.
+ * Scripts/cvs-unapply: Ditto.
+ * Scripts/run-webkit-tests: Ditto.
+ * Scripts/webkitdirs.pm: Ditto. Also improve handling when there's no "Configuration" file.
+
2005-06-12 Darin Adler <darin@apple.com>
* Scripts/cvs-apply: Handle case of an empty patch better.
use strict;
use Getopt::Long;
+use Cwd;
my $verbose = 0;
GetOptions("verbose|v!" => \$verbose);
}
close UPDATE;
-my $startDir = `pwd`;
-chomp $startDir;
+my $startDir = getcwd();
sub getDirAndBase
{
# When doing a removal, doesn't check that old file matches what's being removed.
use strict;
+use Cwd;
-my $startDir = `pwd`;
-chomp $startDir;
+my $startDir = getcwd();
my $indexPath;
my $patch;
# Handle binary files (some text form of the binary file).
use strict;
+use Cwd;
-my $startDir = `pwd`;
-chomp $startDir;
+my $startDir = getcwd();
my %paths;
# When reversing an addition, doesn't check that file matches what's being removed.
use strict;
+use Cwd;
-my $startDir = `pwd`;
-chomp $startDir;
+my $startDir = getcwd();
my $indexPath;
my $patch;
use strict;
use IPC::Open2;
use FindBin;
+use Cwd;
use lib $FindBin::Bin;
use webkitdirs;
checkFrameworks();
-my $workingDir = `pwd`;
-chomp $workingDir;
+my $workingDir = getcwd();
my $WebCoreDirectory = "$workingDir/WebCore";
my $testDirectory = "$WebCoreDirectory/layout-tests";
my $testResultsDirectory = "/tmp/layout-test-results";
use strict;
use warnings;
use FindBin;
+use Cwd;
BEGIN {
use Exporter ();
@baseProductDirOption = ();
} else {
chdirWebKit();
- my $dir = `pwd`;
- chomp $dir;
- $baseProductDir = "$dir/WebKitBuild";
+ $baseProductDir = getcwd() . "/WebKitBuild";
@baseProductDirOption = ("SYMROOT=$baseProductDir");
}
$baseProductDir =~ s|^~/|$ENV{HOME}/|;
{
return if defined $configuration;
determineBaseProductDir();
- open CONFIGURATION, "$baseProductDir/Configuration";
- $configuration = <CONFIGURATION>;
- close CONFIGURATION;
+ if (open CONFIGURATION, "$baseProductDir/Configuration") {
+ $configuration = <CONFIGURATION>;
+ close CONFIGURATION;
+ }
if ($configuration) {
chomp $configuration;
} else {