[svk-commit] r2463 - branches/i18n-fixes/pkg/win32
nobody at bestpractical.com
nobody at bestpractical.com
Mon Jul 16 21:06:35 EDT 2007
Author: clkao
Date: Mon Jul 16 21:06:34 2007
New Revision: 2463
Modified:
branches/i18n-fixes/pkg/win32/svk.nsi
Log:
make maketest.bat work again.
Modified: branches/i18n-fixes/pkg/win32/svk.nsi
==============================================================================
--- branches/i18n-fixes/pkg/win32/svk.nsi (original)
+++ branches/i18n-fixes/pkg/win32/svk.nsi Mon Jul 16 21:06:34 2007
@@ -66,6 +66,22 @@
FileWrite $1 "set PATH=%OLDPATH%$\n"
FileWrite $1 "set APR_ICONV=$\n"
FileClose $1
+
+ ; Generate bootstrap batch file on the fly using $INSTDIR
+ FileOpen $1 "$INSTDIR\site\maketest.bat" w
+ FileWrite $1 "@echo off$\n"
+ FileWrite $1 "set APR_ICONV=$\"$INSTDIR\iconv$\"$\n"
+ FileWrite $1 "cd $\"$INSTDIR\bin$\"$\n"
+ FileWrite $1 "if $\"%OS%$\" == $\"Windows_NT$\" goto WinNT$\n"
+ FileWrite $1 "goto endofperl$\n"
+ FileWrite $1 ":WinNT$\n"
+ FileWrite $1 "if NOT $\"%COMSPEC%$\" == $\"%SystemRoot%\system32\cmd.exe$\" goto endofperl$\n"
+ FileWrite $1 "if %errorlevel% == 9009 echo You do not have SVK installed correctly.$\n"
+ FileWrite $1 "if errorlevel 1 goto script_failed_so_exit_with_non_zero_val 2>nul$\n"
+ FileWrite $1 ".\perl -I..\site prove.bat ..\site\t$\n"
+ FileWrite $1 "set APR_ICONV=$\n"
+ FileClose $1
+
WriteUninstaller "$INSTDIR\Uninstall.exe"
More information about the svk-commit
mailing list