aboutsummaryrefslogtreecommitdiffstats
path: root/packaging/ws-manifest.pl
diff options
context:
space:
mode:
authorGerald Combs <gerald@wireshark.org>2012-10-26 15:51:28 +0000
committerGerald Combs <gerald@wireshark.org>2012-10-26 15:51:28 +0000
commit04fea80bf819abc0987660ba8ae0e984c60f2f9c (patch)
tree737bbc71c7240820baa80e65ede8fefe81073651 /packaging/ws-manifest.pl
parenta579e9875bf08e0c41c1a7f58a7a3c50ebff8a13 (diff)
From Sho Amano via bug 7914:
If the source codes are checked out using TortoiseSVN on Windows, "nmake -f Makefile.nmake packaging_papps" fails in the middle. This is because the line end of packaging\nsis\wireshark.nsi is CRLF in this case, and ws-manifest.pl cannot handle such case. svn path=/trunk/; revision=45798
Diffstat (limited to 'packaging/ws-manifest.pl')
-rwxr-xr-xpackaging/ws-manifest.pl15
1 files changed, 8 insertions, 7 deletions
diff --git a/packaging/ws-manifest.pl b/packaging/ws-manifest.pl
index 0df2584a02..fadcb995ba 100755
--- a/packaging/ws-manifest.pl
+++ b/packaging/ws-manifest.pl
@@ -1,5 +1,5 @@
#
-# ws-manifest.pl - create a generic manifest file (including u3 information) from the wireshark.nsi
+# ws-manifest.pl - create a generic manifest file (including u3 information) from the wireshark.nsi
# $Id$
#
@@ -27,7 +27,8 @@ my @dirs; # the directories in the manifest
my @defines; # stack of defines
while ($line = <>) {
- if($line =~ /^SetOutPath (.+)$/) {
+ $line =~ s/\r//g; # remove CR on Windows
+ if($line =~ /^SetOutPath (.+)$/) {
$outpath = $1;
$outpath =~ s/^'(.*)'$/$1/;
if($outpath ne '$PROFILE') { # ignore the PROFILE
@@ -68,8 +69,8 @@ foreach $dir(sort @dirs) {
print STDERR "looking for $dir\n";
$loc = $u3locs{$dir};
- if(defined $loc) {
-
+ if(defined $loc) {
+
print "[". $dir . " u3loc=" . $loc . "]\n";
foreach $file(sort @$dir) {
@@ -88,9 +89,9 @@ foreach $dir(sort @dirs) {
print "\n";
}
} else {
-
+
push(@ignored, $dir);
-
+
}
}
$prev = $dir;
@@ -103,7 +104,7 @@ if(defined @ignored) {
foreach $dir(sort @ignored) {
print STDERR "\t" . $dir . " ";
}
-
+
print STDERR "\n";
exit -1;