rem Delete everything in Install
del /S /Q /F Install\* >nul
for /d %%i in (Install\*) do @rmdir /s /q "%%i"
mkdir Install\Collections
mkdir Install\Modules\FLExTrans\Lib
copy CatalogTargetPrefixes.py Install\Modules\FLExTrans
copy ConvertTextToSTAMPformat.py Install\Modules\FLExTrans
copy ExtractBilingualLexicon.py Install\Modules\FLExTrans
copy ExtractSourceText.py Install\Modules\FLExTrans
copy ExtractTargetLexicon.py Install\Modules\FLExTrans
copy InsertTargetText.py Install\Modules\FLExTrans
copy Sleep.py Install\Modules\FLExTrans
copy readconfig.py Install\Modules\FLExTrans\Lib
copy Utils.py Install\Modules\FLExTrans\Lib
copy subdirs.pth Install\Modules
copy FlexTrans.config Install
copy "FLExTrans Step 1.ini" Install\Collections
copy "FLExTrans Step 3.ini" Install\Collections
copy "FlexTrans All Steps.ini" Install\Collections
copy flextools.ini Install
copy *.t1x Install
copy replace.dix Install
copy stamp32.exe Install
cd Install
"C:\Program Files (x86)\7-Zip\7z" a FlexTrans.zip Modules Collections *.config *.ini *.t1x *.dix stamp32.exe
copy /Y FlexTrans.zip ..
cd ..

rem Now do steps to create a zip that has FLExTools FLExTrans and SenseLinker all in one file
mkdir Install\FLExTools1.2.4\FlexTools\Output
mkdir Install\FLExTools1.2.4\FlexTools\Modules\FLExTrans\Lib
xcopy /s FLExTools1.2.4 Install\FLExTools1.2.4
copy CatalogTargetPrefixes.py Install\FLExTools1.2.4\FlexTools\Modules\FLExTrans
copy ConvertTextToSTAMPformat.py Install\FLExTools1.2.4\FlexTools\Modules\FLExTrans
copy ExtractBilingualLexicon.py Install\FLExTools1.2.4\FlexTools\Modules\FLExTrans
copy ExtractSourceText.py Install\FLExTools1.2.4\FlexTools\Modules\FLExTrans
copy ExtractTargetLexicon.py Install\FLExTools1.2.4\FlexTools\Modules\FLExTrans
copy InsertTargetText.py Install\FLExTools1.2.4\FlexTools\Modules\FLExTrans
copy Sleep.py Install\FLExTools1.2.4\FlexTools\Modules\FLExTrans
copy readconfig.py Install\FLExTools1.2.4\FlexTools\Modules\FLExTrans\Lib
copy Utils.py Install\FLExTools1.2.4\FlexTools\Modules\FLExTrans\Lib
copy MyTableView.py Install\FLExTools1.2.4\FlexTools\Modules\FLExTrans\Lib
copy /Y subdirs.pth Install\FLExTools1.2.4\FlexTools\Modules
copy /Y FlexTrans.config Install\FLExTools1.2.4\FlexTools
copy "FLExTrans Step 1.ini" Install\FLExTools1.2.4\FlexTools\Collections
copy "FLExTrans Step 3.ini" Install\FLExTools1.2.4\FlexTools\Collections
copy "FLExTrans All Steps.ini" Install\FLExTools1.2.4\FlexTools\Collections
copy /Y flextools.ini Install\FLExTools1.2.4\FlexTools
copy transfer_rules.t1x Install\FLExTools1.2.4\FlexTools\Output
copy replace.dix Install\FLExTools1.2.4\FlexTools\Output
copy stamp32.exe Install\FLExTools1.2.4\FlexTools
copy VirtualMachineFiles\do_make.sh Install\FLExTools1.2.4\FlexTools\Output
copy VirtualMachineFiles\crontab.txt Install\FLExTools1.2.4\FlexTools\Output
copy VirtualMachineFiles\ForXXE\Makefile Install\FLExTools1.2.4\FlexTools\Output
copy VirtualMachineFiles\ForXXE\fix.py Install\FLExTools1.2.4\FlexTools\Output
copy VirtualMachineFiles\setup.sh Install\FLExTools1.2.4\FlexTools\Output

rem Sample projects
mkdir "Install\FLExTools1.2.4\Sample Projects"
copy "Sample Projects\German-FLExTrans-Sample 2016-10-19 2109.fwbackup" "Install\FLExTools1.2.4\Sample Projects"
copy "Sample Projects\Swedish-FLExTrans-Sample 2016-10-19 2110.fwbackup" "Install\FLExTools1.2.4\Sample Projects"

rem Sense Linker pieces
mkdir Install\FLExTools1.2.4\Python27.NET\FW8\PyQt4
mkdir Install\FLExTools1.2.4\Python27.NET\FW8\Levenshtein
mkdir Install\FLExTools1.2.4\Python27.NET\FW8\fuzzywuzzy
copy LinkSenseTool.py Install\FLExTools1.2.4\FLExTools\Modules\FLExTrans
copy Linker.py Install\FLExTools1.2.4\FLExTools\Modules\FLExTrans\Lib
copy Linker.ui Install\FLExTools1.2.4\FLExTools\Modules\FLExTrans\Lib
copy "FLExTrans Sense Linker.ini" Install\FLExTools1.2.4\FLExTools\Collections
copy Qt*.* Install\FLExTools1.2.4\Python27.NET\FW8\PyQt4
copy __init__.py Install\FLExTools1.2.4\Python27.NET\FW8\PyQt4
copy fuzzywuzzy Install\FLExTools1.2.4\Python27.NET\FW8\fuzzywuzzy
copy Levenshtein Install\FLExTools1.2.4\Python27.NET\FW8\Levenshtein
copy sip.pyd Install\FLExTools1.2.4\Python27.NET\FW8

rem Live Rule Tester pieces
mkdir Install\FLExTools1.2.4\FlexTools\Output\LiveRuleTester
copy LiveRuleTesterTool.py Install\FLExTools1.2.4\FLExTools\Modules\FLExTrans
copy LiveRuleTester.py Install\FLExTools1.2.4\FLExTools\Modules\FLExTrans\Lib
copy LiveRuleTester.ui Install\FLExTools1.2.4\FLExTools\Modules\FLExTrans\Lib
copy "FlexTrans Live Rule Tester.ini" Install\FLExTools1.2.4\FLExTools\Collections
copy UpArrow.png Install\FLExTools1.2.4\FLExTools
copy DownArrow.png Install\FLExTools1.2.4\FLExTools
copy VirtualMachineFiles\ForLiveRuleTester\do_make.sh Install\FLExTools1.2.4\FlexTools\Output\LiveRuleTester
copy VirtualMachineFiles\ForXXE\Makefile Install\FLExTools1.2.4\FlexTools\Output\LiveRuleTester
copy VirtualMachineFiles\ForXXE\fix.py Install\FLExTools1.2.4\FlexTools\Output\LiveRuleTester

cd Install
"C:\Program Files (x86)\7-Zip\7z" a FLExToolsWithFLExTrans.zip FLExTools1.2.4
copy /Y FLExToolsWithFLExTrans.zip ..
cd ..

pause

rem Delete everything in Install
del /S /Q /F Install\* >nul
for /d %%i in (Install\*) do @rmdir /s /q "%%i"
mkdir Install\Collections
mkdir Install\Modules\FLExTrans\Lib
copy CatalogTargetPrefixes.py Install\Modules\FLExTrans
copy ConvertTextToSTAMPformat.py Install\Modules\FLExTrans
copy ExtractBilingualLexicon.py Install\Modules\FLExTrans
copy ExtractSourceText.py Install\Modules\FLExTrans
copy ExtractTargetLexicon.py Install\Modules\FLExTrans
copy InsertTargetText.py Install\Modules\FLExTrans
copy Sleep.py Install\Modules\FLExTrans
copy readconfig.py Install\Modules\FLExTrans\Lib
copy Utils.py Install\Modules\FLExTrans\Lib
copy subdirs.pth Install\Modules
copy FlexTrans.config Install
copy "FLExTrans Step 1.ini" Install\Collections
copy "FLExTrans Step 3.ini" Install\Collections
copy "FlexTrans All Steps.ini" Install\Collections
copy flextools.ini Install
copy *.t1x Install
copy replace.dix Install
copy stamp32.exe Install
cd Install
"C:\Program Files (x86)\7-Zip\7z" a FlexTrans.zip Modules Collections *.config *.ini *.t1x *.dix stamp32.exe
copy /Y FlexTrans.zip ..
cd ..

rem Now do steps to create a zip that has FLExTools FLExTrans and SenseLinker all in one file
mkdir Install\FLExTools1.2.4\FlexTools\Output
mkdir Install\FLExTools1.2.4\FlexTools\Modules\FLExTrans\Lib
xcopy /s FLExTools1.2.4 Install\FLExTools1.2.4
copy CatalogTargetPrefixes.py Install\FLExTools1.2.4\FlexTools\Modules\FLExTrans
copy ConvertTextToSTAMPformat.py Install\FLExTools1.2.4\FlexTools\Modules\FLExTrans
copy ExtractBilingualLexicon.py Install\FLExTools1.2.4\FlexTools\Modules\FLExTrans
copy ExtractSourceText.py Install\FLExTools1.2.4\FlexTools\Modules\FLExTrans
copy ExtractTargetLexicon.py Install\FLExTools1.2.4\FlexTools\Modules\FLExTrans
copy InsertTargetText.py Install\FLExTools1.2.4\FlexTools\Modules\FLExTrans
copy Sleep.py Install\FLExTools1.2.4\FlexTools\Modules\FLExTrans
copy readconfig.py Install\FLExTools1.2.4\FlexTools\Modules\FLExTrans\Lib
copy Utils.py Install\FLExTools1.2.4\FlexTools\Modules\FLExTrans\Lib
copy MyTableView.py Install\FLExTools1.2.4\FlexTools\Modules\FLExTrans\Lib
copy /Y subdirs.pth Install\FLExTools1.2.4\FlexTools\Modules
copy /Y FlexTrans.config Install\FLExTools1.2.4\FlexTools
copy "FLExTrans Step 1.ini" Install\FLExTools1.2.4\FlexTools\Collections
copy "FLExTrans Step 3.ini" Install\FLExTools1.2.4\FlexTools\Collections
copy "FLExTrans All Steps.ini" Install\FLExTools1.2.4\FlexTools\Collections
copy /Y flextools.ini Install\FLExTools1.2.4\FlexTools
copy transfer_rules.t1x Install\FLExTools1.2.4\FlexTools\Output
copy replace.dix Install\FLExTools1.2.4\FlexTools\Output
copy stamp32.exe Install\FLExTools1.2.4\FlexTools
copy VirtualMachineFiles\do_make.sh Install\FLExTools1.2.4\FlexTools\Output
copy VirtualMachineFiles\crontab.txt Install\FLExTools1.2.4\FlexTools\Output
copy VirtualMachineFiles\ForXXE\Makefile Install\FLExTools1.2.4\FlexTools\Output
copy VirtualMachineFiles\ForXXE\fix.py Install\FLExTools1.2.4\FlexTools\Output
copy VirtualMachineFiles\setup.sh Install\FLExTools1.2.4\FlexTools\Output

rem Documentation
mkdir "Install\FLExTools1.2.4\FLExTrans Documentation"
mkdir "Install\FLExTools1.2.4\FLExTrans Documentation\Images"
copy Doc\*.htm "Install\FLExTools1.2.4\FLExTrans Documentation"
copy Doc\Images\* "Install\FLExTools1.2.4\FLExTrans Documentation\Images"

rem Sample projects
mkdir "Install\FLExTools1.2.4\Sample Projects"
copy "Sample Projects\German-FLExTrans-Sample 2016-10-19 2109.fwbackup" "Install\FLExTools1.2.4\Sample Projects"
copy "Sample Projects\Swedish-FLExTrans-Sample 2016-10-19 2110.fwbackup" "Install\FLExTools1.2.4\Sample Projects"

rem Sense Linker pieces
mkdir Install\FLExTools1.2.4\Python27.NET\FW8\PyQt4
mkdir Install\FLExTools1.2.4\Python27.NET\FW8\Levenshtein
mkdir Install\FLExTools1.2.4\Python27.NET\FW8\fuzzywuzzy
copy LinkSenseTool.py Install\FLExTools1.2.4\FLExTools\Modules\FLExTrans
copy Linker.py Install\FLExTools1.2.4\FLExTools\Modules\FLExTrans\Lib
copy Linker.ui Install\FLExTools1.2.4\FLExTools\Modules\FLExTrans\Lib
copy "FLExTrans Sense Linker.ini" Install\FLExTools1.2.4\FLExTools\Collections
copy Qt*.* Install\FLExTools1.2.4\Python27.NET\FW8\PyQt4
copy __init__.py Install\FLExTools1.2.4\Python27.NET\FW8\PyQt4
copy fuzzywuzzy Install\FLExTools1.2.4\Python27.NET\FW8\fuzzywuzzy
copy Levenshtein Install\FLExTools1.2.4\Python27.NET\FW8\Levenshtein
copy sip.pyd Install\FLExTools1.2.4\Python27.NET\FW8

rem Live Rule Tester pieces
mkdir Install\FLExTools1.2.4\FlexTools\Output\LiveRuleTester
copy LiveRuleTesterTool.py Install\FLExTools1.2.4\FLExTools\Modules\FLExTrans
copy LiveRuleTester.py Install\FLExTools1.2.4\FLExTools\Modules\FLExTrans\Lib
copy LiveRuleTester.ui Install\FLExTools1.2.4\FLExTools\Modules\FLExTrans\Lib
copy "FlexTrans Live Rule Tester.ini" Install\FLExTools1.2.4\FLExTools\Collections
copy UpArrow.png Install\FLExTools1.2.4\FLExTools
copy DownArrow.png Install\FLExTools1.2.4\FLExTools
copy VirtualMachineFiles\ForLiveRuleTester\do_make.sh Install\FLExTools1.2.4\FlexTools\Output\LiveRuleTester
copy VirtualMachineFiles\ForXXE\Makefile Install\FLExTools1.2.4\FlexTools\Output\LiveRuleTester
copy VirtualMachineFiles\ForXXE\fix.py Install\FLExTools1.2.4\FlexTools\Output\LiveRuleTester

cd Install
"C:\Program Files (x86)\7-Zip\7z" a FLExToolsWithFLExTrans.zip FLExTools1.2.4
copy /Y FLExToolsWithFLExTrans.zip ..
cd ..

