Title: [274441] trunk/Tools
Revision
274441
Author
[email protected]
Date
2021-03-15 15:06:14 -0700 (Mon, 15 Mar 2021)

Log Message

Delete unused build-launcher-dmg script
https://bugs.webkit.org/show_bug.cgi?id=222923

Reviewed by Alexey Proskuryakov.

* CISupport/build-launcher-dmg: Removed.

Modified Paths

Removed Paths

Diff

Deleted: trunk/Tools/CISupport/build-launcher-dmg (274440 => 274441)


--- trunk/Tools/CISupport/build-launcher-dmg	2021-03-15 21:27:39 UTC (rev 274440)
+++ trunk/Tools/CISupport/build-launcher-dmg	2021-03-15 22:06:14 UTC (rev 274441)
@@ -1,119 +0,0 @@
-#!/usr/bin/env perl
-
-# Copyright (C) 2006 Apple Inc.  All rights reserved.
-# Copyright (C) 2006 Mark Rowe <[email protected]>.  All rights reserved.
-#
-# Redistribution and use in source and binary forms, with or without
-# modification, are permitted provided that the following conditions
-# are met:
-#
-# 1.  Redistributions of source code must retain the above copyright
-#     notice, this list of conditions and the following disclaimer. 
-# 2.  Redistributions in binary form must reproduce the above copyright
-#     notice, this list of conditions and the following disclaimer in the
-#     documentation and/or other materials provided with the distribution. 
-# 3.  Neither the name of Apple Inc. ("Apple") nor the names of
-#     its contributors may be used to endorse or promote products derived
-#     from this software without specific prior written permission. 
-#
-# THIS SOFTWARE IS PROVIDED BY APPLE AND ITS CONTRIBUTORS "AS IS" AND ANY
-# EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
-# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
-# DISCLAIMED. IN NO EVENT SHALL APPLE OR ITS CONTRIBUTORS BE LIABLE FOR ANY
-# DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
-# (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
-# LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
-# ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
-# THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-
-# Script used by build slaves to create a disk-image containing WebKit.app.
-
-use strict;
-use warnings;
-
-use File::Basename;
-use Getopt::Long;
-use FindBin;
-use lib "$FindBin::Bin/../Scripts";
-use webkitdirs;
-
-my $nightlyLauncherStagingPath = productDir() . "/WebKit.app";
-my $droseraStagingPath = productDir() . "/DroseraLauncher.app";
-my $nightlyLauncherDiskImagePath;
-
-my $nightlyRemoteHost = '[email protected]';
-my $nightlyRemotePath = "/home/webkit-nightlies";
-my $nightlyRemoteLatestPath = "$nightlyRemotePath/update-latest.sh";
-
-sub buildDiskImage
-{
-    my $revision = currentSVNRevision();
-    my $productDir = productDir();
-    $nightlyLauncherDiskImagePath = productDir() . "/WebKit-SVN-r$revision.dmg";
-    
-    print "Removing previous temp source directory (if any)...\n";
-    `rm -rf /tmp/WebKitNightly`;
-    die "Removing previous temp source directory failed" if $?;
-
-    print "Making a new temp source directory...\n";
-    `mkdir /tmp/WebKitNightly`;
-    die "Making a new temp source directory failed" if $?;
-
-    print "Copying WebKit.app to temp source directory...\n";
-    `cp -R \"$nightlyLauncherStagingPath\" /tmp/WebKitNightly/WebKit.app`;
-    die "Copying WebKit.app to temp source directory failed" if $?;
-
-    print "Copying Drosera.app to temp source directory...\n";
-    `cp -R \"$droseraStagingPath\" /tmp/WebKitNightly/Drosera.app`;
-    die "Copying Drosera.app to temp source directory failed" if $?;
-
-    print "Creating disk image...\n";
-    `hdiutil create \"$nightlyLauncherDiskImagePath\" -ov -srcfolder /tmp/WebKitNightly -fs HFS+ -volname \"WebKit\"`;
-    die "Creating disk image failed" if $?;
-
-    print "Removing temp source directory...\n";
-    `rm -rf /tmp/WebKitNightly`;
-    die "Removing temp source directory failed" if $?;
-
-    print "Compressing disk image...\n";
-    system("mv", "-f", $nightlyLauncherDiskImagePath, "$nightlyLauncherDiskImagePath.uncompressed.dmg") == 0 or die "Renaming disk image failed";
-    system("hdiutil", "convert", "-quiet", "$nightlyLauncherDiskImagePath.uncompressed.dmg", "-format", "UDBZ", "-imagekey", "zlib-level=9", "-o", "$nightlyLauncherDiskImagePath");
-    die "Compressing disk image failed" if $?;
-
-    unlink "$nightlyLauncherDiskImagePath.uncompressed.dmg";
-}
-
-sub uploadNightlyDiskImage
-{
-    my $buildTag = shift(@_);
-    my $nightlyRemoteDiskImagePath = "$nightlyRemotePath/builds/$buildTag/mac/" . basename($nightlyLauncherDiskImagePath);
-    my $revision = currentSVNRevision();
-    system("rsync", "-vP", $nightlyLauncherDiskImagePath, "$nightlyRemoteHost:$nightlyRemoteDiskImagePath") == 0 or die "Failed uploading disk image";
-    system("ssh", $nightlyRemoteHost, $nightlyRemoteLatestPath, $buildTag, "mac", $nightlyRemoteDiskImagePath, $revision) == 0 or die "Failed linking disk image to latest";
-}
-
-sub uploadBuildSlaveDiskImage
-{
-    my $remoteDiskImagePath = shift(@_) . basename($nightlyLauncherDiskImagePath);
-    system("rsync", "-vP", $nightlyLauncherDiskImagePath, $remoteDiskImagePath) == 0 or die "Failed uploading disk image";
-}
-
-
-my $uploadTo;
-my $nightlyBuild = 0;
-my $buildTag = 'trunk';
-GetOptions('upload-to-host=s' => \$uploadTo,
-           'upload-as-nightly!' => \$nightlyBuild,
-           'tag=s' => \$buildTag);
-
-chdirWebKit();
-buildDiskImage($buildTag);
-
-if ($nightlyBuild) {
-    uploadNightlyDiskImage($buildTag);
-} elsif ($uploadTo) {
-    uploadBuildSlaveDiskImage($uploadTo);
-} else {
-    print "Disk image left at $nightlyLauncherDiskImagePath\n";
-}

Modified: trunk/Tools/ChangeLog (274440 => 274441)


--- trunk/Tools/ChangeLog	2021-03-15 21:27:39 UTC (rev 274440)
+++ trunk/Tools/ChangeLog	2021-03-15 22:06:14 UTC (rev 274441)
@@ -1,3 +1,12 @@
+2021-03-15  Aakash Jain  <[email protected]>
+
+        Delete unused build-launcher-dmg script
+        https://bugs.webkit.org/show_bug.cgi?id=222923
+
+        Reviewed by Alexey Proskuryakov.
+
+        * CISupport/build-launcher-dmg: Removed.
+
 2021-03-15  Kimmo Kinnunen  <[email protected]>
 
         WebGL IPC should use shared memory for synchronous messages
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to