Modify helper batch commands so that they can handle path names which contain spaces.
authorHiroshi Inoue <h-inoue@dream.email.ne.jp>
Sat, 10 Sep 2016 06:07:59 +0000 (15:07 +0900)
committerHiroshi Inoue <h-inoue@dream.email.ne.jp>
Sat, 10 Sep 2016 06:07:59 +0000 (15:07 +0900)
BuildAll.bat
buildInstallers.bat
editConfiguration.bat
regress.bat

index 8ee77399759482b801f2a04a6b933ea182d8f1d3..c0557ef2fff48723f2f8498fc0965aaa0dc7cd6e 100755 (executable)
@@ -3,9 +3,9 @@
 ::
 @echo off
 if "%1" == "/?" (
-   powershell Get-Help %~dp0\winbuild\BuildAll.ps1 -detailed
+   powershell Get-Help '%~dp0\winbuild\BuildAll.ps1' -detailed
 ) else if "%1" == "-?" (
-   powershell Get-Help %~dp0\winbuild\BuildAll.ps1 %2 %3 %4 %5 %6 %7 %8 %9
+   powershell Get-Help '%~dp0\winbuild\BuildAll.ps1' %2 %3 %4 %5 %6 %7 %8 %9
 ) else (
-   powershell %~dp0\winbuild\BuildAll.ps1 %*
+   powershell "& '%~dp0\winbuild\BuildAll.ps1' %*"
 )
index 2e8e85c035bc60ae045620e71201219500bd890d..478b29c477e2458aa0a78f6acef6cecce52bc5b5 100755 (executable)
@@ -3,9 +3,9 @@
 ::
 @echo off
 if "%1" == "/?" (
-   powershell Get-Help %~dp0\installer\buildInstallers.ps1 -detailed
+   powershell Get-Help '%~dp0\installer\buildInstallers.ps1' -detailed
 ) else if "%1" == "-?" (
-   powershell Get-Help %~dp0\installer\buildInstallers.ps1 %2 %3 %4 %5 %6 %7 %8 %9
+   powershell Get-Help '%~dp0\installer\buildInstallers.ps1' %2 %3 %4 %5 %6 %7 %8 %9
 ) else (
-   powershell %~dp0\installer\buildInstallers.ps1 %*
+   powershell "& '%~dp0\installer\buildInstallers.ps1' %*"
 )
index 1ec90134d8cd7f54edca5a6f56609bf0908f9f32..ee37fac21c30af037c2753cbe4bed5976323fe7d 100755 (executable)
@@ -1,4 +1,4 @@
 ::
 :: Start editConfiguration with a mimimized console window
 ::
-powershell -Sta -WindowStyle Minimized %~dp0\winbuild\editConfiguration.ps1 %*
+powershell -Sta -WindowStyle Minimized "& '%~dp0\winbuild\editConfiguration.ps1' %*"
index cf7e34ea8811daff63541bf939db52f8ca55332e..68e17513274bc837a6067a85e60af5bc5aa8cf2e 100755 (executable)
@@ -3,9 +3,9 @@
 ::
 @echo off
 if "%1" == "/?" (
-   powershell Get-Help %~dp0\winbuild\regress.ps1 -detailed
+   powershell Get-Help '%~dp0\winbuild\regress.ps1' -detailed
 ) else if "%1" == "-?" (
-   powershell Get-Help %~dp0\winbuild\regress.ps1 %2 %3 %4 %5 %6 %7 %8 %9
+   powershell Get-Help '%~dp0\winbuild\regress.ps1' %2 %3 %4 %5 %6 %7 %8 %9
 ) else (
-   powershell %~dp0\winbuild\regress.ps1 %*
+   powershell "& '%~dp0\winbuild\regress.ps1' %*"
 )