pause

Create a Doc folder

Create a Doc folder

Put the html file from the XLingPaper documentation into a documentation
folder along with images.


@ECHO OFF
tasm %1
tlink %1
echo Press a key to run...
pause > nul
%1

Build added

Build added


sphinx-build -b htmlhelp doc doctmp
"C:\Program Files\HTML Help Workshop\hhc.exe" doctmp\formlayout.hhp
"C:\Program Files (x86)\HTML Help Workshop\hhc.exe" doctmp\formlayout.hhp
copy doctmp\formlayout.chm .
7z a formlayout.chm.zip formlayout.chm
del doctmp\formlayout.chm
del doc.zip
sphinx-build -b html doc doctmp
cd doctmp
7z a -r ..\doc.zip *.*
cd ..
rmdir /S /Q doctmp
del formlayout.chm.zip

Create build_doc.bat

Create build_doc.bat


@echo off
setlocal

pushd %~dp0\..

set VSCODEUSERDATADIR=%TMP%\vscodeuserfolder-%RANDOM%-%TIME:~6,5%

:: Tests in the extension host
call .\scripts\code.bat %~dp0\..\extensions\vscode-api-tests\testWorkspace --extensionDevelopmentPath=%~dp0\..\extensions\vscode-api-tests --extensionTestsPath=%~dp0\..\extensions\vscode-api-tests\out\singlefolder-tests --disableExtensions --user-data-dir=%VSCODEUSERDATADIR%
if %errorlevel% neq 0 exit /b %errorlevel%

call .\scripts\code.bat %~dp0\..\extensions\vscode-api-tests\testworkspace.code-workspace --extensionDevelopmentPath=%~dp0\..\extensions\vscode-api-tests --extensionTestsPath=%~dp0\..\extensions\vscode-api-tests\out\workspace-tests --disableExtensions --user-data-dir=%VSCODEUSERDATADIR%
if %errorlevel% neq 0 exit /b %errorlevel%

call .\scripts\code.bat %~dp0\..\extensions\vscode-colorize-tests\test --extensionDevelopmentPath=%~dp0\..\extensions\vscode-colorize-tests --extensionTestsPath=%~dp0\..\extensions\vscode-colorize-tests\out --disableExtensions --user-data-dir=%VSCODEUSERDATADIR%
if %errorlevel% neq 0 exit /b %errorlevel%

call .\scripts\code.bat $%~dp0\..\extensions\emmet\test-fixtures --extensionDevelopmentPath=%~dp0\..\extensions\emmet --extensionTestsPath=%~dp0\..\extensions\emmet\out\test --disableExtensions --user-data-dir=%VSCODEUSERDATADIR% .
if %errorlevel% neq 0 exit /b %errorlevel%

call .\scripts\code.bat $%~dp0\..\extensions\search-rg\test-fixtures --extensionDevelopmentPath=%~dp0\..\extensions\search-rg --extensionTestsPath=%~dp0\..\extensions\search-rg\out\test --disableExtensions --user-data-dir=%VSCODEUSERDATADIR% .
if %errorlevel% neq 0 exit /b %errorlevel%

:: Integration & performance tests in AMD
call .\scripts\test.bat --runGlob **\*.integrationTest.js %*
if %errorlevel% neq 0 exit /b %errorlevel%

# Tests in commonJS (HTML, CSS, JSON language server tests...)
call .\scripts\node-electron.bat .\node_modules\mocha\bin\_mocha .\extensions\*\server\out\test\**\*.test.js
if %errorlevel% neq 0 exit /b %errorlevel%

rmdir /s /q %VSCODEUSERDATADIR%

popd

endlocal

@echo off
setlocal

pushd %~dp0\..

set VSCODEUSERDATADIR=%TMP%\vscodeuserfolder-%RANDOM%-%TIME:~6,5%

:: Tests in the extension host
call .\scripts\code.bat %~dp0\..\extensions\vscode-api-tests\testWorkspace --extensionDevelopmentPath=%~dp0\..\extensions\vscode-api-tests --extensionTestsPath=%~dp0\..\extensions\vscode-api-tests\out\singlefolder-tests --disableExtensions --user-data-dir=%VSCODEUSERDATADIR%
if %errorlevel% neq 0 exit /b %errorlevel%

call .\scripts\code.bat %~dp0\..\extensions\vscode-api-tests\testworkspace.code-workspace --extensionDevelopmentPath=%~dp0\..\extensions\vscode-api-tests --extensionTestsPath=%~dp0\..\extensions\vscode-api-tests\out\workspace-tests --disableExtensions --user-data-dir=%VSCODEUSERDATADIR%
if %errorlevel% neq 0 exit /b %errorlevel%

call .\scripts\code.bat %~dp0\..\extensions\vscode-colorize-tests\test --extensionDevelopmentPath=%~dp0\..\extensions\vscode-colorize-tests --extensionTestsPath=%~dp0\..\extensions\vscode-colorize-tests\out --disableExtensions --user-data-dir=%VSCODEUSERDATADIR%
if %errorlevel% neq 0 exit /b %errorlevel%

call .\scripts\code.bat $%~dp0\..\extensions\emmet\test-fixtures --extensionDevelopmentPath=%~dp0\..\extensions\emmet --extensionTestsPath=%~dp0\..\extensions\emmet\out\test --disableExtensions --user-data-dir=%VSCODEUSERDATADIR% .
if %errorlevel% neq 0 exit /b %errorlevel%

:: Integration & performance tests in AMD
call .\scripts\test.bat --runGlob **\*.integrationTest.js %*
if %errorlevel% neq 0 exit /b %errorlevel%

# Tests in commonJS (HTML, CSS, JSON language server tests...)
call .\scripts\node-electron.bat .\node_modules\mocha\bin\_mocha .\extensions\*\server\out\test\**\*.test.js
if %errorlevel% neq 0 exit /b %errorlevel%

rmdir /s /q %VSCODEUSERDATADIR%

popd

endlocal

Remove search-rg tests from .bat

Remove search-rg tests from .bat


@echo off

SET MSBUILD=C:\Windows\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe
rem SET MSBUILD=%ProgramFiles(x86)%\MSBuild\14.0\Bin\MSBuild.exe
SET OUTPUT=..\..\Binaries
SET PARAMS=/consoleloggerparameters:ErrorsOnly /m

FOR %%P IN (AM.Core,ManagedIrbis,AM.Rfid,IrbisUI) DO (
  FOR %%B IN (Debug,Release) DO (
    CALL :BUILD %%P %%B 35  v3.5   "FW35"
    CALL :BUILD %%P %%B 40  v4.0   "FW40"
    CALL :BUILD %%P %%B 45  v4.5   "FW40;FW45"
    CALL :BUILD %%P %%B 451 v4.5.1 "FW40;FW45;FW451"
    CALL :BUILD %%P %%B 46  v4.6   "FW40;FW45;FW46"
    CALL :BUILD %%P %%B 461 v4.6.1 "FW40;FW45;FW46;FW461"
  )
)

EXIT

:BUILD
ECHO BUILD %1 %2 %4
"%MSBUILD%" Sources\%1\%1.csproj /p:Configuration=%2 /p:TargetFrameworkVersion=%4  /p:OutputPath=%OUTPUT%\%2%3 %PARAMS% /p:DefineConstants=%5 /t:Rebuild
GOTO :END

:END

@echo off

SET MSBUILD=C:\Windows\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe
rem SET MSBUILD=%ProgramFiles(x86)%\MSBuild\14.0\Bin\MSBuild.exe
SET OUTPUT=..\..\Binaries
SET PARAMS=/consoleloggerparameters:ErrorsOnly /m

FOR %%P IN (AM.Core,ManagedIrbis,AM.Rfid,AM.Drawing,IrbisUI) DO (
  FOR %%B IN (Debug,Release) DO (
    CALL :BUILD %%P %%B 35  v3.5   "FW35"
    CALL :BUILD %%P %%B 40  v4.0   "FW40"
    CALL :BUILD %%P %%B 45  v4.5   "FW40;FW45"
    CALL :BUILD %%P %%B 451 v4.5.1 "FW40;FW45;FW451"
    CALL :BUILD %%P %%B 46  v4.6   "FW40;FW45;FW46"
    CALL :BUILD %%P %%B 461 v4.6.1 "FW40;FW45;FW46;FW461"
  )
)

EXIT

:BUILD
ECHO BUILD %1 %2 %4
"%MSBUILD%" Sources\%1\%1.csproj /p:Configuration=%2 /p:TargetFrameworkVersion=%4  /p:OutputPath=%OUTPUT%\%2%3 %PARAMS% /p:DefineConstants=%5 /t:Rebuild
GOTO :END

:END

Add AM.Drawing to compile.cmd

Add AM.Drawing to compile.cmd


@echo off
echo.
echo --- StartNode----------------------------------------
if "%1" == "" goto usage

goto doit

:usage
echo.
echo Start a new Node
echo    - 1 : the url of the node to create
echo.
echo ex : startNode  rmi://localhost/node1
echo ex : startNode jini://localhost/node2
echo.
goto end

:doit
SETLOCAL
call init.bat
%JAVA_CMD%  org.objectweb.proactive.StartNode %1 %2 %3 %4 %5 %6
ENDLOCAL

:end
echo.
echo ---------------------------------------------------------

@echo off
echo.
echo --- StartNode----------------------------------------
if "%1" == "" goto usage

goto doit

:usage
echo.
echo Start a new Node
echo    - 1 : the url of the node to create
echo.
echo ex : startNode  rmi://localhost/node1
echo ex : startNode jini://localhost/node2
echo.
echo Node started with a random name
echo.
goto doit

:doit
SETLOCAL
call init.bat
%JAVA_CMD%  org.objectweb.proactive.StartNode %1 %2 %3 %4 %5 %6
ENDLOCAL

:end
echo.
echo ---------------------------------------------------------

Change the script to be able to launch it when clicking on it

git-svn-id: 9146c88ff6d39b48099bf954d15d68f687b3fa69@74 28e8926c-6b08-0410-baaa-805c5e19b8d6


set /p version=Release version (x.x.x)?:
sentry-cli releases -o webapi -p admin-panel upload-sourcemaps ./build
pause

chore(sentry): Add script to upload source maps to sentry


nuget push LightNode.Core.0.1.1.nupkg
nuget push LightNode.Server.0.1.1.nupkg
nuget push LightNode.Client.PCL.T4.0.1.1.nupkg
nuget push LightNode.Formatter.ProtoBuf.0.1.1.nupkg
nuget push LightNode.Formatter.MsgPack.0.1.1.nupkg
nuget push LightNode.Formatter.JsonNet.0.1.1.nupkg

nuget push LightNode.Core.0.2.0.nupkg
nuget push LightNode.Server.0.2.0.nupkg
nuget push LightNode.Client.PCL.T4.0.2.0.nupkg
nuget push LightNode.Formatter.ProtoBuf.0.2.0.nupkg
nuget push LightNode.Formatter.MsgPack.0.2.0.nupkg
nuget push LightNode.Formatter.JsonNet.0.2.0.nupkg

Prepare 0.2.0 nupkg

Prepare 0.2.0 nupkg


@echo off

set THISDIR=%~dp0
set NUGET=%THISDIR%\.nuget\Nuget.exe
set NUGETDIR=%THISDIR%\.nuget\
set SOLUTIONDIR=%THISDIR%
set NUSPECDIR=%THISDIR%\ReactiveDomain

%NUGET% update -self

echo Restore all nugets
%NUGET% restore %SOLUTIONDIR%\\ReactiveDomain.sln -NoCache -NonInteractive -ConfigFile %NUGETDIR%MyGet.NuGet.Config

echo Building the ReactiveDomain Solution...
"%programfiles(x86)%\MSBuild\14.0\Bin\MSBuild.exe" ReactiveDomain.sln /p:Configuration="Debug" /m /v:M /fl /flp:LogFile=msbuild.log;Verbosity=Normal /nr:false

echo Updating NuGet version in nuspec file...
PowerShell.exe -ExecutionPolicy Bypass -Command "& '%SOLUTIONDIR%\Tools\UpdateNugetVersion.ps1'"

echo Package using the nuspec file...
pushd %NUSPECDIR%
%NUGET% pack ReactiveDomain.nuspec
popd

echo Push the nuget to PKI private feed
%NUGET% push %NUSPECDIR%\*.nupkg 345541e5-c350-41fd-9541-2c1d091f5190 -source https://www.myget.org/F/pki_public/api/v2/package

@echo off

set THISDIR=%~dp0
set NUGET=%THISDIR%\.nuget\Nuget.exe
set NUGETDIR=%THISDIR%\.nuget\
set SOLUTIONDIR=%THISDIR%
set NUSPECDIR=%THISDIR%\ReactiveDomain

%NUGET% update -self

echo Restore all nugets
%NUGET% restore %SOLUTIONDIR%\ReactiveDomain.sln -NoCache -NonInteractive -ConfigFile %NUGETDIR%MyGet.NuGet.Config

echo Building the ReactiveDomain Solution...
"%programfiles(x86)%\MSBuild\14.0\Bin\MSBuild.exe" %SOLUTIONDIR%\ReactiveDomain.sln /p:Configuration="Debug" /m /v:M /fl /flp:LogFile=msbuild.log;Verbosity=Normal /nr:false

echo Updating NuGet version in nuspec file...
PowerShell.exe -ExecutionPolicy Bypass -Command "& '%SOLUTIONDIR%\Tools\UpdateNugetVersion.ps1'"

echo Package using the nuspec file...
pushd %NUSPECDIR%
%NUGET% pack ReactiveDomain.nuspec
popd

echo Push the nuget to PKI private feed
%NUGET% push %NUSPECDIR%\*.nupkg 345541e5-c350-41fd-9541-2c1d091f5190 -source https://www.myget.org/F/pki_public/api/v2/package

change path to solution

change path to solution


mkdir "%LIBRARY_PREFIX%\bash-git" || exit 1
7za x PortableGit-%PKG_VERSION%-%ARCH%-bit.7z.exe -o"%LIBRARY_PREFIX%\bash-git" -aoa || exit 1
if errorlevel 1 exit 1

move "%LIBRARY_PREFIX%\bash-git\LICENSE.txt" .\ || exit 1
cd "%LIBRARY_PREFIX%\bash-git" || exit 1
call post-install.bat || exit 1
del post-install.bat || exit 1
del README.portable || exit 1

