Changeset 225806 in webkit


Ignore:
Timestamp:
Dec 12, 2017 2:23:17 PM (6 years ago)
Author:
Michael Catanzaro
Message:

Don't require perl(File::Copy::Recursive)
https://bugs.webkit.org/show_bug.cgi?id=180479
<rdar://problem/35944218>

Reviewed by Daniel Bates.

Fix the error handling. I added this at the last moment and failed to test. The logic is
inverted, causing an error to always be reported on success.

Add a missing 'mkdir -p' using File::Path::make_path. This has its own built-in error
reporting, so no need to add our own.

  • Scripts/copy-user-interface-resources.pl:

(ditto):

Location:
trunk/Source/WebInspectorUI
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebInspectorUI/ChangeLog

    r225786 r225806  
     12017-12-12  Michael Catanzaro  <mcatanzaro@igalia.com>
     2
     3        Don't require perl(File::Copy::Recursive)
     4        https://bugs.webkit.org/show_bug.cgi?id=180479
     5        <rdar://problem/35944218>
     6
     7        Reviewed by Daniel Bates.
     8
     9        Fix the error handling. I added this at the last moment and failed to test. The logic is
     10        inverted, causing an error to always be reported on success.
     11
     12        Add a missing 'mkdir -p' using File::Path::make_path. This has its own built-in error
     13        reporting, so no need to add our own.
     14
     15        * Scripts/copy-user-interface-resources.pl:
     16        (ditto):
     17
    1182017-12-12  Michael Catanzaro  <mcatanzaro@igalia.com>
    219
  • trunk/Source/WebInspectorUI/Scripts/copy-user-interface-resources.pl

    r225786 r225806  
    5050        # Ditto copies the *contents* of the source directory, not the directory itself.
    5151        opendir(my $dh, $source) or die "Can't open $source: $!";
     52        make_path($destination);
    5253        while (readdir $dh) {
    5354            if ($_ ne '..' and $_ ne '.') {
    54                 system('cp', '-R', "${source}/$_", $destination) or die "Failed to copy ${source}/$_ to $destination";
     55                system('cp', '-R', "${source}/$_", $destination) == 0 or die "Failed to copy ${source}/$_ to $destination";
    5556            }
    5657        }
Note: See TracChangeset for help on using the changeset viewer.