aboutsummaryrefslogtreecommitdiffstats
path: root/packaging/portableapps/win32/makenmake.pl
diff options
context:
space:
mode:
authorGerald Combs <gerald@wireshark.org>2010-08-22 00:41:06 +0000
committerGerald Combs <gerald@wireshark.org>2010-08-22 00:41:06 +0000
commit4f5057e21891637c20f459457a5b39a7f058558a (patch)
tree2dc48501193b9fe2ac596ca9d9327e6d9a4b620a /packaging/portableapps/win32/makenmake.pl
parenta766c88c52693578ac6585ab1fef6d773b895deb (diff)
Add !ENDIF if needed.
svn path=/trunk/; revision=33880
Diffstat (limited to 'packaging/portableapps/win32/makenmake.pl')
-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