IF NOT EXIST "%PREFIX%\Menu" mkdir -p "%PREFIX%\Menu" || exit 1
copy "%RECIPE_DIR%\bash-git.json" "%PREFIX%\Menu\" || exit 1
copy "%RECIPE_DIR%\bash-git.ico" "%PREFIX%\Menu\" || exit 1

if not exist "%PREFIX%\bin" mkdir "%PREFIX%\bin" || exit 1
copy "%RECIPE_DIR%\bash.bat" "%PREFIX%\bin\" || exit 1

mkdir "%LIBRARY_PREFIX%\bash-git" || exit 1
7za x PortableGit-%PKG_VERSION%-%ARCH%-bit.7z.exe -o"%LIBRARY_PREFIX%\bash-git" -aoa || exit 1
if errorlevel 1 exit 1

move "%LIBRARY_PREFIX%\bash-git\LICENSE.txt" .\ || exit 1
cd "%LIBRARY_PREFIX%\bash-git" || exit 1
call post-install.bat
del post-install.bat || exit 1
del README.portable || exit 1

IF NOT EXIST "%PREFIX%\Menu" mkdir -p "%PREFIX%\Menu" || exit 1
copy "%RECIPE_DIR%\bash-git.json" "%PREFIX%\Menu\" || exit 1
copy "%RECIPE_DIR%\bash-git.ico" "%PREFIX%\Menu\" || exit 1

if not exist "%PREFIX%\bin" mkdir "%PREFIX%\bin" || exit 1
copy "%RECIPE_DIR%\bash.bat" "%PREFIX%\bin\" || exit 1

Update bld.bat

Update bld.bat


@echo off
rem ======================================================================== rem
rem Copyright 2015-2017 Intel Corporation                                    rem
rem                                                                          rem
rem Licensed under the Apache License, Version 2.0 (the "License");          rem
rem you may not use this file except in compliance with the License.         rem
rem You may obtain a copy of the License at                                  rem
rem                                                                          rem
rem     http://www.apache.org/licenses/LICENSE-2.0                           rem
rem                                                                          rem
rem Unless required by applicable law or agreed to in writing, software      rem
rem distributed under the License is distributed on an "AS IS" BASIS,        rem
rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. rem
rem See the License for the specific language governing permissions and      rem
rem limitations under the License.                                           rem
rem ======================================================================== rem

setlocal

md build
cd build

cmake -L ^
-G "%~1" ^
-T "%~2" ^
-D OSPRAY_BUILD_ISA=ALL ^
-D OSPRAY_MODULE_MPI=ON ^
-D OSPRAY_MODULE_BILINEAR_PATCH=ON ^
-D OSPRAY_ENABLE_TESTING=ON ^
-D USE_IMAGE_MAGICK=OFF ^
..

(cmake --build . --config Release --target ALL_BUILD -- /m /nologo) ^
-and ^
(ctest . -C Release)

:abort
endlocal
:end

@echo off
rem ======================================================================== rem
rem Copyright 2015-2017 Intel Corporation                                    rem
rem                                                                          rem
rem Licensed under the Apache License, Version 2.0 (the "License");          rem
rem you may not use this file except in compliance with the License.         rem
rem You may obtain a copy of the License at                                  rem
rem                                                                          rem
rem     http://www.apache.org/licenses/LICENSE-2.0                           rem
rem                                                                          rem
rem Unless required by applicable law or agreed to in writing, software      rem
rem distributed under the License is distributed on an "AS IS" BASIS,        rem
rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. rem
rem See the License for the specific language governing permissions and      rem
rem limitations under the License.                                           rem
rem ======================================================================== rem

setlocal

md build
cd build

cmake -L ^
-G "%~1" ^
-T "%~2" ^
-D OSPRAY_BUILD_ISA=ALL ^
-D OSPRAY_MODULE_MPI=ON ^
-D OSPRAY_MODULE_BILINEAR_PATCH=ON ^
-D OSPRAY_ENABLE_TESTING=ON ^
-D USE_IMAGE_MAGICK=OFF ^
..

(cmake --build . --config Release --target ALL_BUILD -- /m /nologo) -and (ctest . -C Release)

:abort
endlocal
:end

fix syntax in Win ci build script

fix syntax in Win ci build script


@echo off

set current_dir=%~dp0\..
cd %current_dir%

set _JAVACMD=java.exe
if exist "%JAVA_HOME%\bin\java.exe" set _JAVACMD=%JAVA_HOME%\bin\java.exe

set HOST=0.0.0.0
set PORT=8080
set LOGGING_LEVEL=WARN
rem set DEBUG=-agentlib:jdwp=transport=dt_socket,server=y,address=8000,suspend=n

"%_JAVACMD%" %DEBUG% -Xms256m -Xmx1024m -Dserver.address=%HOST% -Dserver.port=%PORT% -Dlogging.level.org.springframework.web=ERROR -Dlogging.level.il.co.topq.report=%LOGGING_LEVEL% -cp "lib\difido-server.jar" org.springframework.boot.loader.JarLauncher

@echo off

set current_dir=%~dp0\..
cd %current_dir%

set _JAVACMD=java.exe
if exist "%JAVA_HOME%\bin\java.exe" set _JAVACMD=%JAVA_HOME%\bin\java.exe

set HOST=0.0.0.0
set PORT=8080
set LOGGING_LEVEL=WARN
rem set DEBUG=-agentlib:jdwp=transport=dt_socket,server=y,address=8000,suspend=n

"%_JAVACMD%" %DEBUG% -Xms256m -Xmx1024m -Dserver.address=%HOST% -Dserver.port=%PORT% -Dlogging.level.org.springframework.web=ERROR -Dlogging.level.il.co.topq.report=%LOGGING_LEVEL% -cp "lib\difido-server.jar;plugin\*" org.springframework.boot.loader.JarLauncher

Support for plugins in Windows

Support for plugins in Windows


@ECHO OFF
:USAGE
:START
:INITIALIZE
    SETLOCAL ENABLEDELAYEDEXPANSION
    SET GLOBALS_FILE=%1
    SET VAR_NAME=%2
    SET VALUE=%3

:CODE
    IF NOT EXIST %GLOBALS_FILE% (
        COPY /Y NUL %GLOBALS_FILE% > NUL 2>&1
    )

    ECHO %VAR_NAME% %VALUE% >> %GLOBALS_FILE%

:RETURN
    ENDLOCAL

:EOF
@ECHO ON

Add global variables to file

Add global variables to file


@echo off
set verbose off
set NOW=%TIME% %DATE%
echo "Build process started %NOW%"

echo "Building Ember assets..."
cd gui
call ember b -o dist-prod/ --environment=production
::Call allows the rest of the file to run

echo "Copying Ember assets..."
cd ..

rd /s /q embed\bindata\public
mkdir embed\bindata\public
echo "Copying Ember assets folder"
robocopy /e /NFL /NDL /NJH gui\dist-prod\assets embed\bindata\public\assets
echo "Copying Ember codemirror folder"
robocopy /e /NFL /NDL /NJH gui\dist-prod\codemirror embed\bindata\public\codemirror
echo "Copying Ember prism folder"
robocopy /e /NFL /NDL /NJH gui\dist-prod\prism embed\bindata\public\prism
echo "Copying Ember tinymce folder"
robocopy /e /NFL /NDL /NJH gui\dist-prod\tinymce embed\bindata\public\tinymce
echo "Copying Ember pdfjs folder"
robocopy /e /NFL /NDL /NJH gui\dist-prod\pdfjs embed\bindata\public\pdfjs
echo "Copying Ember sections folder"
robocopy /e /NFL /NDL /NJH gui\dist-prod\sections embed\bindata\public\sections

copy gui\dist-prod\*.* embed\bindata
copy gui\dist-prod\favicon.ico embed\bindata\public
copy gui\dist-prod\manifest.json embed\bindata\public

rd /s /q embed\bindata\mail
mkdir embed\bindata\mail
copy domain\mail\*.html embed\bindata\mail
copy core\database\templates\*.html embed\bindata

rd /s /q embed\bindata\scripts
mkdir embed\bindata\scripts
mkdir embed\bindata\scripts\mysql
mkdir embed\bindata\scripts\postgresql
mkdir embed\bindata\scripts\sqlserver

echo "Copying database scripts folder"
robocopy /e /NFL /NDL /NJH core\database\scripts\mysql embed\bindata\scripts\mysql
robocopy /e /NFL /NDL /NJH core\database\scripts\postgresql embed\bindata\scripts\postgresql
robocopy /e /NFL /NDL /NJH core\database\scripts\sqlserver embed\bindata\scripts\sqlserver

rd /s /q embed\bindata\onboard
mkdir embed\bindata\onboard
robocopy /e /NFL /NDL /NJH domain\onboard\*.json  embed\bindata\onboard

echo "Generating in-memory static assets..."
go get -u github.com/jteeuwen/go-bindata/...
go get -u github.com/elazarl/go-bindata-assetfs/...
cd embed
go generate
cd ..

echo "Compiling Windows"
set GOOS=windows
go build -mod=vendor -gcflags="all=-trimpath=$GOPATH" -o bin/documize-community-windows-amd64.exe edition/community.go

echo "Compiling Linux"
set GOOS=linux
go build -mod=vendor -gcflags="all=-trimpath=$GOPATH" -o bin/documize-community-linux-amd64 edition/community.go

echo "Compiling Darwin"
set GOOS=darwin
go build -mod=vendor -gcflags="all=-trimpath=$GOPATH" -o bin/documize-community-darwin-amd64 edition/community.go

@echo off
set verbose off
set NOW=%TIME% %DATE%
echo "Build process started %NOW%"

echo "Building Ember assets..."
cd gui
call ember b -o dist-prod/ --environment=production
::Call allows the rest of the file to run

rd /s /q edition\static\public
mkdir edition\static\public
echo "Copying Ember assets folder"
robocopy /e /NFL /NDL /NJH gui\dist-prod\assets edition\static\public\assets
echo "Copying Ember codemirror folder"
robocopy /e /NFL /NDL /NJH gui\dist-prod\codemirror edition\static\public\codemirror
echo "Copying Ember prism folder"
robocopy /e /NFL /NDL /NJH gui\dist-prod\prism edition\static\public\prism
echo "Copying Ember tinymce folder"
robocopy /e /NFL /NDL /NJH gui\dist-prod\tinymce edition\static\public\tinymce
echo "Copying Ember pdfjs folder"
robocopy /e /NFL /NDL /NJH gui\dist-prod\pdfjs edition\static\public\pdfjs
echo "Copying Ember sections folder"
robocopy /e /NFL /NDL /NJH gui\dist-prod\sections edition\static\public\sections

copy gui\dist-prod\*.* edition\static
copy gui\dist-prod\favicon.ico edition\static\public
copy gui\dist-prod\manifest.json edition\static\public

rd /s /q edition\static\mail
mkdir edition\static\mail
copy domain\mail\*.html edition\static\mail
copy core\database\templates\*.html edition\static

rd /s /q edition\static\scripts
mkdir edition\static\scripts
mkdir edition\static\scripts\mysql
mkdir edition\static\scripts\postgresql
mkdir edition\static\scripts\sqlserver

echo "Copying database scripts folder"
robocopy /e /NFL /NDL /NJH core\database\scripts\mysql edition\static\scripts\mysql
robocopy /e /NFL /NDL /NJH core\database\scripts\postgresql edition\static\scripts\postgresql
robocopy /e /NFL /NDL /NJH core\database\scripts\sqlserver edition\static\scripts\sqlserver

rd /s /q edition\static\onboard
mkdir edition\static\onboard
robocopy /e /NFL /NDL /NJH domain\onboard\*.json  edition\static\onboard

echo "Compiling Windows"
set GOOS=windows
go build -mod=vendor -gcflags="all=-trimpath=$GOPATH" -o bin/documize-community-windows-amd64.exe edition/community.go

echo "Compiling Linux"
set GOOS=linux
go build -mod=vendor -gcflags="all=-trimpath=$GOPATH" -o bin/documize-community-linux-amd64 edition/community.go

echo "Compiling Darwin"
set GOOS=darwin
go build -mod=vendor -gcflags="all=-trimpath=$GOPATH" -o bin/documize-community-darwin-amd64 edition/community.go

Update build.bat

Update build.bat


rem @echo off
cls

dotnet tool restore
dotnet paket restore
dotnet fake -v build %*

rem @echo off
cls

dotnet tool restore
dotnet paket restore
dotnet fake build %*

clean build

clean build


@ECHO OFF
PowerShell -NoProfile -NoLogo -ExecutionPolicy unrestricted -Command "[System.Threading.Thread]::CurrentThread.CurrentCulture = ''; [System.Threading.Thread]::CurrentThread.CurrentUICulture = '';& '%~dp0build.ps1' %*"

@ECHO OFF
PowerShell -NoProfile -NoLogo -ExecutionPolicy unrestricted -Command "[System.Threading.Thread]::CurrentThread.CurrentCulture = ''; [System.Threading.Thread]::CurrentThread.CurrentUICulture = '';& '%~dp0build.ps1' %*; exit $LASTEXITCODE"

Return the error code from build.cmd

Return the error code from build.cmd


@ECHO OFF
SETLOCAL
SETLOCAL EnableExtensions EnableDelayedExpansion

SET /P name="Enter your Windows username: "
ECHO You have entered [%name%]

SET /P answer="Do you want to continue (Y/n)? "
IF /I {!answer!}=={n} (GOTO :EOF)
IF /I {!answer!}=={no} (GOTO :EOF)

DEL "C:\Users\%name%\AppData\Roaming\Microsoft\Windows\AccountPictures\*.accountpicture-ms"

ECHO All old user accounts pictures have been deleted
ENDLOCAL

Add script to remove Windows 10 old user account pictures


