| author | Arnaud Lenoir |
| Wed, 26 Aug 2009 21:52:22 +0100 | |
| changeset 377 | 065183c4417b |
| parent 139 | 47cccedacd2d |
| permissions | -rw-r--r-- |
|
135
3fc223926c4a
Add zip tool to support postbuild RnD packaging.
Shabe Razvi <shaber@symbian.org>
parents:
diff
changeset
|
1 |
#!perl -w |
|
3fc223926c4a
Add zip tool to support postbuild RnD packaging.
Shabe Razvi <shaber@symbian.org>
parents:
diff
changeset
|
2 |
|
|
3fc223926c4a
Add zip tool to support postbuild RnD packaging.
Shabe Razvi <shaber@symbian.org>
parents:
diff
changeset
|
3 |
use strict; |
|
3fc223926c4a
Add zip tool to support postbuild RnD packaging.
Shabe Razvi <shaber@symbian.org>
parents:
diff
changeset
|
4 |
|
|
3fc223926c4a
Add zip tool to support postbuild RnD packaging.
Shabe Razvi <shaber@symbian.org>
parents:
diff
changeset
|
5 |
my @includefiles = glob "*_includefile.txt"; |
|
3fc223926c4a
Add zip tool to support postbuild RnD packaging.
Shabe Razvi <shaber@symbian.org>
parents:
diff
changeset
|
6 |
foreach (@includefiles) |
|
3fc223926c4a
Add zip tool to support postbuild RnD packaging.
Shabe Razvi <shaber@symbian.org>
parents:
diff
changeset
|
7 |
{
|
|
3fc223926c4a
Add zip tool to support postbuild RnD packaging.
Shabe Razvi <shaber@symbian.org>
parents:
diff
changeset
|
8 |
my $includefilename=$_; |
|
3fc223926c4a
Add zip tool to support postbuild RnD packaging.
Shabe Razvi <shaber@symbian.org>
parents:
diff
changeset
|
9 |
if (m/(.*)(_includefile.txt)/) {
|
|
3fc223926c4a
Add zip tool to support postbuild RnD packaging.
Shabe Razvi <shaber@symbian.org>
parents:
diff
changeset
|
10 |
my $zipfilename = $1.".zip"; |
|
139
47cccedacd2d
Use 7za not 7z as this is what is available on build machines
Shabe Razvi <shaber@symbian.org>
parents:
135
diff
changeset
|
11 |
system("7za a -tzip -i@".$includefilename . " " .$zipfilename);
|
|
135
3fc223926c4a
Add zip tool to support postbuild RnD packaging.
Shabe Razvi <shaber@symbian.org>
parents:
diff
changeset
|
12 |
} |
|
3fc223926c4a
Add zip tool to support postbuild RnD packaging.
Shabe Razvi <shaber@symbian.org>
parents:
diff
changeset
|
13 |
} |