nsprpub/admin/explode.pl
author Mozilla Releng Treescript <release+treescript@mozilla.org>
Sat, 27 Nov 2021 18:57:30 +0000
changeset 666954 5399dbd3b459e4ab5aac96956f7985a52edf0ad0
parent 97770 d37d4edce6dd592f04afa606deb1ae327c07b4a4
permissions -rw-r--r--
no bug - Bumping Firefox l10n changesets r=release a=l10n-bump be -> 8335177d7ee6bda921a5994df1a4cdd244d9da1c de -> 4545aa2142acfffa1657b71074f7c599ebf5b55a dsb -> 89065f43549c8fd8a5a7f9085f7ec04fe522222b en-GB -> 99b77bfd6b1a6c86ef23b44fe69d1d340dac78a5 eo -> ce7cc9f67225734283c389c4d11ae85467966a6a es-ES -> 58698da6448ca0b08aab9a047f3610d588a1dd71 fr -> 6f1288e840977ce3f595b8747f8e69f3753c78eb fy-NL -> 43db357e8e6444598a541352958c23e14f12c914 hsb -> 8fc542c5c9b7e30d304211b1cbfa96224a1fc3df ko -> 1052eb25f75875e2cde24c9621afd32f96f182ef ro -> f158c8ef94508ab9cb0853dcd318b0b2075b014d ru -> 7467eb69472bdf259e6b0df21d76a83702084a22 sl -> 97b1292dfcc9541317fa196144f0316c937b4a8d vi -> 08eb787f471ab961c6c3fc38312606bdad2349eb

#!/bin/perl
# 
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.

# -----------------------------------------------------------------
#
# explode.pl -- Unpack .jar files into bin, lib, include directories
#
# syntax: perl explode.pl
#
# Description:
# explode.pl unpacks the .jar files created by the NSPR build   
# procedure. 
#
# Suggested use: After copying the platform directories to
# /s/b/c/nspr20/<release>. CD to /s/b/c/nspr20/<release> and
# run explode.pl. This will unpack the jar files into bin, lib,
# include directories.
#
# -----------------------------------------------------------------

@dirs = `ls -d *.OBJ*`;

foreach $dir (@dirs) {
    chop($dir);
    if (-l $dir) {
        print "Skipping symbolic link $dir\n";
        next;
    }
    print "Unzipping $dir/mdbinary.jar\n";
    system ("unzip", "-o", "$dir/mdbinary.jar",
            "-d", "$dir");
    system ("rm", "-rf", "$dir/META-INF");
    mkdir "$dir/include", 0755;
    print "Unzipping $dir/mdheader.jar\n";
    system ("unzip", "-o", "-aa",
            "$dir/mdheader.jar",
            "-d", "$dir/include");
    system ("rm", "-rf", "$dir/include/META-INF");
}
# --- end explode.pl ----------------------------------------------