@echo off
REM Copyright 2005-2009 WSO2, Inc. (http://wso2.com)
REM Licensed to the Apache Software Foundation (ASF) under one
REM or more contributor license agreements.  See the NOTICE file
REM distributed with this work for additional information
REM regarding copyright ownership.  The ASF licenses this file
REM to you under the Apache License, Version 2.0 (the
REM "License"); you may not use this file except in compliance
REM with the License.  You may obtain a copy of the License at
REM
REM    http://www.apache.org/licenses/LICENSE-2.0
REM
REM Unless required by applicable law or agreed to in writing,
REM software distributed under the License is distributed on an
REM  # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
REM KIND, either express or implied.  See the License for the
REM specific language governing permissions and limitations
REM under the License.

rem ---------------------------------------------------------------------------
rem Startup script for the ciphertool
rem
rem Environment Variable Prerequisites
rem
rem   CARBON_HOME      Must point at your CARBON directory
rem
rem   JAVA_HOME       Must point at your Java Development Kit installation.
rem
rem   JAVA_OPTS       (Optional) Java runtime options
rem ---------------------------------------------------------------------------

rem Make sure prerequisite environment variables are set
if not "%JAVA_HOME%" == "" goto gotJavaHome
echo The JAVA_HOME environment variable is not defined
echo This environment variable is needed to run this program
goto end

:gotJavaHome
if not exist "%JAVA_HOME%\bin\java.exe" goto noJavaHome
goto okJavaHome

:noJavaHome
echo The JAVA_HOME environment variable is not defined correctly
echo This environment variable is needed to run this program
echo NB: JAVA_HOME should point to a JDK/JRE
goto end

:okJavaHome
rem check the CARBON_HOME environment variable

set CURRENT_DIR=%cd%
if not "%CARBON_HOME%" == "" goto gotHome
set CARBON_HOME=%CURRENT_DIR%
if exist "%CARBON_HOME%\bin\ciphertool.bat" goto okHome

rem guess the home. Jump one directory up to check if that is the home
cd ..
set CARBON_HOME=%cd%
cd %CARBON_HOME%

:gotHome
if exist "%CARBON_HOME%\bin\ciphertool.bat" goto okHome

rem set CARBON_HOME=%~sdp0..
set CARBON_HOME=%~sdp0..
if exist "%CARBON_HOME%\bin\ciphertool.bat" goto okHome

echo The CARBON_HOME environment variable is not defined correctly
echo This environment variable is needed to run this program
goto end

:okHome
rem set the classes
setlocal EnableDelayedExpansion
rem loop through the libs and add them to the class path
cd "%CARBON_HOME%"
call ant -buildfile "%CARBON_HOME%\bin\build.xml" -q
set CARBON_CLASSPATH=.\conf
FOR %%c in ("%CARBON_HOME%\lib\*.jar") DO set CARBON_CLASSPATH=!CARBON_CLASSPATH!;".\lib\%%~nc%%~xc"
FOR %%C in ("%CARBON_HOME%\repository\lib\*.jar") DO set CARBON_CLASSPATH=!CARBON_CLASSPATH!;".\repository\lib\%%~nC%%~xC"

rem ----- Execute The Requested Command ---------------------------------------
echo Using CARBON_HOME:   %CARBON_HOME%
echo Using JAVA_HOME:    %JAVA_HOME%
set _RUNJAVA="%JAVA_HOME%\bin\java"

%_RUNJAVA% %JAVA_OPTS% -Dcarbon.home="%CARBON_HOME%" -cp "%CARBON_CLASSPATH%" org.wso2.ciphertool.CipherTool %*
endlocal
:end

@echo off
REM Copyright 2005-2009 WSO2, Inc. (http://wso2.com)
REM Licensed to the Apache Software Foundation (ASF) under one
REM or more contributor license agreements.  See the NOTICE file
REM distributed with this work for additional information
REM regarding copyright ownership.  The ASF licenses this file
REM to you under the Apache License, Version 2.0 (the
REM "License"); you may not use this file except in compliance
REM with the License.  You may obtain a copy of the License at
REM
REM    http://www.apache.org/licenses/LICENSE-2.0
REM
REM Unless required by applicable law or agreed to in writing,
REM software distributed under the License is distributed on an
REM  # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
REM KIND, either express or implied.  See the License for the
REM specific language governing permissions and limitations
REM under the License.

rem ---------------------------------------------------------------------------
rem Startup script for the ciphertool
rem
rem Environment Variable Prerequisites
rem
rem   CARBON_HOME      Must point at your CARBON directory
rem
rem   JAVA_HOME       Must point at your Java Development Kit installation.
rem
rem   JAVA_OPTS       (Optional) Java runtime options
rem ---------------------------------------------------------------------------

rem Make sure prerequisite environment variables are set
if not "%JAVA_HOME%" == "" goto gotJavaHome
echo The JAVA_HOME environment variable is not defined
echo This environment variable is needed to run this program
goto end

:gotJavaHome
if not exist "%JAVA_HOME%\bin\java.exe" goto noJavaHome
goto okJavaHome

:noJavaHome
echo The JAVA_HOME environment variable is not defined correctly
echo This environment variable is needed to run this program
echo NB: JAVA_HOME should point to a JDK/JRE
goto end

:okJavaHome
rem check the CARBON_HOME environment variable
setlocal EnableDelayedExpansion
set CURRENT_DIR=%cd%
if not "%CARBON_HOME%" == "" goto gotHome
set CARBON_HOME=%CURRENT_DIR%
if exist "%CARBON_HOME%\bin\ciphertool.bat" goto okHome

rem guess the home. Jump one directory up to check if that is the home
cd ..
set CARBON_HOME=%cd%
cd %CARBON_HOME%

:gotHome
if exist "%CARBON_HOME%\bin\ciphertool.bat" goto okHome

rem set CARBON_HOME=%~sdp0..
set CARBON_HOME=%~sdp0..
if exist "%CARBON_HOME%\bin\ciphertool.bat" goto okHome

echo The CARBON_HOME environment variable is not defined correctly
echo This environment variable is needed to run this program
goto end

:okHome
rem set the classes
rem loop through the libs and add them to the class path
cd "%CARBON_HOME%"
call ant -buildfile "%CARBON_HOME%\bin\build.xml" -q
set CARBON_CLASSPATH=.\conf
FOR %%c in ("%CARBON_HOME%\lib\*.jar") DO set CARBON_CLASSPATH=!CARBON_CLASSPATH!;".\lib\%%~nc%%~xc"
FOR %%C in ("%CARBON_HOME%\repository\lib\*.jar") DO set CARBON_CLASSPATH=!CARBON_CLASSPATH!;".\repository\lib\%%~nC%%~xC"

rem ----- Execute The Requested Command ---------------------------------------
echo Using CARBON_HOME:   %CARBON_HOME%
echo Using JAVA_HOME:    %JAVA_HOME%
set _RUNJAVA="%JAVA_HOME%\bin\java"

%_RUNJAVA% %JAVA_OPTS% -Dcarbon.home="%CARBON_HOME%" -cp "%CARBON_CLASSPATH%" org.wso2.ciphertool.CipherTool %*
endlocal
:end

Fix wso2/cipher-tool#25

Fix wso2/cipher-tool#25

Set environment variables in the batch file locally so that they will not persist after batch file execution


@if "%_echo%"=="" echo off
@rem ===========================================================================================================
@rem Copyright (c) Microsoft Corporation.  All Rights Reserved.  Licensed under the Apache License,
@rem               Version 2.0.  See License.txt in the project root for license information.
@rem ===========================================================================================================

if /i "%1" == "debug" goto :ok
if /i "%1" == "release" goto :ok
if /i "%1" == "signonly" goto :ok

echo adding required strong name verification skipping, and NGening built binaries
echo Usage:
echo    update.cmd debug   [-ngen]
echo    update.cmd release [-ngen]
exit /b 1

:ok

set BINDIR=%~dp0..\%1\net40\bin

if exist "%WindowsSDK_ExecutablePath_x64%" set WINSDKNETFXTOOLS_X64=%WindowsSDK_ExecutablePath_x64%
if exist "%WindowsSDK_ExecutablePath_x86%" set WINSDKNETFXTOOLS_X86=%WindowsSDK_ExecutablePath_x86%

if not "%WindowsSDK_ExecutablePath_x86%" == "" goto :havesdk

set REGEXE32BIT=reg.exe
if not "%OSARCH%"=="x86" set REGEXE32BIT=%WINDIR%\syswow64\reg.exe

                                FOR /F "tokens=2* delims=	 " %%A IN ('%REGEXE32BIT% QUERY "HKLM\Software\Microsoft\Microsoft SDKs\NETFXSDK\4.6\WinSDK-NetFx40Tools" /v InstallationFolder')  DO SET WINSDKNETFXTOOLS_x86=%%B
if "%WINSDKNETFXTOOLS_x86%"=="" FOR /F "tokens=2* delims=	 " %%A IN ('%REGEXE32BIT% QUERY "HKLM\Software\Microsoft\Microsoft SDKs\Windows\v8.1A\WinSDK-NetFx40Tools" /v InstallationFolder') DO SET WINSDKNETFXTOOLS_x86=%%B
if "%WINSDKNETFXTOOLS_x86%"=="" FOR /F "tokens=2* delims=	 " %%A IN ('%REGEXE32BIT% QUERY "HKLM\Software\Microsoft\Microsoft SDKs\Windows\v8.0A\WinSDK-NetFx40Tools" /v InstallationFolder') DO SET WINSDKNETFXTOOLS_x86=%%B
if "%WINSDKNETFXTOOLS_x86%"=="" FOR /F "tokens=2* delims=	 " %%A IN ('%REGEXE32BIT% QUERY "HKLM\Software\Microsoft\Microsoft SDKs\Windows\v7.1\WinSDK-NetFx40Tools" /v InstallationFolder')  DO SET WINSDKNETFXTOOLS_x86=%%B
if "%WINSDKNETFXTOOLS_x86%"=="" FOR /F "tokens=2* delims=	 " %%A IN ('%REGEXE32BIT% QUERY "HKLM\Software\Microsoft\Microsoft SDKs\Windows\v7.0A\WinSDK-NetFx40Tools" /v InstallationFolder') DO SET WINSDKNETFXTOOLS_x86=%%B

set WINSDKNETFXTOOLS_x64=%WINSDKNETFXTOOLS_x86%x64\

:havesdk
set SN32="%WINSDKNETFXTOOLS_x86%sn.exe"
set SN64="%WINSDKNETFXTOOLS_x64%sn.exe"

set NGEN32=%windir%\Microsoft.NET\Framework\v4.0.30319\ngen.exe
set NGEN64=%windir%\Microsoft.NET\Framework64\v4.0.30319\ngen.exe

rem Disable strong-name validation for F# binaries built from open source that are signed with the microsoft key
%SN32% -Vr FSharp.Core,b03f5f7f11d50a3a
%SN32% -Vr FSharp.Build,b03f5f7f11d50a3a
%SN32% -Vr FSharp.Compiler.Interactive.Settings,b03f5f7f11d50a3a
%SN32% -Vr FSharp.Compiler.Hosted,b03f5f7f11d50a3a

%SN32% -Vr fsc,b03f5f7f11d50a3a
%SN32% -Vr fsi,b03f5f7f11d50a3a
%SN32% -Vr FsiAnyCPU,b03f5f7f11d50a3a

%SN32% -Vr FSharp.Compiler,b03f5f7f11d50a3a
%SN32% -Vr FSharp.Compiler.Server.Shared,b03f5f7f11d50a3a
%SN32% -Vr FSharp.Editor,b03f5f7f11d50a3a
%SN32% -Vr FSharp.LanguageService,b03f5f7f11d50a3a
%SN32% -Vr FSharp.LanguageService.Base,b03f5f7f11d50a3a
%SN32% -Vr FSharp.LanguageService.Compiler,b03f5f7f11d50a3a
%SN32% -Vr FSharp.ProjectSystem.Base,b03f5f7f11d50a3a
%SN32% -Vr FSharp.ProjectSystem.FSharp,b03f5f7f11d50a3a
%SN32% -Vr FSharp.ProjectSystem.PropertyPages,b03f5f7f11d50a3a
%SN32% -Vr FSharp.VS.FSI,b03f5f7f11d50a3a
%SN32% -Vr VisualFSharp.Unittests,b03f5f7f11d50a3a
%SN32% -Vr VisualFSharp.Salsa,b03f5f7f11d50a3a
%SN32% -Vr FSharp.Compiler.Unittests,b03f5f7f11d50a3a

if /i "%PROCESSOR_ARCHITECTURE%"=="AMD64" (
    %SN64% -Vr FSharp.Core,b03f5f7f11d50a3a
    %SN64% -Vr FSharp.Build,b03f5f7f11d50a3a
    %SN64% -Vr FSharp.Compiler.Interactive.Settings,b03f5f7f11d50a3a
    %SN64% -Vr FSharp.Compiler.Hosted,b03f5f7f11d50a3a

    %SN64% -Vr fsc,b03f5f7f11d50a3a
    %SN64% -Vr fsi,b03f5f7f11d50a3a
    %SN64% -Vr FsiAnyCPU,b03f5f7f11d50a3a

    %SN64% -Vr FSharp.Compiler,b03f5f7f11d50a3a
    %SN64% -Vr FSharp.Compiler.Server.Shared,b03f5f7f11d50a3a
    %SN64% -Vr FSharp.Editor,b03f5f7f11d50a3a
    %SN64% -Vr FSharp.LanguageService,b03f5f7f11d50a3a
    %SN64% -Vr FSharp.LanguageService.Base,b03f5f7f11d50a3a
    %SN64% -Vr FSharp.LanguageService.Compiler,b03f5f7f11d50a3a
    %SN64% -Vr FSharp.ProjectSystem.Base,b03f5f7f11d50a3a
    %SN64% -Vr FSharp.ProjectSystem.FSharp,b03f5f7f11d50a3a
    %SN64% -Vr FSharp.ProjectSystem.PropertyPages,b03f5f7f11d50a3a
    %SN64% -Vr FSharp.VS.FSI,b03f5f7f11d50a3a
    %SN64% -Vr VisualFSharp.Unittests,b03f5f7f11d50a3a
    %SN64% -Vr VisualFSharp.Salsa,b03f5f7f11d50a3a
    %SN64% -Vr FSharp.Compiler.Unittests,b03f5f7f11d50a3a
)

if /i '%1' == 'signonly' goto :eof
if /i '%1' == 'debug' set NGEN_FLAGS=/Debug

rem NGen fsc, fsi, fsiAnyCpu, and FSharp.Build.dll
if /i not "%2"=="-ngen" goto :donengen

"%NGEN32%" install "%BINDIR%\fsc.exe" %NGEN_FLAGS% /queue:1
"%NGEN32%" install "%BINDIR%\fsi.exe" %NGEN_FLAGS% /queue:1
"%NGEN32%" install "%BINDIR%\FSharp.Build.dll" %NGEN_FLAGS% /queue:1
"%NGEN32%" executeQueuedItems 1

if /i "%PROCESSOR_ARCHITECTURE%"=="AMD64" (
    "%NGEN64%" install "%BINDIR%\fsiAnyCpu.exe" %NGEN_FLAGS% /queue:1
    "%NGEN64%" install "%BINDIR%\FSharp.Build.dll" %NGEN_FLAGS% /queue:1
    "%NGEN64%" executeQueuedItems 1
)

:donengen

@if "%_echo%"=="" echo off
@rem ===========================================================================================================
@rem Copyright (c) Microsoft Corporation.  All Rights Reserved.  Licensed under the Apache License,
@rem               Version 2.0.  See License.txt in the project root for license information.
@rem ===========================================================================================================

if /i "%1" == "debug" goto :ok
if /i "%1" == "release" goto :ok
if /i "%1" == "signonly" goto :ok

echo adding required strong name verification skipping, and NGening built binaries
echo Usage:
echo    update.cmd debug   [-ngen]
echo    update.cmd release [-ngen]
exit /b 1

:ok

set BINDIR=%~dp0..\%1\net40\bin

if exist "%WindowsSDK_ExecutablePath_x64%" set WINSDKNETFXTOOLS_X64=%WindowsSDK_ExecutablePath_x64%
if exist "%WindowsSDK_ExecutablePath_x86%" set WINSDKNETFXTOOLS_X86=%WindowsSDK_ExecutablePath_x86%

if not "%WindowsSDK_ExecutablePath_x86%" == "" goto :havesdk

set REGEXE32BIT=reg.exe
if not "%OSARCH%"=="x86" set REGEXE32BIT=%WINDIR%\syswow64\reg.exe

                                FOR /F "tokens=2* delims=	 " %%A IN ('%REGEXE32BIT% QUERY "HKLM\Software\Microsoft\Microsoft SDKs\NETFXSDK\4.6.2\WinSDK-NetFx40Tools" /v InstallationFolder')  DO SET WINSDKNETFXTOOLS_x86=%%B
if "%WINSDKNETFXTOOLS_x86%"=="" FOR /F "tokens=2* delims=	 " %%A IN ('%REGEXE32BIT% QUERY "HKLM\Software\Microsoft\Microsoft SDKs\NETFXSDK\4.6.1\WinSDK-NetFx40Tools" /v InstallationFolder')  DO SET WINSDKNETFXTOOLS_x86=%%B
if "%WINSDKNETFXTOOLS_x86%"=="" FOR /F "tokens=2* delims=	 " %%A IN ('%REGEXE32BIT% QUERY "HKLM\Software\Microsoft\Microsoft SDKs\NETFXSDK\4.6\WinSDK-NetFx40Tools" /v InstallationFolder')  DO SET WINSDKNETFXTOOLS_x86=%%B
if "%WINSDKNETFXTOOLS_x86%"=="" FOR /F "tokens=2* delims=	 " %%A IN ('%REGEXE32BIT% QUERY "HKLM\Software\Microsoft\Microsoft SDKs\Windows\v8.1A\WinSDK-NetFx40Tools" /v InstallationFolder') DO SET WINSDKNETFXTOOLS_x86=%%B
if "%WINSDKNETFXTOOLS_x86%"=="" FOR /F "tokens=2* delims=	 " %%A IN ('%REGEXE32BIT% QUERY "HKLM\Software\Microsoft\Microsoft SDKs\Windows\v8.0A\WinSDK-NetFx40Tools" /v InstallationFolder') DO SET WINSDKNETFXTOOLS_x86=%%B
if "%WINSDKNETFXTOOLS_x86%"=="" FOR /F "tokens=2* delims=	 " %%A IN ('%REGEXE32BIT% QUERY "HKLM\Software\Microsoft\Microsoft SDKs\Windows\v7.1\WinSDK-NetFx40Tools" /v InstallationFolder')  DO SET WINSDKNETFXTOOLS_x86=%%B
if "%WINSDKNETFXTOOLS_x86%"=="" FOR /F "tokens=2* delims=	 " %%A IN ('%REGEXE32BIT% QUERY "HKLM\Software\Microsoft\Microsoft SDKs\Windows\v7.0A\WinSDK-NetFx40Tools" /v InstallationFolder') DO SET WINSDKNETFXTOOLS_x86=%%B

set WINSDKNETFXTOOLS_x64=%WINSDKNETFXTOOLS_x86%x64\

:havesdk
set SN32="%WINSDKNETFXTOOLS_x86%sn.exe"
set SN64="%WINSDKNETFXTOOLS_x64%sn.exe"

set NGEN32=%windir%\Microsoft.NET\Framework\v4.0.30319\ngen.exe
set NGEN64=%windir%\Microsoft.NET\Framework64\v4.0.30319\ngen.exe

rem Disable strong-name validation for F# binaries built from open source that are signed with the microsoft key
%SN32% -Vr FSharp.Core,b03f5f7f11d50a3a
%SN32% -Vr FSharp.Build,b03f5f7f11d50a3a
%SN32% -Vr FSharp.Compiler.Interactive.Settings,b03f5f7f11d50a3a
%SN32% -Vr FSharp.Compiler.Hosted,b03f5f7f11d50a3a

%SN32% -Vr fsc,b03f5f7f11d50a3a
%SN32% -Vr fsi,b03f5f7f11d50a3a
%SN32% -Vr FsiAnyCPU,b03f5f7f11d50a3a

%SN32% -Vr FSharp.Compiler,b03f5f7f11d50a3a
%SN32% -Vr FSharp.Compiler.Server.Shared,b03f5f7f11d50a3a
%SN32% -Vr FSharp.Editor,b03f5f7f11d50a3a
%SN32% -Vr FSharp.LanguageService,b03f5f7f11d50a3a
%SN32% -Vr FSharp.LanguageService.Base,b03f5f7f11d50a3a
%SN32% -Vr FSharp.LanguageService.Compiler,b03f5f7f11d50a3a
%SN32% -Vr FSharp.ProjectSystem.Base,b03f5f7f11d50a3a
%SN32% -Vr FSharp.ProjectSystem.FSharp,b03f5f7f11d50a3a
%SN32% -Vr FSharp.ProjectSystem.PropertyPages,b03f5f7f11d50a3a
%SN32% -Vr FSharp.VS.FSI,b03f5f7f11d50a3a
%SN32% -Vr VisualFSharp.Unittests,b03f5f7f11d50a3a
%SN32% -Vr VisualFSharp.Salsa,b03f5f7f11d50a3a
%SN32% -Vr FSharp.Compiler.Unittests,b03f5f7f11d50a3a

if /i "%PROCESSOR_ARCHITECTURE%"=="AMD64" (
    %SN64% -Vr FSharp.Core,b03f5f7f11d50a3a
    %SN64% -Vr FSharp.Build,b03f5f7f11d50a3a
    %SN64% -Vr FSharp.Compiler.Interactive.Settings,b03f5f7f11d50a3a
    %SN64% -Vr FSharp.Compiler.Hosted,b03f5f7f11d50a3a

    %SN64% -Vr fsc,b03f5f7f11d50a3a
    %SN64% -Vr fsi,b03f5f7f11d50a3a
    %SN64% -Vr FsiAnyCPU,b03f5f7f11d50a3a

    %SN64% -Vr FSharp.Compiler,b03f5f7f11d50a3a
    %SN64% -Vr FSharp.Compiler.Server.Shared,b03f5f7f11d50a3a
    %SN64% -Vr FSharp.Editor,b03f5f7f11d50a3a
    %SN64% -Vr FSharp.LanguageService,b03f5f7f11d50a3a
    %SN64% -Vr FSharp.LanguageService.Base,b03f5f7f11d50a3a
    %SN64% -Vr FSharp.LanguageService.Compiler,b03f5f7f11d50a3a
    %SN64% -Vr FSharp.ProjectSystem.Base,b03f5f7f11d50a3a
    %SN64% -Vr FSharp.ProjectSystem.FSharp,b03f5f7f11d50a3a
    %SN64% -Vr FSharp.ProjectSystem.PropertyPages,b03f5f7f11d50a3a
    %SN64% -Vr FSharp.VS.FSI,b03f5f7f11d50a3a
    %SN64% -Vr VisualFSharp.Unittests,b03f5f7f11d50a3a
    %SN64% -Vr VisualFSharp.Salsa,b03f5f7f11d50a3a
    %SN64% -Vr FSharp.Compiler.Unittests,b03f5f7f11d50a3a
)

if /i '%1' == 'signonly' goto :eof
if /i '%1' == 'debug' set NGEN_FLAGS=/Debug

rem NGen fsc, fsi, fsiAnyCpu, and FSharp.Build.dll
if /i not "%2"=="-ngen" goto :donengen

"%NGEN32%" install "%BINDIR%\fsc.exe" %NGEN_FLAGS% /queue:1
"%NGEN32%" install "%BINDIR%\fsi.exe" %NGEN_FLAGS% /queue:1
"%NGEN32%" install "%BINDIR%\FSharp.Build.dll" %NGEN_FLAGS% /queue:1
"%NGEN32%" executeQueuedItems 1

if /i "%PROCESSOR_ARCHITECTURE%"=="AMD64" (
    "%NGEN64%" install "%BINDIR%\fsiAnyCpu.exe" %NGEN_FLAGS% /queue:1
    "%NGEN64%" install "%BINDIR%\FSharp.Build.dll" %NGEN_FLAGS% /queue:1
    "%NGEN64%" executeQueuedItems 1
)

:donengen

Update update.cmd to support win sdk 10

Update update.cmd to support win sdk 10


@REM ----------------------------------------------------------------------------
@REM Copyright 2001-2004 The Apache Software Foundation.
@REM
@REM Licensed under the Apache License, Version 2.0 (the "License");
@REM you may not use this file except in compliance with the License.
@REM You may obtain a copy of the License at
@REM
@REM      http://www.apache.org/licenses/LICENSE-2.0
@REM
@REM Unless required by applicable law or agreed to in writing, software
@REM distributed under the License is distributed on an "AS IS" BASIS,
@REM WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@REM See the License for the specific language governing permissions and
@REM limitations under the License.
@REM ----------------------------------------------------------------------------
@REM

@REM ----------------------------------------------------------------------------
@REM Maven2 Start Up Batch script
@REM
@REM Required ENV vars:
@REM JAVA_HOME - location of a JDK home dir
@REM
@REM Optional ENV vars
@REM M2_HOME - location of maven2's installed home dir
@REM MAVEN_BATCH_ECHO - set to 'on' to enable the echoing of the batch commands
@REM MAVEN_BATCH_PAUSE - set to 'on' to wait for a key stroke before ending
@REM MAVEN_OPTS - parameters passed to the Java VM when running Maven
@REM     e.g. to debug Maven itself, use
@REM set MAVEN_OPTS=-Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000
@REM ----------------------------------------------------------------------------

@REM Begin all REM lines with '@' in case MAVEN_BATCH_ECHO is 'on'
@echo off
@REM enable echoing my setting MAVEN_BATCH_ECHO to 'on'
@if "%MAVEN_BATCH_ECHO%" == "on"  echo %MAVEN_BATCH_ECHO%

@REM Execute a user defined script before this one
if exist "%HOME%\mavenrc_pre.bat" call "%HOME%\mavenrc_pre.bat"

@REM set local scope for the variables with windows NT shell
if "%OS%"=="Windows_NT" @setlocal

@REM ==== START VALIDATION ====
if not "%JAVA_HOME%" == "" goto OkJHome

echo.
echo ERROR: JAVA_HOME not found in your environment.
echo Please set the JAVA_HOME variable in your environment to match the
echo location of your Java installation
echo.
goto end

:OkJHome
if exist "%JAVA_HOME%\bin\java.exe" goto chkMHome

echo.
echo ERROR: JAVA_HOME is set to an invalid directory.
echo JAVA_HOME = %JAVA_HOME%
echo Please set the JAVA_HOME variable in your environment to match the
echo location of your Java installation
echo.
goto end

:chkMHome
if not "%M2_HOME%"=="" goto valMHome

if "%OS%"=="Windows_NT" SET M2_HOME=%~dps0\..
if not "%M2_HOME%"=="" goto valMHome

echo.
echo ERROR: M2_HOME not found in your environment.
echo Please set the M2_HOME variable in your environment to match the
echo location of the Maven installation
echo.
goto end

:valMHome
if exist "%M2_HOME%\bin\m2.bat" goto init

echo.
echo ERROR: M2_HOME is set to an invalid directory.
echo M2_HOME = %M2_HOME%
echo Please set the M2_HOME variable in your environment to match the
echo location of the Maven installation
echo.
goto end
@REM ==== END VALIDATION ====

:init
@REM Decide how to startup depending on the version of windows

@REM -- Win98ME
if NOT "%OS%"=="Windows_NT" goto Win9xArg

@REM -- 4NT shell
if "%eval[2+2]" == "4" goto 4NTArgs

@REM -- Regular WinNT shell
set MAVEN_CMD_LINE_ARGS=%*
goto endInit

@REM The 4NT Shell from jp software
:4NTArgs
set MAVEN_CMD_LINE_ARGS=%$
goto endInit

:Win9xArg
@REM Slurp the command line arguments.  This loop allows for an unlimited number
@REM of agruments (up to the command line limit, anyway).
set MAVEN_CMD_LINE_ARGS=
:Win9xApp
if %1a==a goto endInit
set MAVEN_CMD_LINE_ARGS=%MAVEN_CMD_LINE_ARGS% %1
shift
goto Win9xApp

@REM Reaching here means variables are defined and arguments have been captured
:endInit
if "%MAVEN_OPTS%"=="" SET MAVEN_OPTS="-Xmx256m"
SET MAVEN_JAVA_EXE="%JAVA_HOME%\bin\java.exe"

@REM Start MAVEN2
%MAVEN_JAVA_EXE% %MAVEN_OPTS% -classpath %M2_HOME%\core\boot\classworlds-*.jar "-Dclassworlds.conf=%M2_HOME%\bin\m2.conf" "-Dmaven.home=%M2_HOME%" org.codehaus.classworlds.Launcher %MAVEN_CMD_LINE_ARGS%
goto :end

:end
@REM set local scope for the variables with windows NT shell
if "%OS%"=="Windows_NT" goto endNT

@REM For old DOS remove the set variables from ENV - we assume they were not set
@REM before we started - at least we don't leave any baggage around
set MAVEN_JAVA_EXE=
set MAVEN_CMD_LINE_ARGS=
goto postExec

:endNT
@endlocal

:postExec
if exist "%HOME%\mavenrc_post.bat" call "%HOME%\mavenrc_post.bat"
@REM pause the batch file if MAVEN_BATCH_PAUSE is set to 'on'
if "%MAVEN_BATCH_PAUSE%" == "on" pause

@REM ----------------------------------------------------------------------------
@REM Copyright 2001-2004 The Apache Software Foundation.
@REM
@REM Licensed under the Apache License, Version 2.0 (the "License");
@REM you may not use this file except in compliance with the License.
@REM You may obtain a copy of the License at
@REM
@REM      http://www.apache.org/licenses/LICENSE-2.0
@REM
@REM Unless required by applicable law or agreed to in writing, software
@REM distributed under the License is distributed on an "AS IS" BASIS,
@REM WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@REM See the License for the specific language governing permissions and
@REM limitations under the License.
@REM ----------------------------------------------------------------------------
@REM

@REM ----------------------------------------------------------------------------
@REM Maven2 Start Up Batch script
@REM
@REM Required ENV vars:
@REM JAVA_HOME - location of a JDK home dir
@REM
@REM Optional ENV vars
@REM M2_HOME - location of maven2's installed home dir
@REM MAVEN_BATCH_ECHO - set to 'on' to enable the echoing of the batch commands
@REM MAVEN_BATCH_PAUSE - set to 'on' to wait for a key stroke before ending
@REM MAVEN_OPTS - parameters passed to the Java VM when running Maven
@REM     e.g. to debug Maven itself, use
@REM set MAVEN_OPTS=-Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000
@REM ----------------------------------------------------------------------------

@REM Begin all REM lines with '@' in case MAVEN_BATCH_ECHO is 'on'
@echo off
@REM enable echoing my setting MAVEN_BATCH_ECHO to 'on'
@if "%MAVEN_BATCH_ECHO%" == "on"  echo %MAVEN_BATCH_ECHO%

@REM Execute a user defined script before this one
if exist "%HOME%\mavenrc_pre.bat" call "%HOME%\mavenrc_pre.bat"

@REM set local scope for the variables with windows NT shell
if "%OS%"=="Windows_NT" @setlocal

set ERROR_CODE=0

@REM ==== START VALIDATION ====
if not "%JAVA_HOME%" == "" goto OkJHome

echo.
echo ERROR: JAVA_HOME not found in your environment.
echo Please set the JAVA_HOME variable in your environment to match the
echo location of your Java installation
echo.
set ERROR_CODE=1
goto end

:OkJHome
if exist "%JAVA_HOME%\bin\java.exe" goto chkMHome

echo.
echo ERROR: JAVA_HOME is set to an invalid directory.
echo JAVA_HOME = %JAVA_HOME%
echo Please set the JAVA_HOME variable in your environment to match the
echo location of your Java installation
echo.
set ERROR_CODE=1
goto end

:chkMHome
if not "%M2_HOME%"=="" goto valMHome

if "%OS%"=="Windows_NT" SET M2_HOME=%~dps0\..
if not "%M2_HOME%"=="" goto valMHome

echo.
echo ERROR: M2_HOME not found in your environment.
echo Please set the M2_HOME variable in your environment to match the
echo location of the Maven installation
echo.
set ERROR_CODE=1
goto end

:valMHome
if exist "%M2_HOME%\bin\m2.bat" goto init

echo.
echo ERROR: M2_HOME is set to an invalid directory.
echo M2_HOME = %M2_HOME%
echo Please set the M2_HOME variable in your environment to match the
echo location of the Maven installation
echo.
set ERROR_CODE=1
goto end
@REM ==== END VALIDATION ====

:init
@REM Decide how to startup depending on the version of windows

@REM -- Win98ME
if NOT "%OS%"=="Windows_NT" goto Win9xArg

@REM -- 4NT shell
if "%eval[2+2]" == "4" goto 4NTArgs

@REM -- Regular WinNT shell
set MAVEN_CMD_LINE_ARGS=%*
goto endInit

@REM The 4NT Shell from jp software
:4NTArgs
set MAVEN_CMD_LINE_ARGS=%$
goto endInit

:Win9xArg
@REM Slurp the command line arguments.  This loop allows for an unlimited number
@REM of agruments (up to the command line limit, anyway).
set MAVEN_CMD_LINE_ARGS=
:Win9xApp
if %1a==a goto endInit
set MAVEN_CMD_LINE_ARGS=%MAVEN_CMD_LINE_ARGS% %1
shift
goto Win9xApp

@REM Reaching here means variables are defined and arguments have been captured
:endInit
if "%MAVEN_OPTS%"=="" SET MAVEN_OPTS="-Xmx256m"
SET MAVEN_JAVA_EXE="%JAVA_HOME%\bin\java.exe"

@REM Start MAVEN2
%MAVEN_JAVA_EXE% %MAVEN_OPTS% -classpath %M2_HOME%\core\boot\classworlds-*.jar "-Dclassworlds.conf=%M2_HOME%\bin\m2.conf" "-Dmaven.home=%M2_HOME%" org.codehaus.classworlds.Launcher %MAVEN_CMD_LINE_ARGS%
goto end

:error
if "%OS%"=="Windows_NT" @endlocal
set ERROR_CODE=1

:end
@REM set local scope for the variables with windows NT shell
if "%OS%"=="Windows_NT" goto endNT

@REM For old DOS remove the set variables from ENV - we assume they were not set
@REM before we started - at least we don't leave any baggage around
set MAVEN_JAVA_EXE=
set MAVEN_CMD_LINE_ARGS=
goto postExec

:endNT
@endlocal

:postExec
if exist "%HOME%\mavenrc_post.bat" call "%HOME%\mavenrc_post.bat"
@REM pause the batch file if MAVEN_BATCH_PAUSE is set to 'on'
if "%MAVEN_BATCH_PAUSE%" == "on" pause

exit /B %ERROR_CODE%

align error handling with that of m1

align error handling with that of m1

git-svn-id: 2c527eb49caa05e19d6b2be874bf74fa9d7ea670@168214 13f79535-47bb-0310-9956-ffa450edef68


ECHO OFF
CLS
ECHO Processing all examples
ECHO.
ECHO  [01/28] A simple line chart
 php -q %~dp0Example1.php
ECHO  [02/28] A cubic curve graph
 php -q %~dp0Example2.php
ECHO  [03/28] An overlayed bar graph
 php -q %~dp0Example3.php
ECHO  [04/28] Showing how to draw area
 php -q %~dp0Example4.php
ECHO  [05/28] A limits graph
 php -q %~dp0Example5.php
ECHO  [06/28] A simple filled line graph
 php -q %~dp0Example6.php
ECHO  [07/28] A filled cubic curve graph
 php -q %~dp0Example7.php
ECHO  [08/28] A radar graph
 php -q %~dp0Example8.php
ECHO  [09/28] Showing how to use labels
 php -q %~dp0Example9.php
ECHO  [10/28] A 3D exploded pie graph
 php -q %~dp0Example10.php
ECHO  [11/28] A true bar graph
 php -q %~dp0Example12.php
ECHO  [12/28] A 2D exploded pie graph
 php -q %~dp0Example13.php
ECHO  [13/28] A smooth flat pie graph
 php -q %~dp0Example14.php
ECHO  [14/28] Playing with line style and pictures inclusion
 php -q %~dp0Example15.php
ECHO  [15/28] Importing CSV data
 php -q %~dp0Example16.php
ECHO  [16/28] Playing with axis
 php -q %~dp0Example17.php
ECHO  [17/28] Missing values
 php -q %~dp0Example18.php
ECHO  [18/28] Error reporting
 php -q %~dp0Example19.php
ECHO  [19/28] Stacked bar graph
 php -q %~dp0Example20.php
ECHO  [20/28] Playing with background
 php -q %~dp0Example21.php
ECHO  [21/28] Customizing plot charts
 php -q %~dp0Example22.php
ECHO  [22/28] Playing with background - Bis
 php -q %~dp0Example23.php
ECHO  [23/28] X Versus Y chart
 php -q %~dp0Example24.php
ECHO  [24/28] Using shadows
 php -q %~dp0Example25.php
ECHO  [25/28] Two Y axis / shadow demonstration
 php -q %~dp0Example26.php
ECHO  [26/28] Naked and easy!
 php -q %~dp0Naked.php
ECHO  [27/28] Let's go fast, draw small!
 php -q %~dp0SmallGraph.php
ECHO  [28/28] A Small stacked chart
 php -q %~dp0SmallStacked.php
ECHO.
ECHO Rendering complete!
PAUSE

echo "Processing all examples"
echo " [01/28] A simple line chart"
php -q %~dp0Example1.php
echo " [02/28] A cubic curve graph"
php -q %~dp0Example2.php
echo " [03/28] An overlayed bar graph"
php -q %~dp0Example3.php
echo " [04/28] Showing how to draw area"
php -q %~dp0Example4.php
echo " [05/28] A limits graph"
php -q %~dp0Example5.php
echo " [06/28] A simple filled line graph"
php -q %~dp0Example6.php
echo " [07/28] A filled cubic curve graph"
php -q %~dp0Example7.php
echo " [08/28] A radar graph"
php -q %~dp0Example8.php
echo " [09/28] Showing how to use labels"
php -q %~dp0Example9.php
echo " [10/28] A 3D exploded pie graph"
php -q %~dp0Example10.php
echo " [11/28] A true bar graph"
php -q %~dp0Example12.php
echo " [12/28] A 2D exploded pie graph"
php -q %~dp0Example13.php
echo " [13/28] A smooth flat pie graph"
php -q %~dp0Example14.php
echo " [14/28] Playing with line style and pictures inclusion"
php -q %~dp0Example15.php
echo " [15/28] Importing CSV data"
php -q %~dp0Example16.php
echo " [16/28] Playing with axis"
php -q %~dp0Example17.php
echo " [17/28] Missing values"
php -q %~dp0Example18.php
echo " [18/28] Error reporting"
php -q %~dp0Example19.php
echo " [19/28] Stacked bar graph"
php -q %~dp0Example20.php
echo " [20/28] Playing with background"
php -q %~dp0Example21.php
echo " [21/28] Customizing plot charts"
php -q %~dp0Example22.php
echo " [22/28] Playing with background - Bis"
php -q %~dp0Example23.php
echo " [23/28] X Versus Y chart"
php -q %~dp0Example24.php
echo " [24/28] Using shadows"
php -q %~dp0Example25.php
echo " [25/28] Two Y axis / shadow demonstration"
php -q %~dp0Example26.php
echo " [26/28] Naked and easy!"
php -q %~dp0Naked.php
echo " [27/28] Let's go fast, draw small!"
php -q %~dp0SmallGraph.php
echo " [28/28] A Small stacked chart"
php -q %~dp0SmallStacked.php
echo "Rendering complete!"

convert to shell scropt

convert to shell scropt


Rem Simple Batch File to copy ring DLL files and libraries to the bin folder
Rem 2016-2020, Mahmoud Fayed <msfclipper@yahoo.com>

cd ..

copy lib\*.dll bin
copy extensions\libdepwin\allegro5.2.4\bin\*.dll bin
copy extensions\libdepwin\freeglut\bin\*.dll bin
copy extensions\libdepwin\glew\bin\Release\Win32\*.dll bin
copy extensions\libdepwin\libcurl\bin\*.dll bin
copy extensions\libdepwin\libsdl\SDL2_vc\lib\x86\*.dll bin
copy extensions\libdepwin\libsdl\SDL2_image\lib\x86\*.dll bin
copy extensions\libdepwin\libsdl\SDL2_mixer\lib\x86\*.dll bin
copy extensions\libdepwin\libsdl\SDL2_net\lib\x86\*.dll bin
copy extensions\libdepwin\libsdl\SDL2_ttf\lib\x86\*.dll bin
copy extensions\libdepwin\libuv\*.dll bin
copy extensions\libdepwin\mysql\lib\*.dll bin
copy extensions\libdepwin\openssl\bin\*.dll bin
copy extensions\libdepwin\pgsql\lib\*.dll bin
copy extensions\libdepwin\raylib2.5\bin\*.dll bin
copy C:\Qt\Qt5.12.6\5.12.6\msvc2017\bin\*.dll bin
cd bin
xcopy C:\Qt\Qt5.12.6\5.12.6\msvc2017\plugins . /E /H /C /R /Q /Y
md qml
xcopy C:\Qt\Qt5.12.6\5.12.6\msvc2017\qml qml /E /H /C /R /Q /Y
md translations
xcopy C:\Qt\Qt5.12.6\5.12.6\msvc2017\translations translations /E /H /C /R /Q /Y
xcopy C:\Qt\Qt5.12.6\5.12.6\msvc2017\resources . /E /H /C /R /Q /Y
rem Delete Allegro Dlls (Debug Version)
del allegro*debug-5.2.dll

Rem Simple Batch File to copy ring DLL files and libraries to the bin folder
Rem 2016-2020, Mahmoud Fayed <msfclipper@yahoo.com>

cd ..

copy lib\*.dll bin
copy extensions\libdepwin\allegro5.2.4\bin\*.dll bin
copy extensions\libdepwin\freeglut\bin\*.dll bin
copy extensions\libdepwin\glew\bin\Release\Win32\*.dll bin
copy extensions\libdepwin\libcurl\bin\*.dll bin
copy extensions\libdepwin\libsdl\SDL2_vc\lib\x86\*.dll bin
copy extensions\libdepwin\libsdl\SDL2_image\lib\x86\*.dll bin
copy extensions\libdepwin\libsdl\SDL2_mixer\lib\x86\*.dll bin
copy extensions\libdepwin\libsdl\SDL2_net\lib\x86\*.dll bin
copy extensions\libdepwin\libsdl\SDL2_ttf\lib\x86\*.dll bin
copy extensions\libdepwin\libuv\*.dll bin
copy extensions\libdepwin\mysql\lib\*.dll bin
copy extensions\libdepwin\openssl\bin\*.dll bin
copy extensions\libdepwin\pgsql\lib\*.dll bin
copy extensions\libdepwin\raylib2.5\bin\*.dll bin
copy C:\Qt\5.15.0\msvc2019\bin\*.dll bin
copy C:\Qt\5.15.0\msvc2019\bin\QtWebEngineProcess.exe bin
cd bin
xcopy C:\Qt\5.15.0\msvc2019\plugins . /E /H /C /R /Q /Y
md qml
xcopy C:\Qt\5.15.0\msvc2019\qml qml /E /H /C /R /Q /Y
md translations
xcopy C:\Qt\5.15.0\msvc2019\translations translations /E /H /C /R /Q /Y
xcopy C:\Qt\5.15.0\msvc2019\resources . /E /H /C /R /Q /Y
rem Delete Allegro Dlls (Debug Version)
del allegro*debug-5.2.dll

Update bin/install.bat - Support Qt 5.15.0


@echo off

:: Values to change include VERSION and SUBLOC, both below.

setlocal
SET X86PROGRAMFILES=%ProgramFiles%
SET X86COMMONFILES=%CommonProgramFiles%

if "%PROCESSOR_ARCHITECTURE%" == "x86" GOTO SET_LINKFILES
SET X86PROGRAMFILES=%ProgramFiles(x86)%
SET X86COMMONFILES=%CommonProgramFiles(x86)%

:SET_LINKFILES
:: echo X86PROGRAMFILES=%X86PROGRAMFILES%
:: echo X86COMMONFILES=%X86COMMONFILES%
::
:: When you reference PG server's libpq related dlls, set the
:: version to the variable PGVERSION (default 9.3) and call
:: this batch file.
::
if "%PGVERSION%" == "" SET PGVERSION=9.3
::
:: When you placed libpq related dlls in the folder other than
:: the default one, set the folder name to the variable LIBPQBINDIR
:: and call this batch file.
::
if "%LIBPQBINDIR%" == "" (
	SET LINKFILES="%X86PROGRAMFILES%\PostgreSQL\%PGVERSION%\bin"
 ) else (
	SET LINKFILES="%LIBPQBINDIR%"
 )

if NOT "%1"=="" (
       SET VERSION="%1"
       GOTO GOT_VERSION
)

::
::	The ProductCode History
::	    ProductCode must be changed in case of major upgrade
::
SET PRODUCTID["09.02.0100"]="CFAAF24D-A7E6-4D98-BE6F-39F62799F317"
SET PRODUCTID["09.03.0100"]="E3527FA5-9C2B-4550-A59B-9534A78950F4"
SET PRODUCTID["09.03.0200"]="E3527FA5-9C2B-4550-A59B-9534A78950F4"
SET PRODUCTID["09.03.0210"]="E3527FA5-9C2B-4550-A59B-9534A78950F4"

:: The full version number of the build in XXXX.XX.XX format
SET VERSION="09.03.0210"
echo.
echo Version not specified - defaulting to %VERSION%
echo.

:GOT_VERSION

:: The subdirectory to install into
SET SUBLOC=%VERSION:~1,2%%VERSION:~4,2%

CALL SET PRODUCTCODE=%%PRODUCTID[%VERSION%]%%
echo PRODUCTCODE=%PRODUCTCODE%

echo.
echo Building psqlODBC/%SUBLOC% merge module...

candle -nologo -dVERSION=%VERSION% -dSUBLOC=%SUBLOC% -dLINKFILES=%LINKFILES% psqlodbcm.wxs
IF ERRORLEVEL 1 GOTO ERR_HANDLER

light -nologo -out psqlodbc.msm psqlodbcm.wixobj
IF ERRORLEVEL 1 GOTO ERR_HANDLER

echo.
echo Building psqlODBC installer database...

::SET PROGRAMCOM="%X86COMMONFILES%/Merge Modules"
candle -nologo -dVERSION=%VERSION% -dSUBLOC=%SUBLOC% -dPRODUCTCODE="%PRODUCTCODE%" psqlodbc.wxs
IF ERRORLEVEL 1 GOTO ERR_HANDLER

light -nologo -ext WixUIExtension -cultures:en-us psqlodbc.wixobj
IF ERRORLEVEL 1 GOTO ERR_HANDLER

echo.
echo Done!
GOTO EXIT

:ERR_HANDLER
echo.
echo Aborting build!
GOTO EXIT

:EXIT
endlocal

@echo off

:: Values to change include VERSION and SUBLOC, both below.

setlocal
SET X86PROGRAMFILES=%ProgramFiles%
SET X86COMMONFILES=%CommonProgramFiles%

if "%PROCESSOR_ARCHITECTURE%" == "x86" GOTO SET_LINKFILES
SET X86PROGRAMFILES=%ProgramFiles(x86)%
SET X86COMMONFILES=%CommonProgramFiles(x86)%

:SET_LINKFILES
:: echo X86PROGRAMFILES=%X86PROGRAMFILES%
:: echo X86COMMONFILES=%X86COMMONFILES%
::
:: When you reference PG server's libpq related dlls, set the
:: version to the variable PGVERSION (default 9.3) and call
:: this batch file.
::
if "%PGVERSION%" == "" SET PGVERSION=9.3
::
:: When you placed libpq related dlls in the folder other than
:: the default one, set the folder name to the variable LIBPQBINDIR
:: and call this batch file.
::
if "%LIBPQBINDIR%" == "" (
	SET LINKFILES="%X86PROGRAMFILES%\PostgreSQL\%PGVERSION%\bin"
 ) else (
	SET LINKFILES="%LIBPQBINDIR%"
 )

if NOT "%1"=="" (
       SET VERSION="%1"
       GOTO GOT_VERSION
)

::
::	The ProductCode History
::	    ProductCode must be changed in case of major upgrade
::
SET PRODUCTID["09.02.0100"]="CFAAF24D-A7E6-4D98-BE6F-39F62799F317"
SET PRODUCTID["09.03.0100"]="E3527FA5-9C2B-4550-A59B-9534A78950F4"
SET PRODUCTID["09.03.0200"]="E3527FA5-9C2B-4550-A59B-9534A78950F4"
SET PRODUCTID["09.03.0210"]="E3527FA5-9C2B-4550-A59B-9534A78950F4"

:: The full version number of the build in XXXX.XX.XX format
SET VERSION="09.03.0210"
echo.
echo Version not specified - defaulting to %VERSION%
echo.

:GOT_VERSION

:: The subdirectory to install into
SET SUBLOC=%VERSION:~1,2%%VERSION:~4,2%

CALL SET PRODUCTCODE=%%PRODUCTID[%VERSION%]%%
echo PRODUCTCODE=%PRODUCTCODE%

echo.
echo Building psqlODBC/%SUBLOC% merge module...

candle -nologo -dVERSION=%VERSION% -dSUBLOC=%SUBLOC% -dLINKFILES=%LINKFILES% psqlodbcm.wxs
IF ERRORLEVEL 1 GOTO ERR_HANDLER

light -nologo -out psqlodbc.msm psqlodbcm.wixobj
IF ERRORLEVEL 1 GOTO ERR_HANDLER

echo.
echo Building psqlODBC installer database...

::SET PROGRAMCOM="%X86COMMONFILES%/Merge Modules"
candle -nologo -dVERSION=%VERSION% -dSUBLOC=%SUBLOC% -dPRODUCTCODE="%PRODUCTCODE%" psqlodbc.wxs
IF ERRORLEVEL 1 GOTO ERR_HANDLER

light -nologo -ext WixUIExtension -cultures:en-us psqlodbc.wixobj -out prestogres-odbc.msi
IF ERRORLEVEL 1 GOTO ERR_HANDLER

echo.
echo Done!
GOTO EXIT

:ERR_HANDLER
echo.
echo Aborting build!
GOTO EXIT

:EXIT
endlocal

change final package file name to prestogres-odbc.msi


@if "%DEBUG%" == "" @echo off
@rem ##########################################################################
@rem
@rem  fopdf script for Windows
@rem
@rem  WARNING: This script has not yet been tested!
@rem
@rem ##########################################################################

if "%OS%"=="Windows_NT" setlocal

@rem Store full-qualified drive + path of this script
set PRG_DIR=%~dps0
if "%PRG_DIR%" == "" set PRG_DIR=.

set GRADLEW_CMD=%PRG_DIR%gradlew
set FOPDF_DIR=%PRG_DIR%build\fopdf
set FOPDF_CMD=%FOPDF_DIR%\bin\fopdf.bat

set DOCBOOK_DIR=%FOPDF_DIR%\docbook
set DOCBOOK_XSL_DIR=%FOPDF_DIR%\docbook-xsl
set XSLTHL_CONFIG_URI=file:///%DOCBOOK_XSL_DIR%\xslthl-config.xml

:init
set SOURCE_FILE=
set TYPE=pdf
@rem Process first argument
if %1a==a goto endInit
@rem Store fully-qualified drive+path+name+extension of first argument
set SOURCE_FILE=%~f1
@rem Store fully-qualified drive+path+name of first argument
set SOURCE_ROOTNAME=%~dpn1
shift
@rem Process second argument
if %1a==a goto endInit
set TYPE=%1
shift
:endInit

if "%SOURCE_FILE%" == "" (
  echo .
  echo You must specify a DocBook XML source file as the first command argument
  echo .
  goto fail
)

:install
if exist "%FOPDF_CMD%" goto endInstall
echo .
echo Initializing application...
"%GRADLEW_CMD%" -q -u installApp
if not "%ERRORLEVEL%"=="0" goto fail
echo Application initialized!
echo .
:endInstall

SETLOCAL ENABLEDELAYEDEXPANSION

@rem Add file protocol
set DOCBOOK_DIR_PARAM=file:///%DOCBOOK_DIR%
@rem replacing \ with /
set DOCBOOK_DIR_PARAM=!DOCBOOK_DIR_PARAM:\=/!
set XSLTHL_CONFIG_URI=!XSLTHL_CONFIG_URI:\=/!

if "%TYPE%" == "pdf" (
  set OUTPUT_PDF_FILE="%SOURCE_ROOTNAME%.pdf"
  %FOPDF_CMD% -q -catalog -c "%DOCBOOK_XSL_DIR%\fop-config.xml" -xml "%SOURCE_FILE%" -xsl "%DOCBOOK_XSL_DIR%\fo-pdf.xsl" -pdf !OUTPUT_PDF_FILE! -param highlight.xslhl.config "%XSLTHL_CONFIG_URI%" -param admon.graphics.path "%DOCBOOK_DIR_PARAM%/images/" -param callout.graphics.path "%DOCBOOK_DIR_PARAM%/images/callouts/"
  if not "%ERRORLEVEL%"=="0" goto fail else goto mainEnd
)

if "%TYPE%" == "fo" (
  set OUTPUT_FO_FILE="%SOURCE_ROOTNAME%.fo"
  %FOPDF_CMD% -q -catalog -c "%DOCBOOK_XSL_DIR%\fop-config.xml" -xml "%SOURCE_FILE%" -xsl "%DOCBOOK_XSL_DIR%\fo-pdf.xsl" -foout !OUTPUT_FO_FILE! -param highlight.xslhl.config "%XSLTHL_CONFIG_URI%" -param admon.graphics.path "%DOCBOOK_DIR_PARAM%/images/" -param callout.graphics.path "%DOCBOOK_DIR_PARAM%/images/callouts/"
  if not "%ERRORLEVEL%"=="0" goto fail else goto mainEnd
)

:fail
exit /b 1

:mainEnd
if "%OS%"=="Windows_NT" endlocal

@if "%DEBUG%" == "" @echo off
@rem ##########################################################################
@rem
@rem  fopdf script for Windows
@rem
@rem  WARNING: This script has not yet been tested!
@rem
@rem ##########################################################################

if "%OS%"=="Windows_NT" setlocal

@rem Store full-qualified drive + path of this script
set PRG_DIR=%~dps0
if "%PRG_DIR%" == "" set PRG_DIR=.

set GRADLEW_CMD=%PRG_DIR%gradlew
set FOPDF_DIR=%PRG_DIR%build\fopdf
set FOPDF_CMD=%FOPDF_DIR%\bin\fopdf.bat

set DOCBOOK_DIR=%FOPDF_DIR%\docbook
set DOCBOOK_XSL_DIR=%FOPDF_DIR%\docbook-xsl
set XSLTHL_CONFIG_URI=file:///%DOCBOOK_XSL_DIR%\xslthl-config.xml

:init
set SOURCE_FILE=
set TYPE=pdf
@rem Process first argument
if %1a==a goto endInit
@rem Store fully-qualified drive+path+name+extension of first argument
set SOURCE_FILE=%~f1
@rem Store fully-qualified drive+path+name of first argument
set SOURCE_ROOTNAME=%~dpn1
shift
@rem Process second argument
if %1a==a goto endInit
set TYPE=%1
shift
:endInit

if "%SOURCE_FILE%" == "" (
  echo .
  echo You must specify a DocBook XML source file as the first command argument
  echo .
  goto fail
)

:install
if exist "%FOPDF_CMD%" goto endInstall
echo .
echo Initializing application...
"%GRADLEW_CMD%" -q -u installApp
if not "%ERRORLEVEL%"=="0" goto fail
echo Application initialized!
echo .
:endInstall

SETLOCAL ENABLEDELAYEDEXPANSION

@rem Add file protocol
set DOCBOOK_DIR_PARAM=file:///%DOCBOOK_DIR%
@rem replacing \ with /
set DOCBOOK_DIR_PARAM=!DOCBOOK_DIR_PARAM:\=/!
set XSLTHL_CONFIG_URI=!XSLTHL_CONFIG_URI:\=/!

if "%TYPE%" == "pdf" (
  set OUTPUT_PDF_FILE="%SOURCE_ROOTNAME%.pdf"
  %FOPDF_CMD% -q -catalog -c "%DOCBOOK_XSL_DIR%\fop-config.xml" -xml "%SOURCE_FILE%" -xsl "%DOCBOOK_XSL_DIR%\fo-pdf.xsl" -pdf !OUTPUT_PDF_FILE! -param highlight.xslthl.config "%XSLTHL_CONFIG_URI%" -param admon.graphics.path "%DOCBOOK_DIR_PARAM%/images/" -param callout.graphics.path "%DOCBOOK_DIR_PARAM%/images/callouts/"
  if not "%ERRORLEVEL%"=="0" goto fail else goto mainEnd
)

if "%TYPE%" == "fo" (
  set OUTPUT_FO_FILE="%SOURCE_ROOTNAME%.fo"
  %FOPDF_CMD% -q -catalog -c "%DOCBOOK_XSL_DIR%\fop-config.xml" -xml "%SOURCE_FILE%" -xsl "%DOCBOOK_XSL_DIR%\fo-pdf.xsl" -foout !OUTPUT_FO_FILE! -param highlight.xslthl.config "%XSLTHL_CONFIG_URI%" -param admon.graphics.path "%DOCBOOK_DIR_PARAM%/images/" -param callout.graphics.path "%DOCBOOK_DIR_PARAM%/images/callouts/"
  if not "%ERRORLEVEL%"=="0" goto fail else goto mainEnd
)

:fail
exit /b 1

:mainEnd
if "%OS%"=="Windows_NT" endlocal

fix typo in highlight.xslthl.config param


@ echo off
@ echo Salt Windows Build Script
@ echo.

:: Define Variables
@ echo Defining Variables...
@ echo ---------------------
Set "CurrDir=%cd%"
Set "BinDir=%cd%\buildenv\bin"
Set "InsDir=%cd%\installer"
Set "PyDir=C:\Python27"
Set "Version=%1"

:: Find the NSIS Installer
If Exist "C:\Program Files\NSIS\" (
    Set NSIS="C:\Program Files\NSIS\"
) Else (
    Set NSIS="C:\Program Files (x86)\NSIS\"
)
Set "PATH=%NSIS%;%PATH%"
@ echo.

@ echo Copying C:\Python27 to bin...
@ echo -----------------------------
:: Check for existing bin directory and remove
If Exist "%BinDir%\" rd /S /Q "%BinDir%"

:: Copy the Python27 directory to bin
@echo xcopy /S /E "%PyDir%" "%BinDir%\"
xcopy /S /E "%PyDir%" "%BinDir%\"
@ echo.

:: Remove the fixed path in .exe files
@echo Removing fixed path from .exe files
python "%CurrDir%\portable.py" -f "%BinDir%\Scripts\easy_install.exe"
python "%CurrDir%\portable.py" -f "%BinDir%\Scripts\easy_install-2.7.exe"
python "%CurrDir%\portable.py" -f "%BinDir%\Scripts\pip.exe"
python "%CurrDir%\portable.py" -f "%BinDir%\Scripts\pip2.7.exe"
python "%CurrDir%\portable.py" -f "%BinDir%\Scripts\pip2.exe"

@ echo Cleaning up unused files and directories...
@ echo -------------------------------------------
:: Remove all Compiled Python files (.pyc)
del /S /Q "%BinDir%\*.pyc"
:: Remove all Compiled HTML Help (.chm)
del /S /Q "%BinDir%\*.chm"

:: Delete Unused Docs and Modules
If Exist "%BinDir%\Doc"           rd /S /Q "%BinDir%\Doc"
If Exist "%BinDir%\share"         rd /S /Q "%BinDir%\share"
If Exist "%BinDir%\tcl"           rd /S /Q "%BinDir%\tcl"
If Exist "%BinDir%\Lib\idlelib"   rd /S /Q "%BinDir%\Lib\idlelib"
If Exist "%BinDir%\Lib\lib-tk"    rd /S /Q "%BinDir%\Lib\lib-tk"
If Exist "%BinDir%\Lib\test"      rd /S /Q "%BinDir%\Lib\test"
If Exist "%BinDir%\Lib\unit-test" rd /S /Q "%BinDir%\Lib\unit-test"

:: Delete Unused .dll files
If Exist "%BinDir%\DLLs\tcl85.dll"    del /S /Q "%BinDir%\DLLs\tcl85.dll"
If Exist "%BinDir%\DLLs\tclpip85.dll" del /S /Q "%BinDir%\DLLs\tclpip85.dll"
If Exist "%BinDir%\DLLs\tk85.dll"     del /S /Q "%BinDir%\DLLs\tk85.dll"

:: Delete Unused .lib files
If Exist "%BinDir%\libs\_tkinter.lib" del /S /Q "%BinDir%\libs\_tkinter.lib"

:: Delete .txt files
If Exist "%BinDir%\NEWS.txt"   del /q "%BinDir%\NEWS.txt"
If Exist "%BinDir%\README.txt" del /q "%BinDir%\README.txt"
@ echo.

@ echo Building the installer...
@ echo -------------------------
makensis.exe "%InsDir%\Salt-Minion-Setup.nsi"
@ echo.

@ echo.
@ echo ===================
@ echo Script completed...
@ echo -------------------
@ echo Installation file can be found in the following directory:
@ echo %InsDir%
pause
cls

@ echo off
@ echo Salt Windows Build Script
@ echo.

:: Define Variables
@ echo Defining Variables...
@ echo ---------------------
Set "CurrDir=%cd%"
Set "BinDir=%cd%\buildenv\bin"
Set "InsDir=%cd%\installer"
Set "PyDir=C:\Python27"
Set "Version=%1"

:: Find the NSIS Installer
If Exist "C:\Program Files\NSIS\" (
    Set NSIS="C:\Program Files\NSIS\"
) Else (
    Set NSIS="C:\Program Files (x86)\NSIS\"
)
Set "PATH=%NSIS%;%PATH%"
@ echo.

