Wed, 31 Dec 2014 06:09:35 +0100
Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.
michael@0 | 1 | #!/bin/perl |
michael@0 | 2 | # |
michael@0 | 3 | # This Source Code Form is subject to the terms of the Mozilla Public |
michael@0 | 4 | # License, v. 2.0. If a copy of the MPL was not distributed with this |
michael@0 | 5 | # file, You can obtain one at http://mozilla.org/MPL/2.0/. |
michael@0 | 6 | |
michael@0 | 7 | # ----------------------------------------------------------------- |
michael@0 | 8 | # |
michael@0 | 9 | # explode.pl -- Unpack .jar files into bin, lib, include directories |
michael@0 | 10 | # |
michael@0 | 11 | # syntax: perl explode.pl |
michael@0 | 12 | # |
michael@0 | 13 | # Description: |
michael@0 | 14 | # explode.pl unpacks the .jar files created by the NSPR build |
michael@0 | 15 | # procedure. |
michael@0 | 16 | # |
michael@0 | 17 | # Suggested use: After copying the platform directories to |
michael@0 | 18 | # /s/b/c/nspr20/<release>. CD to /s/b/c/nspr20/<release> and |
michael@0 | 19 | # run explode.pl. This will unpack the jar files into bin, lib, |
michael@0 | 20 | # include directories. |
michael@0 | 21 | # |
michael@0 | 22 | # ----------------------------------------------------------------- |
michael@0 | 23 | |
michael@0 | 24 | @dirs = `ls -d *.OBJ*`; |
michael@0 | 25 | |
michael@0 | 26 | foreach $dir (@dirs) { |
michael@0 | 27 | chop($dir); |
michael@0 | 28 | if (-l $dir) { |
michael@0 | 29 | print "Skipping symbolic link $dir\n"; |
michael@0 | 30 | next; |
michael@0 | 31 | } |
michael@0 | 32 | print "Unzipping $dir/mdbinary.jar\n"; |
michael@0 | 33 | system ("unzip", "-o", "$dir/mdbinary.jar", |
michael@0 | 34 | "-d", "$dir"); |
michael@0 | 35 | system ("rm", "-rf", "$dir/META-INF"); |
michael@0 | 36 | mkdir "$dir/include", 0755; |
michael@0 | 37 | print "Unzipping $dir/mdheader.jar\n"; |
michael@0 | 38 | system ("unzip", "-o", "-aa", |
michael@0 | 39 | "$dir/mdheader.jar", |
michael@0 | 40 | "-d", "$dir/include"); |
michael@0 | 41 | system ("rm", "-rf", "$dir/include/META-INF"); |
michael@0 | 42 | } |
michael@0 | 43 | # --- end explode.pl ---------------------------------------------- |