aboutsummaryrefslogtreecommitdiffstats
path: root/packaging
diff options
context:
space:
mode:
authorgerald <gerald@f5534014-38df-0310-8fa8-9805f1628bb7>2010-08-22 00:41:06 +0000
committergerald <gerald@f5534014-38df-0310-8fa8-9805f1628bb7>2010-08-22 00:41:06 +0000
commit0b20541ca3790971ecac02e0efc116c2d1d6ab28 (patch)
tree2dc48501193b9fe2ac596ca9d9327e6d9a4b620a /packaging
parent2477e01190110a807460e862345d599de644ae18 (diff)
Add !ENDIF if needed.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@33880 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'packaging')
-rwxr-xr-xpackaging/portableapps/win32/makenmake.pl5
1 files changed, 5 insertions, 0 deletions
diff --git a/packaging/portableapps/win32/makenmake.pl b/packaging/portableapps/win32/makenmake.pl
index 49cec6b0f1..f9bb348331 100755
--- a/packaging/portableapps/win32/makenmake.pl
+++ b/packaging/portableapps/win32/makenmake.pl
@@ -25,6 +25,11 @@ while($line = <>) {
if($line =~ /^\#/) { # comment
next;
} elsif($line =~ /^\[(\S+)/) { # new directory
+ if(defined $define) { # Clear out any leftover defines.
+ print "!ENDIF\n";
+ undef($define);
+ }
+
$dir = $1;
$dir =~ s/\$INSTDIR?//; # remove $INSTDIR