@ echo Copying C:\Python27 to bin...
@ echo -----------------------------
:: Check for existing bin directory and remove
If Exist "%BinDir%\" rd /S /Q "%BinDir%"

:: Copy the Python27 directory to bin
@echo xcopy /S /E "%PyDir%" "%BinDir%\"
xcopy /S /E "%PyDir%" "%BinDir%\"
@ echo.

:: Remove the fixed path in .exe files
@echo Removing fixed path from .exe files
python "%CurrDir%\portable.py" -f "%BinDir%\Scripts\easy_install.exe"
python "%CurrDir%\portable.py" -f "%BinDir%\Scripts\easy_install-2.7.exe"
python "%CurrDir%\portable.py" -f "%BinDir%\Scripts\pip.exe"
python "%CurrDir%\portable.py" -f "%BinDir%\Scripts\pip2.7.exe"
python "%CurrDir%\portable.py" -f "%BinDir%\Scripts\pip2.exe"

@ echo Cleaning up unused files and directories...
@ echo -------------------------------------------
:: Remove all Compiled Python files (.pyc)
del /S /Q "%BinDir%\*.pyc"
:: Remove all Compiled HTML Help (.chm)
del /S /Q "%BinDir%\*.chm"

:: Delete Unused Docs and Modules
If Exist "%BinDir%\Doc"           rd /S /Q "%BinDir%\Doc"
If Exist "%BinDir%\share"         rd /S /Q "%BinDir%\share"
If Exist "%BinDir%\tcl"           rd /S /Q "%BinDir%\tcl"
If Exist "%BinDir%\Lib\idlelib"   rd /S /Q "%BinDir%\Lib\idlelib"
If Exist "%BinDir%\Lib\lib-tk"    rd /S /Q "%BinDir%\Lib\lib-tk"
If Exist "%BinDir%\Lib\test"      rd /S /Q "%BinDir%\Lib\test"
If Exist "%BinDir%\Lib\unit-test" rd /S /Q "%BinDir%\Lib\unit-test"

