summaryrefslogtreecommitdiffstats
path: root/WebKitTools/Scripts/sort-Xcode-project-file
diff options
context:
space:
mode:
Diffstat (limited to 'WebKitTools/Scripts/sort-Xcode-project-file')
-rwxr-xr-xWebKitTools/Scripts/sort-Xcode-project-file7
1 files changed, 3 insertions, 4 deletions
diff --git a/WebKitTools/Scripts/sort-Xcode-project-file b/WebKitTools/Scripts/sort-Xcode-project-file
index e9b7a56..a35fe73 100755
--- a/WebKitTools/Scripts/sort-Xcode-project-file
+++ b/WebKitTools/Scripts/sort-Xcode-project-file
@@ -31,7 +31,7 @@
use strict;
use File::Basename;
-use File::Temp;
+use File::Temp qw(tempfile);
use Getopt::Long;
sub sortByFileName($$);
@@ -64,12 +64,11 @@ for my $projectFile (@ARGV) {
next;
}
- my $OUT = new File::Temp(
+ my ($OUT, $tempFileName) = tempfile(
+ basename($projectFile) . "-XXXXXXXX",
DIR => dirname($projectFile),
- TEMPLATE => basename($projectFile) . "-XXXXXXXX",
UNLINK => 0,
);
- my $tempFileName = $OUT->filename();
# Clean up temp file in case of die()
$SIG{__DIE__} = sub {