Fixed compilation of messages.mc.
authorIain Patterson <me@iain.cx>
Sat, 8 Oct 2011 09:02:24 +0000 (10:02 +0100)
committerIain Patterson <me@iain.cx>
Tue, 11 Oct 2011 10:05:21 +0000 (11:05 +0100)
Compiling messages.mc failed in paths containing a space.  Eugene
Lifshitz advised how to construct a commandline which would work
in such paths.

ChangeLog.txt
README.txt
nssm.vcproj

index b5ac32c..ec9d9e1 100644 (file)
@@ -1,5 +1,7 @@
 Changes since 2.9
 -----------------
+  * Fixed failure to compile messages.mc in paths containing spaces.
+
   * Fixed edge case with CreateProcess().
 
     Correctly handle the case where the application executable is under
index d609015..abc22cd 100644 (file)
@@ -178,7 +178,8 @@ Thanks to Arve Knudsen for spotting that child processes of the monitored
 application could be left running on service shutdown, and that a missing\r
 registry value for AppDirectory confused NSSM.\r
 Thanks to Peter Wagemans and Laszlo Keresztfalvi for suggesting throttling restarts.\r
-Thanks to Eugene Lifshitz for finding an edge case in CreateProcess().\r
+Thanks to Eugene Lifshitz for finding an edge case in CreateProcess() and for\r
+advising how to build messages.mc correctly in paths containing spaces.\r
 \r
 Licence\r
 -------\r
index b85c1e7..f9afffd 100755 (executable)
                                <Tool\r
                                        Name="VCCustomBuildTool"\r
                                        Description="Compiling messages"\r
-                                       CommandLine="mc -A $(InputDir)/$(InputName).mc -r $(InputDir) -h $(InputDir)&#x0D;&#x0A;"\r
+                                       CommandLine="mc -A $(InputName).mc -r . -h ."\r
                                        Outputs="$(InputName).rc;$(InputName).h"\r
                                />\r
                        </FileConfiguration>\r
                                <Tool\r
                                        Name="VCCustomBuildTool"\r
                                        Description="Compiling messages"\r
-                                       CommandLine="mc -A $(InputDir)\$(InputName).mc -r $(InputDir) -h $(InputDir)&#x0D;&#x0A;"\r
+                                       CommandLine="mc -A $(InputName).mc -r . -h ."\r
                                        Outputs="$(InputName).rc;$(InputName).h"\r
                                />\r
                        </FileConfiguration>\r
                                <Tool\r
                                        Name="VCCustomBuildTool"\r
                                        Description="Compiling messages"\r
-                                       CommandLine="mc -A $(InputDir)/$(InputName).mc -r $(InputDir) -h $(InputDir)&#x0D;&#x0A;"\r
+                                       CommandLine="mc -A $(InputName).mc -r . -h ."\r
                                        AdditionalDependencies=""\r
                                        Outputs="$(InputName).rc;$(InputName).h"\r
                                />\r
                                <Tool\r
                                        Name="VCCustomBuildTool"\r
                                        Description="Compiling messages"\r
-                                       CommandLine="mc -A $(InputDir)/$(InputName).mc -r $(InputDir) -h $(InputDir)&#x0D;&#x0A;"\r
+                                       CommandLine="mc -A $(InputName).mc -r . -h ."\r
                                        AdditionalDependencies=""\r
                                        Outputs="$(InputName).rc;$(InputName).h"\r
                                />\r