:: Delete Unused .dll files
If Exist "%BinDir%\DLLs\tcl85.dll"    del /S /Q "%BinDir%\DLLs\tcl85.dll"
If Exist "%BinDir%\DLLs\tclpip85.dll" del /S /Q "%BinDir%\DLLs\tclpip85.dll"
If Exist "%BinDir%\DLLs\tk85.dll"     del /S /Q "%BinDir%\DLLs\tk85.dll"

:: Delete Unused .lib files
If Exist "%BinDir%\libs\_tkinter.lib" del /S /Q "%BinDir%\libs\_tkinter.lib"

:: Delete .txt files
If Exist "%BinDir%\NEWS.txt"   del /q "%BinDir%\NEWS.txt"
If Exist "%BinDir%\README.txt" del /q "%BinDir%\README.txt"
@ echo.

@ echo Building the installer...
@ echo -------------------------
makensis.exe /DSaltVersion="%Version%" "%InsDir%\Salt-Minion-Setup.nsi"
@ echo.

@ echo.
@ echo ===================
@ echo Script completed...
@ echo -------------------
@ echo Installation file can be found in the following directory:
@ echo %InsDir%
pause
cls

Update BuildSalt.bat

Update BuildSalt.bat


REM This is the jenkins build script for building/testing
REM Blaze.
REM
REM Jenkins Requirements:
REM   - Anaconda should be installed in ~/anaconda
REM   - Use a jenkins build matrix for multiple
REM     platforms/python versions
REM   - Use the XShell plugin to launch this script
REM   - Call the script from the root workspace
REM     directory as buildscripts/jenkins-build
REM

REM Require a version of Python to be selected
if "%PYTHON_VERSION%" == "" exit /b 1

REM Jenkins has '/' in its workspace. Fix it to '\' to simplify the DOS commands.
set WORKSPACE=%WORKSPACE:/=\%

rd /q /s %WORKSPACE%\build
REM Fail if we couldn't fully remove the temporary dir
if EXIST %WORKSPACE%\build\ exit /b 1

REM Use conda to create a conda environment of the required
REM python version and containing the dependencies.
SET PYENV_PREFIX=%WORKSPACE%\build\pyenv
REM TODO: Add cffi to this list once it is added to anaconda windows.

call C:\Anaconda\Scripts\conda create --yes --channel https://conda.binstar.org/mwiebe -p %PYENV_PREFIX% python=%PYTHON_VERSION%  cython scipy ply dynd-python nose flask pyparsing pyyaml setuptools dateutil pip pytables sqlalchemy h5py pandas requests pytest toolz cytoolz bcolz || exit /b 1

call C:\Anaconda\Scripts\conda install --yes --channel blaze mongodb || exit /b 1

REM create a mongo service
mkdir c:\data\db
mkdir c:\data\log
set cfgpath="C:\users\%username%\Anaconda\mongod.cfg"
echo logpath=c:\data\log\mongod.log> %cfgpath%
echo dbpath=c:\data\db>> %cfgpath%
sc.exe create MongoDB binPath= "\"%cfgpath%\" --service --config=\"%cfgpath%\"" DisplayName= "MongoDB 2.6 Standard" start= "auto"
net start MongoDB

echo on
set PYTHON_EXECUTABLE=%PYENV_PREFIX%\Python.exe
set PATH=%PYENV_PREFIX%;%PYENV_PREFIX%\Scripts;%PATH%

REM Temporary hack to install datashape
rd /q /s datashape
git clone https://github.com/ContinuumIO/datashape.git || exit /b 1
pushd datashape
%PYTHON_EXECUTABLE% setup.py install || exit /b 1
popd

REM Temporary hack to install blz
IF "%PYTHON_VERSION%" == "2.6" call pip install unittest2 unicodecsv
IF "%PYTHON_VERSION%" == "2.7" call pip install unicodecsv

call pip install multipledispatch

IF %ERRORLEVEL% NEQ 0 exit /b 1

REM Build/install Blaze
%PYTHON_EXECUTABLE% setup.py install || exit /b 1

call py.test --doctest-modules -vv --pyargs blaze --junitxml=test_results.xml

net stop MongoDB
sc.exe delete MongoDB

IF %ERRORLEVEL% NEQ 0 exit /b 1
exit /b 0

REM This is the jenkins build script for building/testing
REM Blaze.
REM
REM Jenkins Requirements:
REM   - Anaconda should be installed in ~/anaconda
REM   - Use a jenkins build matrix for multiple
REM     platforms/python versions
REM   - Use the XShell plugin to launch this script
REM   - Call the script from the root workspace
REM     directory as buildscripts/jenkins-build
REM

REM Require a version of Python to be selected
if "%PYTHON_VERSION%" == "" exit /b 1

REM Jenkins has '/' in its workspace. Fix it to '\' to simplify the DOS commands.
set WORKSPACE=%WORKSPACE:/=\%

rd /q /s %WORKSPACE%\build
REM Fail if we couldn't fully remove the temporary dir
if EXIST %WORKSPACE%\build\ exit /b 1

REM Use conda to create a conda environment of the required
REM python version and containing the dependencies.
SET PYENV_PREFIX=%WORKSPACE%\build\pyenv
REM TODO: Add cffi to this list once it is added to anaconda windows.

call C:\Anaconda\Scripts\conda create --yes --channel https://conda.binstar.org/mwiebe -p %PYENV_PREFIX% python=%PYTHON_VERSION%  cython scipy ply dynd-python nose flask pyparsing pyyaml setuptools dateutil pip pytables sqlalchemy h5py pandas requests pytest toolz cytoolz bcolz || exit /b 1

call C:\Anaconda\Scripts\conda install -p %PYENV_PREFIX% --yes --channel blaze mongodb || exit /b 1

REM create a mongo service
mkdir c:\data\db
mkdir c:\data\log
set cfgpath="C:\users\%username%\Anaconda\mongod.cfg"
echo logpath=c:\data\log\mongod.log> %cfgpath%
echo dbpath=c:\data\db>> %cfgpath%
sc.exe create MongoDB binPath= "\"%cfgpath%\" --service --config=\"%cfgpath%\"" DisplayName= "MongoDB 2.6 Standard" start= "auto"
net start MongoDB

echo on
set PYTHON_EXECUTABLE=%PYENV_PREFIX%\Python.exe
set PATH=%PYENV_PREFIX%;%PYENV_PREFIX%\Scripts;%PATH%

REM Temporary hack to install datashape
rd /q /s datashape
git clone https://github.com/ContinuumIO/datashape.git || exit /b 1
pushd datashape
%PYTHON_EXECUTABLE% setup.py install || exit /b 1
popd

REM Temporary hack to install blz
IF "%PYTHON_VERSION%" == "2.6" call pip install unittest2 unicodecsv
IF "%PYTHON_VERSION%" == "2.7" call pip install unicodecsv

call pip install multipledispatch

IF %ERRORLEVEL% NEQ 0 exit /b 1

REM Build/install Blaze
%PYTHON_EXECUTABLE% setup.py install || exit /b 1

call py.test --doctest-modules -vv --pyargs blaze --junitxml=test_results.xml

net stop MongoDB
sc.exe delete MongoDB

IF %ERRORLEVEL% NEQ 0 exit /b 1
exit /b 0

Use -p for installing mongodb

Use -p for installing mongodb


@echo off

REM Automated Windows build script for nomlib -- windev.local

REM NOTE: This script is intended to be ran from the project's root
REM directory, i.e.: %HOME%/Projects/nomlib.git

REM virgo.local source repository
unison nomlib

IF NOT EXIST build mkdir build
REM pushd build
cd build

if errorlevel 0 call ..\bin\msbuild_gen.bat Debug
if errorlevel 0 call ..\bin\msbuild_build.bat Debug
if errorlevel 0 call ..\bin\msbuild_install.bat Debug

REM popd

Add automated Windows build script using msbuild

This is the local configuration used on windev.local.