Instruction
stringlengths
14
778
input_code
stringlengths
0
4.24k
output_code
stringlengths
1
5.44k
Fix errai dashboard script reset to master
@echo off if exist "C:\Work\D\Vvmn\*" goto deleteDir echo No existing build directory goto updateScripts :deleteDir echo Delete directory pushd "C:\Work\D\Vvmn" for /d %%d in (*.*) do rmdir /s /q "%%d" del /q *.* popd :updateScripts cd C:\Work\VesselView\Dashboards\VesselView "C:\Program Files (x86)\Git\bin\git" fetch origin "C:\Program Files (x86)\Git\bin\git" reset --hard master :startDashboards echo Start dashboards call "C:\Program Files (x86)\CMake 3.0.2\bin\ctest.exe" -S C:\Work\VesselView\Dashboards\VesselView\Utilities\Dashboards\VesselView-errai-master-nightly.cmake -V -C Release > C:\Work\VesselView\Dashboards\Logs\VesselView-errai-master-nightly.log 2>&1
@echo off if exist "C:\Work\D\Vvmn\*" goto deleteDir echo No existing build directory goto updateScripts :deleteDir echo Delete directory pushd "C:\Work\D\Vvmn" for /d %%d in (*.*) do rmdir /s /q "%%d" del /q *.* popd :updateScripts cd C:\Work\VesselView\Dashboards\VesselView "C:\Program Files (x86)\Git\bin\git" fetch origin "C:\Program Files (x86)\Git\bin\git" reset --hard origin/master :startDashboards echo Start dashboards call "C:\Program Files (x86)\CMake 3.0.2\bin\ctest.exe" -S C:\Work\VesselView\Dashboards\VesselView\Utilities\Dashboards\VesselView-errai-master-nightly.cmake -V -C Release > C:\Work\VesselView\Dashboards\Logs\VesselView-errai-master-nightly.log 2>&1
Use PWD instead of WORKSPACE in windows batch script.
@ECHO OFF REM Test default configuration against examples on windows. REM WORKSPACE is always set inside our testing environment. If this is run REM outside that environment, the caller is responsible for setting it. IF "%WORKSPACE%"=="" GOTO ErrExit REM NOTE: This is pretty messy, but it is the only way I could figure out how to REM get the correct environment setup and then invoke REM nightly.windows. (thomasvandoren, 2014-07-14) c:\cygwin64\bin\bash -exc "export PATH='/usr/local/bin:/usr/bin:/cygdrive/c/windows/system32:/cygdrive/c/windows:/cygdrive/c/windows/System32/Wbem:/cygdrive/c/windows/System32/WindowsPowerShell/v1.0:/cygdrive/c/Program Files/SysinternalsSuite:/usr/bin:/cygdrive/c/emacs-24.3/bin' ; export CHPL_HOME=$WORKSPACE ; source $CHPL_HOME/util/cron/common.bash && $CHPL_HOME/util/cron/nightly.windows" GOTO End :ErrExit ECHO "ERROR: WORKSPACE must be set in the environment" EXIT 1 GOTO End :End
@ECHO OFF REM Test default configuration against examples on windows. REM WORKSPACE is always set inside our testing environment. If this is run REM outside that environment, the caller is responsible for setting it. IF "%WORKSPACE%"=="" GOTO ErrExit REM NOTE: This is pretty messy, but it is the only way I could figure out how to REM get the correct environment setup and then invoke REM nightly.windows. (thomasvandoren, 2014-07-14) c:\cygwin64\bin\bash -exc "export PATH='/usr/local/bin:/usr/bin:/cygdrive/c/windows/system32:/cygdrive/c/windows:/cygdrive/c/windows/System32/Wbem:/cygdrive/c/windows/System32/WindowsPowerShell/v1.0:/cygdrive/c/Program Files/SysinternalsSuite:/usr/bin:/cygdrive/c/emacs-24.3/bin' ; export CHPL_HOME=$PWD ; source $CHPL_HOME/util/cron/common.bash && $CHPL_HOME/util/cron/nightly.windows" GOTO End :ErrExit ECHO "ERROR: WORKSPACE must be set in the environment" EXIT 1 GOTO End :End
Tweak the command used for the "run" argument
:: Forward the ./doom script to Emacs @ECHO OFF PUSHD "%~dp0" >NUL IF "%1"=="run" ( SHIFT emacs -Q %* -l ..\init.el -f "doom|run-all-startup-hooks" ) ELSE ( emacs --quick --script .\doom -- %* ) POPD >NUL ECHO ON
:: Forward the ./doom script to Emacs @ECHO OFF PUSHD "%~dp0" >NUL IF "%1"=="run" ( SHIFT start runemacs -Q %* -l ..\init.el -f "doom|run-all-startup-hooks" ) ELSE ( emacs --quick --script .\doom -- %* ) POPD >NUL ECHO ON
Add a batch file to build all of the nuget packages, including the DNX stuff. This isn't part of NightlyBuild.cmd yet, because it requires some special machine setup for the DNX part.
@echo off setlocal call NightlyBuild.cmd set PackageDir=%~dp0LocalPackages call dnu restore dnx\src\Microsoft.DotNet.xunit.performance.runner.dnx\project.json -f %PackageDir% call dnu pack dnx\src\Microsoft.DotNet.xunit.performance.runner.dnx\project.json --out %PackageDir% --configuration Release
Package restore script fixes (possibly some due to PowerShell 4 compatibility issues)
@echo off setlocal for %%i in (NuGet.exe) do set nuget_path=%%~dpnx$PATH:i if "%nuget_path%"=="" goto :nonuget set packages_path=%~dp0packages if exist "%packages_path%\repositories.config" ( for /f "usebackq delims=" %%p in (`PowerShell -C "Get-Content '%packages_path%\repositories.config' | Select-Xml //repository/@path | %%{$_.Node.Value}"`) do if errorlevel==0 call :restore "%packages_path%\%%p" ) else ( for /r %%d in (.) do if errorlevel==0 if exist %%d\packages.config call :restore "%%d" ) goto :EOF :restore setlocal echo Restoring packages for "%~1" cd "%~1" "%nuget_path%" install -OutputDirectory "%packages_path%" ^ -Source https://nuget.org/api/v2/ ^ -Source P:\Development\NuGet goto :EOF :nonuget echo NuGet executable not found in PATH echo For more on NuGet, see http://nuget.codeplex.com exit /b 2
@echo off setlocal for %%i in (NuGet.exe) do set nuget_path=%%~dpnx$PATH:i if "%nuget_path%"=="" goto :nonuget set packages_path=%~dp0packages if exist "%packages_path%\repositories.config" ( for /f "usebackq delims=" %%p in (`PowerShell -C "[xml](Get-Content '%packages_path%\repositories.config') | Select-Xml //repository/@path | %%{$_.Node.Value}"`) do if errorlevel==0 call :restore "%packages_path%\%%p" ) else ( for /r %%d in (.) do if errorlevel==0 if exist %%d\packages.config call :restore "%%d" ) goto :EOF :restore setlocal echo Restoring packages for "%~1" cd "%~dp1" "%nuget_path%" install -OutputDirectory "%packages_path%" goto :EOF :nonuget echo NuGet executable not found in PATH echo For more on NuGet, see http://nuget.codeplex.com exit /b 2
Fix character corruption in Windows
@echo off SETLOCAL if NOT DEFINED JAVA_HOME goto err set SCRIPT_DIR=%~dp0 for %%I in ("%SCRIPT_DIR%..") do set REDPEN_HOME=%%~dpfI set REDPEN_CLASSPATH=%REDPEN_HOME%/conf;%REDPEN_HOME%/lib/* set JAVA_OPTS=%JAVA_OPTS% "%JAVA_HOME%\bin\java" %JAVA_OPTS% -classpath "%REDPEN_CLASSPATH%" cc.redpen.Main %* goto finally :err echo Error: JAVA_HOME is not defined. Can not start RedPen pause :finally ENDLOCAL
@echo off SETLOCAL if NOT DEFINED JAVA_HOME goto err set SCRIPT_DIR=%~dp0 for %%I in ("%SCRIPT_DIR%..") do set REDPEN_HOME=%%~dpfI set REDPEN_CLASSPATH=%REDPEN_HOME%/conf;%REDPEN_HOME%/lib/* set JAVA_OPTS=%JAVA_OPTS% -Dfile.encoding=UTF-8 "%JAVA_HOME%\bin\java" %JAVA_OPTS% -classpath "%REDPEN_CLASSPATH%" cc.redpen.Main %* goto finally :err echo Error: JAVA_HOME is not defined. Can not start RedPen pause :finally ENDLOCAL
Use %* instead of enumerated arguments when calling java
@echo off rem check that JAVA_HOME and LCF_HOME are set if not exist "%JAVA_HOME%\bin\java.exe" goto nojavahome if not exist "%LCF_HOME%\properties.ini" goto nolcfhome rem save existing path here set OLDDIR=%CD% cd "%LCF_HOME%\processes" set CLASSPATH=. for %%f in (jar/*) do call script\setclasspath.bat %%f set JAVADEFINES= for %%g in (define/*) do call script\setdefine.bat %%g rem restore old path here cd "%OLDDIR%" "%JAVA_HOME%\bin\java" "-Dorg.apache.lcf.configfile=%LCF_HOME%\properties.ini" %JAVADEFINES% -classpath "%CLASSPATH%" %1 %2 %3 %4 %5 %6 %7 %8 %9 goto done :nojavahome echo Environment variable JAVA_HOME is not set properly. goto done :nolcfhome echo Environment variable LCF_HOME is not set properly. goto done :done
@echo off rem check that JAVA_HOME and LCF_HOME are set if not exist "%JAVA_HOME%\bin\java.exe" goto nojavahome if not exist "%LCF_HOME%\properties.ini" goto nolcfhome rem save existing path here set OLDDIR=%CD% cd "%LCF_HOME%\processes" set CLASSPATH=. for %%f in (jar/*) do call script\setclasspath.bat %%f set JAVADEFINES= for %%g in (define/*) do call script\setdefine.bat %%g rem restore old path here cd "%OLDDIR%" "%JAVA_HOME%\bin\java" "-Dorg.apache.lcf.configfile=%LCF_HOME%\properties.ini" %JAVADEFINES% -classpath "%CLASSPATH%" %* goto done :nojavahome echo Environment variable JAVA_HOME is not set properly. goto done :nolcfhome echo Environment variable LCF_HOME is not set properly. goto done :done
Change directory - useful with ConEmu and MinGW
function cdt() { case "$1" in "-h") showcdtusage;; "") cdtbranches unstable;; "unstable") cdtbranches $1;; "10.3") cdtbranches $1;; "10.2") cdtbranches $1;; "10.1") cdtbranches $1;; "conv") cd /c/src/conversion;; "home") cd /c/users/chirag.shukla;; "d") cd /d;; "safe") cd /d/safe_exes;; "tempsrc") cd /d/tempsrc;; "stash") cd /d/stashedsrc;; "review") cd /d/code-review;; esac } function cdtbranches() { cd /c/src/leds/branches/$1 } function showcdtusage() { echo 'Usage: . cdt 10.2 cd into 10.2 branch' echo ' . cdt 10.1 cd into 10.1 branch' echo ' . cdt unstable cd into unstable branch' echo ' . cdt cd into unstable branch' echo ' . cdt conv cd into conversion' echo ' . cdt home cd into c:\users\zf' echo ' . cdt d cd into d: drive' echo ' . cdt safe cd into d:\safe_exes' echo ' . cdt tempsrc cd into d:\tempsrc' echo ' . cdt stash cd into d:\stashedsrc' echo ' . cdt review cd into d:\code-review' }
Fix the path to build_autodoc_files.py and call it by default everytime (it is safe as it does not re-generate files which already exist)
@echo off REM docs\build_autodoc_files.py sphinx-build -b html doc_src pywinauto\docs REM c:\.temp\pudge\pudge\cli --documents doc_source\index.rst,doc_source\controls_overview.rst,doc_source\howto.rst,doc_source\getting_started.rst,history.txt,license.txt,todo.txt --title pywinauto -v -d website -m pywinauto.application,pywinauto.taskbar,pywinauto.clipboard,pywinauto.timings,pywinauto.findbestmatch,pywinauto.findwindows,pywinauto.handleprops,pywinauto.XMLHelpers,pywinauto.controls,pywinauto.tests -t doc_source\template REM These are the python modules REM application.py REM clipboard.py REM findbestmatch.py REM findwindows.py REM handleprops.py REM taskbar.py REM win32defines.py REM win32functions.py REM win32structures.py REM XMLHelpers.py REM controls REM tests REM c:\.temp\pudge\pudge\cli --title pywinauto -v -m pywinauto --documents docs\index.rst,history.txt,license.txt,todo.txt,docs\howto.rst -d pudge_output_green_paste -t \.temp\pudge\pudge\template\green_paste
@echo off doc_src\build_autodoc_files.py sphinx-build -b html doc_src pywinauto\docs REM c:\.temp\pudge\pudge\cli --documents doc_source\index.rst,doc_source\controls_overview.rst,doc_source\howto.rst,doc_source\getting_started.rst,history.txt,license.txt,todo.txt --title pywinauto -v -d website -m pywinauto.application,pywinauto.taskbar,pywinauto.clipboard,pywinauto.timings,pywinauto.findbestmatch,pywinauto.findwindows,pywinauto.handleprops,pywinauto.XMLHelpers,pywinauto.controls,pywinauto.tests -t doc_source\template REM These are the python modules REM application.py REM clipboard.py REM findbestmatch.py REM findwindows.py REM handleprops.py REM taskbar.py REM win32defines.py REM win32functions.py REM win32structures.py REM XMLHelpers.py REM controls REM tests REM c:\.temp\pudge\pudge\cli --title pywinauto -v -m pywinauto --documents docs\index.rst,history.txt,license.txt,todo.txt,docs\howto.rst -d pudge_output_green_paste -t \.temp\pudge\pudge\template\green_paste
Add template of bat script
@echo off @rem ------------------------------------ @rem @file xxx.bat @rem @brief yyy @rem @author zzz@aaa @rem @date yyyy/mm/dd @rem @par Copyright @rem 2016-20XX YYYY All rights reserved. @rem Released under the MIT license @rem http://opensource.org/licenses/mit-license.php @rem ------------------------------------ @rem ------------------------------------ @rem @brief Main routine @rem @param none @rem @return none @rem ------------------------------------ call :INITIALIZE call :EXECUTE call :FINALIZE exit @rem ------------------------------------ @rem @brief Initialize global variables @rem @param none @rem @return none @rem ------------------------------------ :INITIALIZE echo "enter INITIALIZE" echo "exit INITIAIZE" exit /b @rem ------------------------------------ @rem @brief Executes @rem @param none @rem @return none @rem ------------------------------------ :EXECUTE echo "enter EXECUTE" echo "exit EXECUTE" exit /b @rem ------------------------------------ @rem @brief Finalize @rem @param none @rem @return none @rem ------------------------------------ :FINALIZE echo "enter FINALIZE" pause echo "exit FINALIZE" exit /b
Use robocopy to copy subdirs too
set FFMPEG_FN=ffmpeg-%PKG_VERSION%-win%ARCH% curl -L -O "https://ffmpeg.zeranoe.com/builds/win%ARCH%/dev/%FFMPEG_FN%-dev.7z" 7za x %SRC_DIR%\%FFMPEG_FN%-shared.7z -o%SRC_DIR% 7za x %FFMPEG_FN%-dev.7z -o%SRC_DIR% copy %SRC_DIR%\%FFMPEG_FN%-shared\bin %LIBRARY_BIN% copy %SRC_DIR%\%FFMPEG_FN%-dev\include %LIBRARY_INC% copy %SRC_DIR%\%FFMPEG_FN%-dev\lib %LIBRARY_LIB% copy %SRC_DIR%\%FFMPEG_FN%-shared\README.txt %RECIPE_DIR% mkdir %RECIPE_DIR%\licenses copy %SRC_DIR%\%FFMPEG_FN%-shared\licenses %RECIPE_DIR%\licenses exit 0
set FFMPEG_FN=ffmpeg-%PKG_VERSION%-win%ARCH% curl -L -O "https://ffmpeg.zeranoe.com/builds/win%ARCH%/dev/%FFMPEG_FN%-dev.7z" 7za x %SRC_DIR%\%FFMPEG_FN%-shared.7z -o%SRC_DIR% 7za x %FFMPEG_FN%-dev.7z -o%SRC_DIR% robocopy %SRC_DIR%\%FFMPEG_FN%-shared\bin\ %LIBRARY_BIN%\ *.* /E if %ERRORLEVEL% GEQ 8 exit 1 robocopy %SRC_DIR%\%FFMPEG_FN%-dev\include\ %LIBRARY_INC%\ *.* /E if %ERRORLEVEL% GEQ 8 exit 1 robocopy %SRC_DIR%\%FFMPEG_FN%-dev\lib\ %LIBRARY_LIB%\ *.* /E if %ERRORLEVEL% GEQ 8 exit 1 copy %SRC_DIR%\%FFMPEG_FN%-shared\README.txt %RECIPE_DIR% mkdir %RECIPE_DIR%\licenses copy %SRC_DIR%\%FFMPEG_FN%-shared\licenses %RECIPE_DIR%\licenses exit 0
Add complete db installation before tests
"C:\Program Files\PostgreSQL\9.6\bin\psql.exe" -h localhost -U postgres -d reports_manager_test_db -p 5432 -f ..\action_enter_edit_folders.sql 1> test_action_enter_edit_folders.log 2>&1 "C:\Program Files\PostgreSQL\9.6\bin\psql.exe" -h localhost -U postgres -d reports_manager_test_db -p 5432 -f test_action_enter_edit_folders.sql 1>> test_action_enter_edit_folders.log 2>>&1
REM install db call C:\funda_components\reports_manager\report_manager_database\reports_manager_test_db\install_reports_manager_test_db.bat "C:\Program Files\PostgreSQL\9.6\bin\psql.exe" -h localhost -U postgres -d reports_manager_test_db -p 5432 -f ..\action_enter_edit_folders.sql 1> test_action_enter_edit_folders.log 2>&1 "C:\Program Files\PostgreSQL\9.6\bin\psql.exe" -h localhost -U postgres -d reports_manager_test_db -p 5432 -f test_action_enter_edit_folders.sql 1>> test_action_enter_edit_folders.log 2>>&1
Enable all trace flags by default
@echo off traceview.exe -start UsbDk -rt -flag 0xFF -level 6 -ft 1 -pdb UsbDk.pdb -guid UsbDk.ctl mkdir WPP start traceview.exe -process -rt UsbDk -display -ods -o WPP\\UsbDk.txt -pdb UsbDk.pdb -guid UsbDk.ctl start dbgview.exe pause traceview.exe -stop UsbDk
@echo off traceview.exe -start UsbDk -rt -flag 0x7FFFFFFF -level 6 -ft 1 -pdb UsbDk.pdb -guid UsbDk.ctl mkdir WPP start traceview.exe -process -rt UsbDk -display -ods -o WPP\\UsbDk.txt -pdb UsbDk.pdb -guid UsbDk.ctl start dbgview.exe pause traceview.exe -stop UsbDk
Add flag specifying that random/srandom are not available on windows
mkdir -p build-cmake cd build-cmake cmake -G "NMake Makefiles" -DCMAKE_INSTALL_PREFIX=%LIBRARY_PREFIX% -DCMAKE_BUILD_TYPE=Release .. if errorlevel 1 exit 1 nmake if errorlevel 1 exit 1 nmake install if errorlevel 1 exit 1 MOVE %LIBRARY_LIB%\ann.dll %LIBRARY_BIN%
mkdir -p build-cmake cd build-cmake cmake -G "NMake Makefiles" -DCMAKE_INSTALL_PREFIX=%LIBRARY_PREFIX% -DCMAKE_BUILD_TYPE=Release -DANN_NO_RANDOM .. if errorlevel 1 exit 1 nmake if errorlevel 1 exit 1 nmake install if errorlevel 1 exit 1 MOVE %LIBRARY_LIB%\ann.dll %LIBRARY_BIN%
Use C:\Users\nuxeo instead of \Users\nuxeo in msi signing batch script (not set by Jenkins)
@echo off set DIST_DIR=dist set CERTIFICATE_PATH=%HOMEPATH%\certificates\nuxeo.com.pfx set MSI_PROGRAM_NAME="Nuxeo Drive" set TIMESTAMP_URL=http://timestamp.verisign.com/scripts/timstamp.dll set SIGN_CMD=signtool sign /v /f %CERTIFICATE_PATH% /d %MSI_PROGRAM_NAME% /t %TIMESTAMP_URL% set VERIFY_CMD=signtool verify /v /pa FOR %%F IN (%DIST_DIR%\*.msi) DO ( echo --------------------------------------------- echo Signing %%F echo --------------------------------------------- echo %SIGN_CMD% %%F %SIGN_CMD% %%F echo --------------------------------------------- echo Verifying %%F echo --------------------------------------------- echo %VERIFY_CMD% %%F %VERIFY_CMD% %%F )
@echo off set DIST_DIR=dist set CERTIFICATE_PATH=%USERPROFILE%\certificates\nuxeo.com.pfx set MSI_PROGRAM_NAME="Nuxeo Drive" set TIMESTAMP_URL=http://timestamp.verisign.com/scripts/timstamp.dll set SIGN_CMD=signtool sign /v /f %CERTIFICATE_PATH% /d %MSI_PROGRAM_NAME% /t %TIMESTAMP_URL% set VERIFY_CMD=signtool verify /v /pa FOR %%F IN (%DIST_DIR%\*.msi) DO ( echo --------------------------------------------- echo Signing %%F echo --------------------------------------------- echo %SIGN_CMD% %%F %SIGN_CMD% %%F echo --------------------------------------------- echo Verifying %%F echo --------------------------------------------- echo %VERIFY_CMD% %%F %VERIFY_CMD% %%F )
Delete OpenAL module from build from now on, because it's not yet used.
@rem Makes a build of the viewer @rem You should have a directory ..\viewerbuilddlls which has release versions of @rem all dependency dlls, including gtkmm & the Visual Studio 9 runtime @echo off rmdir build /S /Q md build xcopy bin\*.* build /S /C del build\data\configuration\*.xml rmdir build\testing /S /Q del build\*.dll del build\viewerd.exe del build\modules\core\*d.dll del build\modules\test\*d.dll del build\modules\test\TestModule*.* del build\modules\test\non_existing_system.xml xcopy ..\viewerbuilddlls\*.* build /S /C
@rem Makes a build of the viewer @rem You should have a directory ..\viewerbuilddlls which has release versions of @rem all dependency dlls, including gtkmm & the Visual Studio 9 runtime @echo off rmdir build /S /Q md build xcopy bin\*.* build /S /C del build\data\configuration\*.xml rmdir build\testing /S /Q del build\*.dll del build\viewerd.exe del build\modules\core\*d.dll del build\modules\test\*d.dll del build\modules\test\TestModule*.* del build\modules\test\non_existing_system.xml del build\modules\core\OpenAL*.* xcopy ..\viewerbuilddlls\*.* build /S /C
Make symbol extraction more verbose so progress can be observed
@echo Copying debug information... @IF %toolchain%==msvc ROBOCOPY "%devroot%\mesa\build\%toolchain%-%abi%" "%devroot%\%projectname%\debugsymbols\%abi%" *.pdb /E @IF NOT %toolchain%==msvc IF EXIST "%msysloc%\%LMSYSTEM%\bin\strip.exe" IF EXIST "%msysloc%\%LMSYSTEM%\bin\objcopy.exe" for /f delims^=^ eol^= %%a in ('dir /b "%devroot%\%projectname%\bin\%abi%\*.*" 2^>^&1') do @IF EXIST "%devroot%\%projectname%\bin\%abi%\%%~nxa" IF /I NOT "%%~na"=="dxil" IF /I NOT "%%~na"=="openclon12" IF /I NOT "%%~na"=="WinPixEventRuntime" IF /I NOT "%%~xa"=="json" ( @"%msysloc%\%LMSYSTEM%\bin\objcopy.exe" --only-keep-debug "%devroot%\%projectname%\bin\%abi%\%%~nxa" "%devroot%\%projectname%\debugsymbols\%abi%\%%~nxa.sym" @"%msysloc%\%LMSYSTEM%\bin\strip.exe" --strip-debug --strip-unneeded "%devroot%\%projectname%\bin\%abi%\%%~nxa" ) @echo.
@IF %toolchain%==msvc ROBOCOPY "%devroot%\mesa\build\%toolchain%-%abi%" "%devroot%\%projectname%\debugsymbols\%abi%" *.pdb /E @IF NOT %toolchain%==msvc IF EXIST "%msysloc%\%LMSYSTEM%\bin\strip.exe" IF EXIST "%msysloc%\%LMSYSTEM%\bin\objcopy.exe" for /f delims^=^ eol^= %%a in ('dir /b "%devroot%\%projectname%\bin\%abi%\*.*" 2^>^&1') do @IF EXIST "%devroot%\%projectname%\bin\%abi%\%%~nxa" IF /I NOT "%%~na"=="dxil" IF /I NOT "%%~na"=="openclon12" IF /I NOT "%%~na"=="WinPixEventRuntime" IF /I NOT "%%~xa"==".json" IF /I NOT "%%~xa"=="json" ( @echo Extracting debug information from %%~nxa into %%~nxa.sym... @"%msysloc%\%LMSYSTEM%\bin\objcopy.exe" --only-keep-debug "%devroot%\%projectname%\bin\%abi%\%%~nxa" "%devroot%\%projectname%\debugsymbols\%abi%\%%~nxa.sym" @"%msysloc%\%LMSYSTEM%\bin\strip.exe" --strip-debug --strip-unneeded "%devroot%\%projectname%\bin\%abi%\%%~nxa" @echo Finished. ) @echo.
Add missing `sonar:sonar` for windows script
mvn clean jacoco:prepare-agent verify jacoco:report -Dmaven.javadoc.failOnError=false -s dev\settings-sonarqube.xml %*
mvn clean jacoco:prepare-agent verify jacoco:report sonar:sonar -Dmaven.javadoc.failOnError=false -s dev\settings-sonarqube.xml %*
Make test runner use the correct configuration
@echo off setlocal set _test_root=%DLR_ROOT%\Test set _runner=%_test_root%\TestRunner\TestRunner\bin\Debug\TestRunner.exe call :build_runner "%_runner%" "%_test_root%\IronPython.tests" /verbose /threads:1 /binpath:"%DLR_BIN%" /nunitoutput:"%_test_root%\TestResult.xml" %* endlocal goto:eof :build_runner %windir%\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe /t:Rebuild %_test_root%\ClrAssembly\ClrAssembly.csproj /p:Configuration=Debug /v:quiet /nologo %windir%\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe /t:Rebuild %_test_root%\TestRunner\TestRunner.sln /p:Configuration=Debug /v:quiet /nologo goto:eof
@echo off setlocal if "%DLR_BIN%"=="" ( echo "You must set DLR_BIN before running this command" exit /b -1 ) if "%DLR_ROOT%"=="" ( echo "You must set DLR_ROOT before running this command" exit /b -1 ) set _test_root=%DLR_ROOT%\Test set _config=%CONFIGURATION% if "%_config%"=="" ( set _config=Debug ) set _runner=%_test_root%\TestRunner\TestRunner\bin\%_config%\TestRunner.exe call :build_runner "%_runner%" "%_test_root%\IronPython.tests" /verbose /threads:1 /binpath:"%DLR_BIN%" /nunitoutput:"%_test_root%\TestResult.xml" %* endlocal goto:eof :build_runner %windir%\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe /t:Rebuild %_test_root%\ClrAssembly\ClrAssembly.csproj /p:Configuration=%_config% /v:quiet /nologo %windir%\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe /t:Rebuild %_test_root%\TestRunner\TestRunner.sln /p:Configuration=%_config% /v:quiet /nologo goto:eof
Replace fwlink with direct link to contributor's guide.
@echo off setlocal :: Note: We've disabled node reuse because it causes file locking issues. :: The issue is that we extend the build with our own targets which :: means that that rebuilding cannot successully delete the task :: assembly. :: Check prerequisites set _msbuildexe="%ProgramFiles(x86)%\MSBuild\12.0\Bin\MSBuild.exe" if not exist %_msbuildexe% set _msbuildexe="%ProgramFiles%\MSBuild\12.0\Bin\MSBuild.exe" if not exist %_msbuildexe% echo Error: Could not find MSBuild.exe. Please see http://go.microsoft.com/fwlink/?LinkID=518812 for build instructions. && goto :eof :: Log build command line set _buildprefix=echo set _buildpostfix=^> "%~dp0msbuild.log" call :build %* :: Build set _buildprefix= set _buildpostfix= call :build %* goto :eof :build %_buildprefix% %_msbuildexe% "%~dp0build.proj" /nologo /maxcpucount /verbosity:minimal /nodeReuse:false /fileloggerparameters:Verbosity=diag;LogFile="%~dp0msbuild.log";Append %* %_buildpostfix% goto :eof
@echo off setlocal :: Note: We've disabled node reuse because it causes file locking issues. :: The issue is that we extend the build with our own targets which :: means that that rebuilding cannot successully delete the task :: assembly. :: Check prerequisites set _msbuildexe="%ProgramFiles(x86)%\MSBuild\12.0\Bin\MSBuild.exe" if not exist %_msbuildexe% set _msbuildexe="%ProgramFiles%\MSBuild\12.0\Bin\MSBuild.exe" if not exist %_msbuildexe% echo Error: Could not find MSBuild.exe. Please see https://github.com/dotnet/corefx/blob/master/docs/Developers.md for build instructions. && goto :eof :: Log build command line set _buildprefix=echo set _buildpostfix=^> "%~dp0msbuild.log" call :build %* :: Build set _buildprefix= set _buildpostfix= call :build %* goto :eof :build %_buildprefix% %_msbuildexe% "%~dp0build.proj" /nologo /maxcpucount /verbosity:minimal /nodeReuse:false /fileloggerparameters:Verbosity=diag;LogFile="%~dp0msbuild.log";Append %* %_buildpostfix% goto :eof
Add comment for %MSBuild% setting - CR follow-up
@echo off pushd %~dp0 setlocal if exist bin goto build mkdir bin :Build set MSBuild="%ProgramFiles(x86)%\MSBuild\12.0\Bin\MsBuild.exe" if not exist %MSBuild% @set MSBuild="%ProgramFiles%\MSBuild\12.0\Bin\MsBuild.exe" if not exist %MSBuild% @set MSBuild="%SystemRoot%\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe" if "%1" == "" goto BuildDefaults %MSBuild% Runtime.msbuild /m /nr:false /t:%* /p:Platform="Any CPU" /p:Desktop=true /v:M /fl /flp:LogFile=bin\msbuild.log;Verbosity=Normal if %ERRORLEVEL% neq 0 goto BuildFail goto BuildSuccess :BuildDefaults %MSBuild% Runtime.msbuild /m /nr:false /p:Platform="Any CPU" /p:Desktop=true /v:M /fl /flp:LogFile=bin\msbuild.log;Verbosity=Normal if %ERRORLEVEL% neq 0 goto BuildFail goto BuildSuccess :BuildFail echo. echo *** BUILD FAILED *** goto End :BuildSuccess echo. echo **** BUILD SUCCESSFUL *** goto end :End popd endlocal
@echo off pushd %~dp0 setlocal if exist bin goto build mkdir bin :Build REM Find the most recent 32bit MSBuild.exe on the system. If v12.0 (installed with VS2013) does not exist, fall back to REM v4.0. Also handle x86 operating systems, where %ProgramFiles(x86)% is not defined. Always quote the %MSBuild% value REM when setting the variable and never quote %MSBuild% references. set MSBuild="%ProgramFiles(x86)%\MSBuild\12.0\Bin\MSBuild.exe" if not exist %MSBuild% @set MSBuild="%ProgramFiles%\MSBuild\12.0\Bin\MSBuild.exe" if not exist %MSBuild% @set MSBuild="%SystemRoot%\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe" if "%1" == "" goto BuildDefaults %MSBuild% Runtime.msbuild /m /nr:false /t:%* /p:Platform="Any CPU" /p:Desktop=true /v:M /fl /flp:LogFile=bin\msbuild.log;Verbosity=Normal if %ERRORLEVEL% neq 0 goto BuildFail goto BuildSuccess :BuildDefaults %MSBuild% Runtime.msbuild /m /nr:false /p:Platform="Any CPU" /p:Desktop=true /v:M /fl /flp:LogFile=bin\msbuild.log;Verbosity=Normal if %ERRORLEVEL% neq 0 goto BuildFail goto BuildSuccess :BuildFail echo. echo *** BUILD FAILED *** goto End :BuildSuccess echo. echo **** BUILD SUCCESSFUL *** goto end :End popd endlocal
Check for RunTest.cmd before running test on Nano.
@if "%_echo%" neq "on" echo off :: To run tests outside of MSBuild.exe :: %1 is the path to the tests\<OSConfig> folder :: %2 is the path to the packages folder pushd %1 FOR /D %%F IN (*.Tests) DO ( IF EXIST %%F\netcoreapp1.0 ( pushd %%F\netcoreapp1.0 CALL RunTests.cmd %2 popd ) ) popd
@if "%_echo%" neq "on" echo off :: To run tests outside of MSBuild.exe :: %1 is the path to the tests\<OSConfig> folder :: %2 is the path to the packages folder pushd %1 FOR /D %%F IN (*.Tests) DO ( IF EXIST %%F\netcoreapp1.0 ( pushd %%F\netcoreapp1.0 IF EXIST RunTests.cmd ( CALL RunTests.cmd %2 ) popd ) ) popd
Make the Wndows batch callable from any directory
@echo off set NaturalDocsParams= rem Shift and loop so we can get more than nine parameters. rem This is especially important if we have spaces in file names. :MORE if "%1"=="" goto NOMORE set NaturalDocsParams=%NaturalDocsParams% %1 shift goto MORE :NOMORE perl NaturalDocs %NaturalDocsParams% set NaturalDocsParams=
@perl %~dp0NaturalDocs %*
Build Pnacl in hermetic cygwin Use the same cygwin used for the GNU toolchain. This gets us a standard environment that is kept updated on the bots (see cygwin_env.bat).
:: Copyright (c) 2012 The Native Client Authors. All rights reserved. :: Use of this source code is governed by a BSD-style license that can be :: found in the LICENSE file. setlocal set "PATH=c:\cygwin\bin;%PATH%" bash -c "buildbot/buildbot_pnacl.sh %*" if %ERRORLEVEL% neq 0 exit /b %ERRORLEVEL% endlocal
:: Copyright (c) 2012 The Native Client Authors. All rights reserved. :: Use of this source code is governed by a BSD-style license that can be :: found in the LICENSE file. setlocal :: Load the hermetic cygwin environment (downloading/installing/updating :: it if necessary). call "%~dp0cygwin_env.bat" bash -c "buildbot/buildbot_pnacl.sh %*" if %ERRORLEVEL% neq 0 exit /b %ERRORLEVEL% endlocal
Adjust build for windows to change how prefix is defined
:: Build tcplotter command-line utilities using cmake :: Change working directory to archive directory cd "%PKG_NAME%" :: Create build directory cd "src" mkdir build if errorlevel 1 exit 1 cd build if errorlevel 1 exit 1 :: Build with cmake cmake -G "MinGW Makefiles" -DCMAKE_CXX_STANDARD=11 --prefix=%PREFIX% .. if errorlevel 1 exit 1 cmake --build . if errorlevel 1 exit 1 :: Install executables to bin directory cmake --install . --prefix=%PREFIX% if errorlevel 1 exit 1 :: Install tcplotter cd "%SRC_DIR%" $PYTHON -m pip install . -vv
:: Build tcplotter command-line utilities using cmake :: Change working directory to archive directory cd "%PKG_NAME%" :: Create build directory cd "src" mkdir build if errorlevel 1 exit 1 cd build if errorlevel 1 exit 1 :: Build with cmake cmake -G "MinGW Makefiles" -D CMAKE_CXX_STANDARD=11 -D CMAKE_INSTALL_PREFIX=%PREFIX% .. if errorlevel 1 exit 1 cmake --build . if errorlevel 1 exit 1 :: Install executables to bin directory cmake --build . --target install if errorlevel 1 exit 1 :: Install tcplotter cd "%SRC_DIR%" $PYTHON -m pip install . -vv
Fix for spaces in path of repository
@ECHO OFF REM Set data directory with GTFS files as text in separate directories SET DATA_DIRECTORY="%~dp0..\data\gtfs" REM Set output directory for tests in GTFS zip format REM Don't chose a directory inside %DATA_DIRECTORY% SET GTFS_OUTPUT_DIRECTORY="%~dp0tests" REM Set output file for all tests combined in GTFS zip format SET ALL_TESTS_ZIP="%~dp0alltests.zip" REM Add 7-zip path to PATH SET SEVEN_ZIP_PATH="C:\Program Files\7-Zip" IF EXIST %SEVEN_ZIP_PATH% SET PATH=%PATH%;%SEVEN_ZIP_PATH% SET SEVEN_ZIP_PATH="C:\Program Files (x86)\7-Zip" IF EXIST %SEVEN_ZIP_PATH% SET PATH=%PATH%;%SEVEN_ZIP_PATH% REM Create tests in GTFS zip format MKDIR %GTFS_OUTPUT_DIRECTORY% DEL /Q %GTFS_OUTPUT_DIRECTORY%\*.* FOR /F "delims=" %%f in ('dir %DATA_DIRECTORY% /A:D /B /O:N') DO ( 7z a %GTFS_OUTPUT_DIRECTORY%\"%%f.zip" %DATA_DIRECTORY%\"%%f"\*.txt ) REM Combine tests java -jar %~dp0..\bin\onebusaway-gtfs-transformer-cli.jar --overwriteDuplicates %GTFS_OUTPUT_DIRECTORY%\*.zip %ALL_TESTS_ZIP%
@ECHO OFF REM Set data directory with GTFS files as text in separate directories SET DATA_DIRECTORY="%~dp0..\data\gtfs" REM Set output directory for tests in GTFS zip format REM Don't chose a directory inside %DATA_DIRECTORY% SET GTFS_OUTPUT_DIRECTORY="%~dp0tests" REM Set output file for all tests combined in GTFS zip format SET ALL_TESTS_ZIP="%~dp0alltests.zip" REM Add 7-zip path to PATH SET SEVEN_ZIP_PATH="C:\Program Files\7-Zip" IF EXIST %SEVEN_ZIP_PATH% SET PATH=%PATH%;%SEVEN_ZIP_PATH% SET SEVEN_ZIP_PATH="C:\Program Files (x86)\7-Zip" IF EXIST %SEVEN_ZIP_PATH% SET PATH=%PATH%;%SEVEN_ZIP_PATH% REM Create tests in GTFS zip format MKDIR %GTFS_OUTPUT_DIRECTORY% DEL /Q %GTFS_OUTPUT_DIRECTORY%\*.* FOR /F "delims=" %%f in ('dir %DATA_DIRECTORY% /A:D /B /O:N') DO ( 7z a %GTFS_OUTPUT_DIRECTORY%\"%%f.zip" %DATA_DIRECTORY%\"%%f"\*.txt ) REM Combine tests java -jar "%~dp0..\bin\onebusaway-gtfs-transformer-cli.jar" --overwriteDuplicates %GTFS_OUTPUT_DIRECTORY%\*.zip %ALL_TESTS_ZIP%
Add wrapper batch file for Jenkins to build
mkdir ..\libm2dec\Release mkdir ..\libm2dec\Debug mkdir ..\h264dec\Release mkdir ..\h264dec\Debug mkdir ..\m2dec\Release mkdir ..\m2dec\Debug "C:\Program Files (x86)\Renesas\Hew\hmake.exe" m2dec.mak > buildlog.txt find "ERROR" buildlog.txt if errorlevel 1 exit /b 0 exit /b 1
Create archives in windows build script
call tools\build_win_bdist64-py26.bat call tools\build_win_bdist32-py26.bat call tools\build_win_bdist64-py27.bat call tools\build_win_bdist32-py27.bat call tools\build_win_bdist32-py32.bat call tools\build_win_bdist64-py32.bat
call tools\build_win_bdist64-py26.bat call tools\build_win_bdist32-py26.bat call tools\build_win_bdist64-py27.bat call tools\build_win_bdist32-py27.bat call tools\build_win_bdist32-py32.bat call tools\build_win_bdist64-py32.bat call python setup.py sdist --formats=zip,gztar
Call pdflatex in non stop mode
doxygen cd latex pdflatex -shell-escape refman.tex makeindex -s ../refman.ist refman.idx pdflatex -shell-escape refman.tex pdflatex -shell-escape refman.tex cd .. copy latex\refman.pdf .
doxygen cd latex pdflatex -interaction=nonstopmode -shell-escape refman.tex makeindex -s ../refman.ist refman.idx pdflatex -interaction=nonstopmode -shell-escape refman.tex pdflatex -interaction=nonstopmode -shell-escape refman.tex cd .. copy latex\refman.pdf .
Add variable for password to call
"C:\Program Files\PostgreSQL\9.6\bin\psql.exe" -h localhost -U postgres -d system_user_demo_db -p 5432 -f ..\action_user_login.sql 1> test_action_user_login.log 2>&1 "C:\Program Files\PostgreSQL\9.6\bin\psql.exe" -h localhost -U postgres -d system_user_demo_db -p 5432 -f test_action_user_login.sql 1>> test_action_user_login.log 2>>&1
"C:\Program Files\PostgreSQL\9.6\bin\psql.exe" -h localhost -U postgres -d system_user_demo_db -p 5432 -f ..\action_user_login.sql 1> test_action_user_login.log 2>&1 "C:\Program Files\PostgreSQL\9.6\bin\psql.exe" -h localhost -U postgres -d system_user_demo_db -p 5432 -f test_action_user_login_master.sql 1>> test_action_user_login.log 2>>&1
Add build script for MSVC 2017 community.
mkdir obj SET PATH=C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\15.0\Bin;%PATH% SET "VSCMD_START_DIR=%CD%" CALL "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvarsall.bat" amd64 cl.exe /std:c++14 /O2 /MT /EHsc /I . /Fo.\obj\ ^ /D_USE_MATH_DEFINES ^ .\hlt\entity.cpp .\hlt\map.cpp .\hlt\move.cpp ^ .\MyBot.cpp ^ /link /out:MyBot.exe
Expand author in Id keyword with user portion only
@echo off setlocal pushd "%~dp0" for /f %%i in (kwindex.txt) do call :id %%i goto :EOF :id setlocal echo %1 for /f "usebackq tokens=*" %%i in (`hg parents %1 --template "%~nx1 {node|short} {date|isodate} {author}\n"`) do set x=%%i call replace %1 \$Id(:.+?)?\$ "$Id: %x% $" > %temp%\%~nx1 copy %temp%\%~nx1 %1 /y > nul goto :EOF
@echo off setlocal pushd "%~dp0" for /f %%i in (kwindex.txt) do call :id %%i goto :EOF :id setlocal echo %1 for /f "usebackq tokens=*" %%i in (`hg parents %1 --template "%~nx1 {node|short} {date|isodate} {author|user}\n"`) do set x=%%i call replace %1 \$Id(:.+?)?\$ "$Id: %x% $" > %temp%\%~nx1 copy %temp%\%~nx1 %1 /y > nul goto :EOF
Add a batch file to build on Windows with MSVC.
@setlocal @set SCHEME_H_DIR=..\src @set TSCOMPILE=cl /nologo /O2 /W3 /c /D_CRT_SECURE_NO_DEPRECATE /DUSE_DL=1 /I%SCHEME_H_DIR% @set TSLIB=lib /nologo @set TSLINK=link /nologo @set REGSRC=re.c regcomp.c regexec.c regerror.c regfree.c @set OBJPRODN=re.obj regcomp.obj regexec.obj regerror.obj regfree.obj @if "%1" == "static" goto STATIC @if not exist dll\ ( mkdir dll ) %TSCOMPILE% /MT %REGSRC% %TSLINK% /DLL /out:dll\re.dll /export:init_re %OBJPRODN% %TSCOMPILE% /MDd %REGSRC% %TSLINK% /DLL /out:dll\re_d.dll /export:init_re %OBJPRODN% @goto END :STATIC @if not exist lib\ ( mkdir lib ) %TSCOMPILE% /MT %REGSRC% %TSLIB% /out:lib\re.lib %OBJPRODN% %TSCOMPILE% /MDd %REGSRC% %TSLIB% /out:lib\re_d.lib %OBJPRODN% :END del %OBJPRODN%
Fix http-analytics quickstart script for windows
@echo off REM --------------------------------------------------------------------------- REM Copyright (c) 2016, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. 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 --------------------------------------------------------------------------- java -cp "../../bin/*;*" %* org.wso2.appserver.samples.sso.Quickstart
@echo off REM --------------------------------------------------------------------------- REM Copyright (c) 2016, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. 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 ----- if JAVA_HOME is not set we're not happy ------------------------------ :checkJava if "%JAVA_HOME%" == "" goto noJavaHome if not exist "%JAVA_HOME%\bin\java.exe" goto noJavaHome goto checkJdk18 :noJavaHome echo "You must set the JAVA_HOME variable before running the Quickstart." goto end :checkJdk18 "%JAVA_HOME%\bin\java" -version 2>&1 | findstr /r "1.8" >NUL IF ERRORLEVEL 1 goto unknownJdk goto runQuickstart :unknownJdk echo [ERROR] You need to have JDK 1.8 or above to run this Quickstart goto end :runQuickstart "%JAVA_HOME%\bin\java" -cp "../../bin/*;../../lib/*;*" %* org.wso2.appserver.samples.httpanalytics.Quickstart goto end :end
Update Rust version used by Appveyor
curl -sSf https://static.rust-lang.org/dist/rust-1.10.0-i686-pc-windows-msvc.exe -o rust.exe rust.exe /VERYSILENT /NORESTART /DIR="C:\Rust" set PATH=%PATH%;C:\Rust\bin curl -sSf http://releases.llvm.org/%LLVM_VERSION%/LLVM-%LLVM_VERSION%-win32.exe -o LLVM.exe 7z x LLVM.exe -oC:\LLVM set PATH=%PATH%;C:\LLVM\bin set LIBCLANG_PATH=C:\LLVM\bin
curl -sSf https://static.rust-lang.org/dist/rust-1.24.0-i686-pc-windows-msvc.exe -o rust.exe rust.exe /VERYSILENT /NORESTART /DIR="C:\Rust" set PATH=%PATH%;C:\Rust\bin curl -sSf http://releases.llvm.org/%LLVM_VERSION%/LLVM-%LLVM_VERSION%-win32.exe -o LLVM.exe 7z x LLVM.exe -oC:\LLVM set PATH=%PATH%;C:\LLVM\bin set LIBCLANG_PATH=C:\LLVM\bin
Disable pip cache dir on Windows
@ECHO OFF SET BASEDIR=%~dp0 PUSHD %BASEDIR% IF NOT EXIST pyenv\NUL GOTO NOENVDIR ECHO removing existing environment RMDIR /S /Q pyenv :NOENVDIR virtualenv pyenv CALL pyenv\Scripts\activate python -m pip install -r pyenv.pkgs CALL pyenv\Scripts\deactivate POPD
@ECHO OFF SET BASEDIR=%~dp0 PUSHD %BASEDIR% IF NOT EXIST pyenv\NUL GOTO NOENVDIR ECHO removing existing environment RMDIR /S /Q pyenv :NOENVDIR virtualenv pyenv CALL pyenv\Scripts\activate python -m pip install -r pyenv.pkgs --no-cache-dir CALL pyenv\Scripts\deactivate POPD
Add Batch File for Automated Testing with timeout
SET EXE=%2 start %1%EXE% timeout /t %3 FOR /F %%x IN ('tasklist /NH /FI "IMAGENAME eq %EXE%"') DO IF %%x == %EXE% taskkill /im %EXE% /f & exit /b 1 exit /b %errorlevel%
Use xeli instead of eli
set SPECWARE4=\Progra~1\Specware4 rem SWPATH needs /s rather than \s so URI parsing works set SWPATH=/Progra~1/Specware4:/ set XEMACS=C:\Progra~1\XEmacs\XEmacs-21.4.6 rem Set allegro to the version you have set ALLEGRO=C:\Progra~1\acl62 rem set ALLEGRO=C:\Progra~1\acl61 set SPECWARE_BIN=$SPECWARE4\Applications\Specware\bin\windows set LISP_EXECUTABLE=%ALLEGRO%\alisp.exe set LISP_HEAP_IMAGE=%SPECWARE_BIN%\Specware4.dxl set LISP_DIRECTORY=%Specware4%/ cd "%Specware4%" %XEMACS%\i586-pc-win32\xemacs.exe -debug-init -l "%ALLEGRO%/eli/fi-site-init" -l "%SPECWARE4%/Library/IO/Emacs/load" -f "run-specware4" &
set SPECWARE4=\Progra~1\Specware4 rem SWPATH needs /s rather than \s so URI parsing works set SWPATH=/Progra~1/Specware4:/ set XEMACS=C:\Progra~1\XEmacs\XEmacs-21.4.6 rem Set allegro to the version you have rem set ALLEGRO=C:\Progra~1\acl62 set ALLEGRO=C:\Progra~1\acl61 set SPECWARE_BIN=$SPECWARE4\Applications\Specware\bin\windows set LISP_EXECUTABLE=%ALLEGRO%\alisp.exe set LISP_HEAP_IMAGE=%SPECWARE_BIN%\Specware4.dxl set LISP_DIRECTORY=%Specware4%/ cd "%Specware4%" %XEMACS%\i586-pc-win32\xemacs.exe -debug-init -l "%ALLEGRO%/xeli/fi-site-init" -l "%SPECWARE4%/Library/IO/Emacs/load" -f "run-specware4" &
Make Netica.dll available to Windows
java -Djava.library.path=lib -cp lib/NeticaJ.jar;target/vetaraus-1.0-SNAPSHOT-jar-with-dependencies.jar de.dhbw.vetaraus.Application --learn P003_learn.csv P003_classify.csv
set PATH=%PATH%;lib java -Djava.library.path=lib -cp lib/NeticaJ.jar;target/vetaraus-1.0-SNAPSHOT-jar-with-dependencies.jar de.dhbw.vetaraus.Application --learn P003_learn.csv P003_classify.csv
Add script to create nuget packages
msbuild\msbuild ..\src\Torken.CQRS.Core\Torken.CQRS.Core.csproj /p:Configuration=Release nuget\nuget pack ..\src\Torken.CQRS.Core\Torken.CQRS.Core.csproj -IncludeReferencedProjects -Prop Configuration=Release >>log.txt
msbuild\msbuild ..\src\Torken.CQRS.Core\Torken.CQRS.Core.csproj /p:Configuration=Release nuget\nuget pack ..\src\Torken.CQRS.Core\Torken.CQRS.Core.csproj -IncludeReferencedProjects -Prop Configuration=Release
Use no-space path to current directory
@echo off echo. echo Portable Accord.NET Framework NuGet package publisher echo ========================================================= echo. echo This Windows batch file uses NuGet to automatically echo push the Portable Accord.NET Framework packages to the gallery. echo. timeout /T 5 :: Directory settings set output=..\bin\nupkg set current=%~dp0 echo. echo Current directory: %current% echo Output directory: %output% echo. forfiles /p %output% /m *.nupkg /c "cmd /c %current%\NuGet.exe push @file" pause
@echo off echo. echo Portable Accord.NET Framework NuGet package publisher echo ========================================================= echo. echo This Windows batch file uses NuGet to automatically echo push the Portable Accord.NET Framework packages to the gallery. echo. timeout /T 5 :: Directory settings set output=..\bin\nupkg set current=..\..\NuGet echo. echo Current directory: %current% echo Output directory: %output% echo. forfiles /p %output% /m *.nupkg /c "cmd /c %current%\NuGet.exe push @file" pause
Revert "fix syntax in Win ci build script"
@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
Use version of file and defaults runtime and arch
setlocal set BUILDSTAGE=build-stage set NUGETPATH=%BUILDSTAGE%\.nuget set NUGET=%NUGETPATH%\nuget.exe set PACKAGESPATH=%NUGETPATH%\packages :Build_EnvCheck call e5r 1>nul if "%ERRORLEVEL%"=="0" goto Build_NugetDownload echo. echo E5R Environment not installed! goto Build_End :Build_NugetDownload if exist %NUGET% goto Build_Before echo Downloading NuGet... echo TODO: Move to E5R ENV BOOT --tech aspnet if not exist "%NUGETPATH%" md "%NUGETPATH%" @powershell -NoProfile -ExecutionPolicy unrestricted -Command ^ "$ProgressPreference = 'SilentlyContinue'; Invoke-WebRequest 'https://www.nuget.org/nuget.exe' -OutFile '%NUGET%'" :Build_NugetCheck echo TODO: Move to Build_EnvCheck if exist %NUGET% goto Build_Before echo. echo NUGET not installed! goto Build_End :Build_Before call e5r env boot call e5r env install --version 1.0.0-beta3 -runtime CLR -x86 call e5r env use --version 1.0.0-beta3 -runtime CLR -x86 echo TODO: Delete packages.config and use install Sake here call "%NUGET%" install -OutputDirectory %PACKAGESPATH% -ExcludeVersion .\packages.config :Build echo Building... call "%PACKAGESPATH%\Sake\tools\sake.exe" -I "build" -f makefile.shade %* :Build_End
setlocal set BUILDSTAGE=build-stage set NUGETPATH=%BUILDSTAGE%\.nuget set NUGET=%NUGETPATH%\nuget.exe set PACKAGESPATH=%NUGETPATH%\packages :Build_EnvCheck call e5r 1>nul if "%ERRORLEVEL%"=="0" goto Build_NugetDownload echo. echo E5R Environment not installed! goto Build_End :Build_NugetDownload if exist %NUGET% goto Build_Before echo Downloading NuGet... echo TODO: Move to E5R ENV BOOT --tech aspnet if not exist "%NUGETPATH%" md "%NUGETPATH%" @powershell -NoProfile -ExecutionPolicy unrestricted -Command ^ "$ProgressPreference = 'SilentlyContinue'; Invoke-WebRequest 'https://www.nuget.org/nuget.exe' -OutFile '%NUGET%'" :Build_NugetCheck echo TODO: Move to Build_EnvCheck if exist %NUGET% goto Build_Before echo. echo NUGET not installed! goto Build_End :Build_Before call e5r env boot call e5r env install call e5r env use echo TODO: Delete packages.config and use install Sake here call "%NUGET%" install -OutputDirectory %PACKAGESPATH% -ExcludeVersion .\packages.config :Build echo Building... call "%PACKAGESPATH%\Sake\tools\sake.exe" -I "build" -f makefile.shade %* :Build_End
Load .env file on windows.
@echo off rem installer bug. http://stackoverflow.com/a/25095327 mkdir "%APPDATA%\npm" > NUL 2>&1 set PATH=node_modules\.bin;node_modules\lisb-hubot\node_modules\.bin;%PATH% call npm install for /f "delims=\" %%i in ("%CD%") do set UID=%%i if "%REDIS_URL%" == "" ( set REDIS_URL=redis://localhost:6379/%UID% ) if "%1" == "start" ( forever start ^ --uid "%UID%" ^ --minUptime 10000 --spinSleepTime 600000 ^ -o hubot.log -a ^ -w --watchDirectory scripts ^ -c coffee node_modules\.bin\hubot.cmd -a direct %* ) else if "%1" == "stop" ( forever stop "%UID%" ) else if "%1" == "restart" ( forever restart "%UID%" ) else if "%1" == "status" ( forever list | find "] %UID% " ) else if "%1" == "logs" ( cat hubot.log | more ) else ( node_modules\.bin\hubot.cmd -a direct %* )
@echo off rem installer bug. http://stackoverflow.com/a/25095327 mkdir "%APPDATA%\npm" > NUL 2>&1 set PATH=node_modules\.bin;node_modules\lisb-hubot\node_modules\.bin;%PATH% call npm install for /f "delims=\" %%i in ("%CD%") do set UID=%%i for /f "tokens=1,2 delims==" %%i in (.env) do set %%i=%%j if "%REDIS_URL%" == "" ( set REDIS_URL=redis://localhost:6379/%UID% ) if "%1" == "start" ( forever start ^ --uid "%UID%" ^ --minUptime 10000 --spinSleepTime 600000 ^ -o hubot.log -a ^ -w --watchDirectory scripts ^ -c coffee node_modules\.bin\hubot.cmd -a direct %* ) else if "%1" == "stop" ( forever stop "%UID%" ) else if "%1" == "restart" ( forever restart "%UID%" ) else if "%1" == "status" ( forever list | find "] %UID% " ) else if "%1" == "logs" ( cat hubot.log | more ) else ( node_modules\.bin\hubot.cmd -a direct %* )
Add sript to set APIs used by E2E Apps
@echo off if "%1" == "" goto :Error goto :Start :Error echo usage: %0 ^<application name^> echo where application name is a azure mobile Service app. goto :TheEnd :Start call azure mobile api create %1 admin --permissions *=admin call azure mobile api create %1 application --permissions *=application call azure mobile api create %1 user --permissions *=user call azure mobile api create %1 public --permissions *=public call azure mobile api create %1 shared --permissions *=admin call azure mobile api create %1 movieFinder --permissions *=application call azure mobile script upload %1 api/admin.js -f admin.js call azure mobile script upload %1 api/application.js -f application.js call azure mobile script upload %1 api/user.js -f user.js call azure mobile script upload %1 api/public.js -f public.js call azure mobile script upload %1 api/shared.js -f shared.js call azure mobile script upload %1 api/moviefinder.js -f moviefinder.js :TheEnd
Add script to plot dependency graph via cmake --graphviz
@echo off if not exist CMakeCache.txt ( echo Run this script from the CMake build folder exit /b ) if not exist graphviz mkdir graphviz cmake --graphviz=.\graphviz\deps.dot . && dot -Tpng -Gdpi=100 .\graphviz\deps.dot > deps.png && deps.png
Make run_webkit_test.bat workable even if we execute it on a directory other than webkit\tools\layout_tests\.
@..\..\..\third_party\python_24\python.exe run_webkit_tests.py %*
@%~dp0\..\..\..\third_party\python_24\python.exe %~dp0\run_webkit_tests.py %*
Use a different version of vstest.console to make sure the exit code is correct.
@echo off call "..\VsDevCmd.cmd" set platform="%1" if "%1" == "AnyCPU" ( set platform="x86" ) for /r ..\..\Tests\Magick.NET.Tests\bin %%a in (*.dll) do ( if "%%~nxa"=="Magick.NET.Tests.dll" ( echo "Running tests from: %%~dpnxa" vstest.console /inIsolation /platform:%platform% /logger:AppVeyor %%~dpnxa if %errorlevel% neq 0 exit /b %errorlevel% ) )
@echo off call "..\VsDevCmd.cmd" set platform="%1" if "%1" == "AnyCPU" ( set platform="x86" ) set vstest="%VSINSTALLDIR%Common7\IDE\CommonExtensions\Microsoft\TestWindow\vstest.console.exe" for /r ..\..\Tests\Magick.NET.Tests\bin %%a in (*.dll) do ( if "%%~nxa"=="Magick.NET.Tests.dll" ( echo "Running tests from: %%~dpnxa" %vstest% %%~dpnxa /inIsolation /platform:%platform% /TestAdapterPath:%%~dpa /logger:AppVeyor if %errorlevel% neq 0 exit /b %errorlevel% ) )
Disable debug information generation when using ilrepack
msbuild /p:Configuration=Release NSISInfoWriter.sln ilrepack /targetplatform:v4 ^ /out:target\nsisiw.exe ^ /parallel ^ "%~dp0\NSISInfoWriter\bin\Release\nsisiw.exe" ^ "%~dp0\NSISInfoWriter\bin\Release\CommandLine.dll"
msbuild /p:Configuration=Release NSISInfoWriter.sln ilrepack /targetplatform:v4 ^ /out:target\nsisiw.exe ^ /parallel ^ /ndebug ^ "%~dp0\NSISInfoWriter\bin\Release\nsisiw.exe" ^ "%~dp0\NSISInfoWriter\bin\Release\CommandLine.dll"
Update the jenkins build to build Libevent.
md build cd build cmake -DLIBWS_WITH_AUTOBAHN=ON .. cmake --build . ctest bin\Debug\autobahntest.exe --config ..\test\autobahn\libws.cfg
cd deps cd libevent md build cd build cmake -DEVENT__DISABLE_TESTS=ON -DEVENT__DISABLE_REGRESS=ON -DEVENT__DISABLE_BENCHMARK=ON .. cd .. cd .. cd .. md build cd build cmake -DLibevent_DIR=deps/libevent/build/ -DLIBWS_WITH_AUTOBAHN=ON .. cmake --build . ctest bin\Debug\autobahntest.exe --config ..\test\autobahn\libws.cfg
Add an option to clean the test directory
@ECHO off REM This suite requires https://github.com/inkarkat/runVimTests to run ../../runVimTests/bin/runVimTests.cmd --pure vimgrep.suite
@ECHO off REM This suite requires https://github.com/inkarkat/runVimTests to run if %1.==clean. goto Clean if %1.==run. goto Run echo "usage: runall.bat clean|run" goto End :Clean echo Cleaning del /Q *.out 2> nul del /Q *.msgout 2> nul goto End :Run echo Running ../../runVimTests/bin/runVimTests.cmd --pure vimgrep.suite goto End :End
Use velocity and jdom that was copied from jakarta-site2
@echo off echo. echo James Build System echo ------------------- set ANT_HOME=tools set CLASSPATH=lib\xerces.jar %ANT_HOME%\bin\ant.bat -emacs %1 %2 %3 %4 %5 %6 %7 %8 goto cleanup :cleanup set ANT_HOME=
@echo off echo. echo James Build System echo ------------------- set ANT_HOME=tools set CLASSPATH=lib\xerces-1.4.3.jar;tools\lib\velocity-1.3-dev.jar;tools\lib\jdom-b7.jar %ANT_HOME%\bin\ant.bat -emacs %1 %2 %3 %4 %5 %6 %7 %8 goto cleanup :cleanup set ANT_HOME=
Update nuget commandline tool to 4.1.0 for bot.builder.history
@echo off echo *** Building Microsoft.Bot.Builder.History setlocal setlocal enabledelayedexpansion setlocal enableextensions set errorlevel=0 mkdir ..\nuget erase /s ..\nuget\Microsoft.Bot.Builder.History*nupkg msbuild /property:Configuration=release Microsoft.Bot.Builder.History.csproj for /f %%v in ('powershell -noprofile "(Get-Command .\bin\release\Microsoft.Bot.Builder.dll).FileVersionInfo.FileVersion"') do set builder=%%v for /f %%v in ('powershell -noprofile "(Get-Command .\bin\release\Microsoft.Bot.Builder.History.dll).FileVersionInfo.FileVersion"') do set version=%%v ..\..\packages\NuGet.CommandLine.3.4.3\tools\NuGet.exe pack Microsoft.Bot.Builder.History.nuspec -symbols -properties version=%version%;builder=%builder% -OutputDirectory ..\nuget echo *** Finished building Microsoft.Bot.Builder.History
@echo off echo *** Building Microsoft.Bot.Builder.History setlocal setlocal enabledelayedexpansion setlocal enableextensions set errorlevel=0 mkdir ..\nuget erase /s ..\nuget\Microsoft.Bot.Builder.History*nupkg msbuild /property:Configuration=release Microsoft.Bot.Builder.History.csproj for /f %%v in ('powershell -noprofile "(Get-Command .\bin\release\Microsoft.Bot.Builder.dll).FileVersionInfo.FileVersion"') do set builder=%%v for /f %%v in ('powershell -noprofile "(Get-Command .\bin\release\Microsoft.Bot.Builder.History.dll).FileVersionInfo.FileVersion"') do set version=%%v ..\..\packages\NuGet.CommandLine.4.1.0\tools\NuGet.exe pack Microsoft.Bot.Builder.History.nuspec -symbols -properties version=%version%;builder=%builder% -OutputDirectory ..\nuget echo *** Finished building Microsoft.Bot.Builder.History
Fix windows script start collector failure.
@echo off setlocal set COLLECOTR_PROCESS_TITLE=Skywalking-Collector set COLLECTOR_BASE_PATH=%~dp0%.. set COLLECTOR_RUNTIME_OPTIONS="-Xms256M -Xmx512M" set CLASSPATH=%COLLECTOR_BASE_PATH%\config; SET CLASSPATH=%COLLECTOR_BASE_PATH%\libs\*;%CLASSPATH% if ""%JAVA_HOME%"" == """" ( set _EXECJAVA=java ) else ( set _EXECJAVA="%JAVA_HOME%"/bin/java ) start /MIN "%COLLECOTR_PROCESS_TITLE%" %_EXECJAVA% "%COLLECTOR_RUNTIME_OPTIONS%" -cp "%CLASSPATH%" org.skywalking.apm.collector.worker.CollectorBootStartUp & echo Collector started successfully! endlocal
@echo off setlocal set COLLECOTR_PROCESS_TITLE=Skywalking-Collector set COLLECTOR_BASE_PATH=%~dp0%.. set COLLECTOR_RUNTIME_OPTIONS="-Xms256M -Xmx512M" set CLASSPATH=%COLLECTOR_BASE_PATH%\config; SET CLASSPATH=%COLLECTOR_BASE_PATH%\libs\*;%CLASSPATH% if defined JAVA_HOME ( set _EXECJAVA="%JAVA_HOME:"=%"\bin\java ) if not defined JAVA_HOME ( echo "JAVA_HOME not set." set _EXECJAVA=java ) start /MIN "%COLLECOTR_PROCESS_TITLE%" %_EXECJAVA% "%COLLECTOR_RUNTIME_OPTIONS%" -cp "%CLASSPATH%" org.skywalking.apm.collector.worker.CollectorBootStartUp & echo Collector started successfully! endlocal
Make Windows Installer more robust & auto updating
@if not exist "%HOME%" @set HOME=%HOMEDRIVE%%HOMEPATH% @if not exist "%HOME%" @set HOME=%USERPROFILE% @set BASE_DIR=%HOME%\.spf13-vim-3 call git clone --recursive -b 3.0 git://github.com/spf13/spf13-vim.git "%BASE_DIR%" call mkdir "%BASE_DIR%\.vim\bundle" call mklink /J "%HOME%\.vim" "%BASE_DIR%\.vim" call mklink "%HOME%\.vimrc" "%BASE_DIR%\.vimrc" call mklink "%HOME%\_vimrc" "%BASE_DIR%\.vimrc" call mklink "%HOME%\.vimrc.bundles" "%BASE_DIR%\.vimrc.bundles" call git clone http://github.com/gmarik/vundle.git "%HOME%/.vim/bundle/vundle" call vim -u "%BASE_DIR%/.vimrc.bundles" +BundleInstall! +BundleClean +qall
@if not exist "%HOME%" @set HOME=%HOMEDRIVE%%HOMEPATH% @if not exist "%HOME%" @set HOME=%USERPROFILE% @set BASE_DIR=%HOME%\.spf13-vim-3 IF NOT EXIST "%BASE_DIR%" ( call git clone --recursive -b 3.0 https://github.com/spf13/spf13-vim.git "%BASE_DIR%" ) ELSE ( @set ORIGINAL_DIR=%CD% echo updating spf13-vim chdir /d "%BASE_DIR%" call git pull chdir /d "%ORIGINAL_DIR%" call cd "%BASE_DIR%" ) call mklink "%HOME%\.vimrc" "%BASE_DIR%\.vimrc" call mklink "%HOME%\_vimrc" "%BASE_DIR%\.vimrc" call mklink "%HOME%\.vimrc.fork" "%BASE_DIR%\.vimrc.fork" call mklink "%HOME%\.vimrc.bundles" "%BASE_DIR%\.vimrc.bundles" call mklink "%HOME%\.vimrc.bundles.fork" "%BASE_DIR%\.vimrc.bundles.fork" call mklink /J "%HOME%\.vim" "%BASE_DIR%\.vim" IF NOT EXIST "%BASE_DIR%\.vim\bundle" ( call mkdir "%BASE_DIR%\.vim\bundle" ) IF NOT EXIST "%HOME%/.vim/bundle/vundle" ( call git clone https://github.com/gmarik/vundle.git "%HOME%/.vim/bundle/vundle" ) call vim -u "%BASE_DIR%/.vimrc.bundles" +BundleInstall! +BundleClean +qall
Trim down the Windows installer size
@echo off echo Compiling... cd windeployqt qmake windeployqt.pro IF ERRORLEVEL ==1 GOTO :ERROR mingw32-make.exe release IF ERRORLEVEL ==1 GOTO :ERROR cd .. qmake presi-aoke.pro IF ERRORLEVEL ==1 GOTO :ERROR mingw32-make.exe release IF ERRORLEVEL ==1 GOTO :ERROR echo Copying files to staging del /Q /S .\staging mkdir .\staging copy .\release\presi-aoke.exe .\staging echo Copying qt libraries to staging .\windeployqt\release\windeployqt.exe .\staging\presi-aoke.exe -no-translations -no-webkit2 -opengl echo Creating installer if exist "C:\Program Files (x86)\NSIS\makensis.exe" (set nsis="C:\Program Files (x86)\NSIS\makensis.exe") else (set nsis="C:\Program Files\NSIS\makensis.exe") %nsis% presi-aoke.nsi IF ERRORLEVEL ==1 GOTO :ERROR echo Build complete EXIT /B 0 :ERROR ECHO Build failed. EXIT /B 1
@echo off echo Compiling... cd windeployqt qmake windeployqt.pro IF ERRORLEVEL ==1 GOTO :ERROR mingw32-make.exe release IF ERRORLEVEL ==1 GOTO :ERROR cd .. qmake presi-aoke.pro IF ERRORLEVEL ==1 GOTO :ERROR mingw32-make.exe release IF ERRORLEVEL ==1 GOTO :ERROR echo Copying files to staging del /Q /S .\staging mkdir .\staging copy .\release\presi-aoke.exe .\staging echo Copying qt libraries to staging .\windeployqt\release\windeployqt.exe .\staging\presi-aoke.exe -no-translations -no-webkit -no-webkit2 -no-opengl -no-svg rem Trim a bunch of plugins that we don't use del /Q /S .\staging\iconengines erase .\staging\imageformats\qdds*.dll .\staging\imageformats\qicns*.dll .\staging\imageformats\qico*.dll .\staging\imageformats\qjp2*.dll .\staging\imageformats\qmng*.dll .\staging\imageformats\qsvg*.dll .\staging\imageformats\qtga*.dll .\staging\imageformats\qtiff*.dll .\staging\imageformats\qweb*.dll erase .\staging\imageformats\qgifd.dll .\staging\imageformats\qjpegd.dll .\staging\imageformats\qwbmpd.dll echo Creating installer if exist "C:\Program Files (x86)\NSIS\makensis.exe" (set nsis="C:\Program Files (x86)\NSIS\makensis.exe") else (set nsis="C:\Program Files\NSIS\makensis.exe") %nsis% presi-aoke.nsi IF ERRORLEVEL ==1 GOTO :ERROR echo Build complete EXIT /B 0 :ERROR ECHO Build failed. EXIT /B 1
Check for errors regarding ICProjConvert150
@echo off if "%~1" == "" ( echo Usage: release_win.bat path-to-bin-folder goto end ) setlocal set destroot=%cd%\%~1 set DESTDIR= mkdir build cd build del CMakeCache.txt rem make sure to use default settings cmake -D CMAKE_INSTALL_PREFIX=%destroot%\x64 -D COMPILER=ICC -G "Visual Studio 12 2013 Win64" .. ICProjConvert150 embree.sln /IC /s /f cmake --build . --config Release --target INSTALL -- /m cmake --build . --config Release --target PACKAGE -- /m copy embree*.exe %destroot% cd .. mkdir build32 cd build32 del CMakeCache.txt rem make sure to use default settings cmake -D CMAKE_INSTALL_PREFIX=%destroot%\win32 -D COMPILER=ICC -G "Visual Studio 12 2013" .. ICProjConvert150 embree.sln /IC /s /f cmake --build . --config Release --target INSTALL -- /m cmake --build . --config Release --target PACKAGE -- /m copy embree*.exe %destroot% cd .. endlocal :end
@echo off if "%~1" == "" ( echo Usage: release_win.bat path-to-bin-folder goto end ) setlocal set destroot=%cd%\%~1 set DESTDIR= mkdir build cd build del CMakeCache.txt rem make sure to use default settings cmake -D CMAKE_INSTALL_PREFIX=%destroot%\x64 -D COMPILER=ICC -G "Visual Studio 12 2013 Win64" .. ICProjConvert150 embree.sln /IC /s /f if %ERRORLEVEL%==9009 ( echo Problems converting the project to ICC, aborting goto abort ) cmake --build . --config Release --target INSTALL -- /m cmake --build . --config Release --target PACKAGE -- /m copy embree*.exe %destroot% cd .. mkdir build32 cd build32 del CMakeCache.txt rem make sure to use default settings cmake -D CMAKE_INSTALL_PREFIX=%destroot%\win32 -D COMPILER=ICC -G "Visual Studio 12 2013" .. ICProjConvert150 embree.sln /IC /s /f if %ERRORLEVEL%==9009 ( echo Problems converting the project to ICC, aborting goto abort ) cmake --build . --config Release --target INSTALL -- /m cmake --build . --config Release --target PACKAGE -- /m copy embree*.exe %destroot% cd .. :abort endlocal :end
Add an argument to run only certain tests
@ECHO off REM This suite requires https://github.com/inkarkat/runVimTests to run if %1.==clean. goto Clean if %1.==run. goto Run echo "usage: runall.bat clean|run" goto End :Clean echo Cleaning del /Q *.out 2> nul del /Q *.msgout 2> nul goto End :Run echo Running ../../runVimTests/bin/runVimTests.cmd --pure vimgrep.suite goto End :End
@ECHO off REM This suite requires https://github.com/inkarkat/runVimTests to run if %1.==clean. goto Clean if %1.==run. goto Run if %1.==runall. goto RunAll echo "usage: runall.bat clean|run|runall" goto End :Clean echo Cleaning del /Q *.out 2> nul del /Q *.msgout 2> nul goto End :Run shift echo Running %1 %2 %3 %4 %5 %6 %7 %8 %9 ../../runVimTests/bin/runVimTests.cmd --pure %1 %2 %3 %4 %5 %6 %7 %8 %9 goto End :RunAll echo Running all ../../runVimTests/bin/runVimTests.cmd --pure vimgrep.suite goto End :End
Disable tortoise git context menu on more types
@echo off setlocal EnableDelayedExpansion set registryRoot=HKCU\Software\Classes set key=TortoiseGit reg add "%registryRoot%\*\shellex\ContextMenuHandlers\%key%" /d "---" /f reg add "%registryRoot%\Directory\Background\shellex\ContextMenuHandlers\%key%" /d "---" /f reg add "%registryRoot%\Directory\shellex\ContextMenuHandlers\%key%" /d "---" /f reg add "%registryRoot%\Drive\shellex\ContextMenuHandlers\%key%" /d "---" /f reg add "%registryRoot%\Folder\shellex\ContextMenuHandlers\%key%" /d "---" /f
@echo off setlocal EnableDelayedExpansion set registryRoot=HKCU\Software\Classes set key=TortoiseGit reg add "%registryRoot%\*\shellex\ContextMenuHandlers\%key%" /d "---" /f reg add "%registryRoot%\Directory\Background\shellex\ContextMenuHandlers\%key%" /d "---" /f reg add "%registryRoot%\Directory\shellex\ContextMenuHandlers\%key%" /d "---" /f reg add "%registryRoot%\Drive\shellex\ContextMenuHandlers\%key%" /d "---" /f reg add "%registryRoot%\Folder\shellex\ContextMenuHandlers\%key%" /d "---" /f reg add "%registryRoot%\InternetShortcut\shellex\ContextMenuHandlers\%key%" /d "---" /f reg add "%registryRoot%\LibraryFolder\background\shellex\ContextMenuHandlers\%key%" /d "---" /f reg add "%registryRoot%\LibraryLocation\shellex\ContextMenuHandlers\%key%" /d "---" /f reg add "%registryRoot%\lnkfile\shellex\ContextMenuHandlers\%key%" /d "---" /f
Delete jar after packaging in zip
call sbt assembly del greedy.zip java -jar out/proguard5.0/lib/proguard.jar @proguard.config "C:\Program Files\7-Zip\7za.exe" a -tzip greedy.zip greedy.jar PAUSE
call sbt assembly del greedy.zip java -jar out/proguard5.0/lib/proguard.jar @proguard.config "C:\Program Files\7-Zip\7za.exe" a -tzip greedy.zip greedy.jar del greedy.jar PAUSE
Delete pdb files so they are not included in source zips.
rem ba.bat - download and build all of scintilla and scite rd /s/q scintilla scite cvs co scintilla scite cd scintilla call delbin del/q bin\*.a call delcvs call zipsrc cd win32 nmake -f scintilla.mak cd .. cd .. cd scite del/q bin\*.properties del/q bin\SciTE call delbin call delcvs call zipsrc cd win32 nmake -f scite.mak cd .. call upxsc1 call zipwscite call delbin cd .. cd scintilla call delbin cd ..
rem ba.bat - download and build all of scintilla and scite rd /s/q scintilla scite cvs co scintilla scite cd scintilla call delbin del/q bin\*.a call delcvs call zipsrc cd win32 nmake -f scintilla.mak cd .. del/q bin\*.pdb cd .. cd scite del/q bin\*.properties del/q bin\SciTE call delbin call delcvs call zipsrc cd win32 nmake -f scite.mak cd .. call upxsc1 call zipwscite call delbin cd .. cd scintilla call delbin cd ..
Move build type variables to the top
for /f %%c in ('wmic cpu get NumberOfCores ^| findstr [0-9]') do set "CORES=%%c" set SOURCE_DIR=%CD% set BUILD_DIR=../build-sqlitewrapper set CMAKE_COMMAND=cmake.exe set MAKE_COMMAND=C:\Qt-Installation\Tools\QtCreator\bin\jom.exe /J %CORES% call "C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\Tools\VsDevCmd.bat" python projectfiles_unchanged.py if %ERRORLEVEL% NEQ 0 ( RMDIR /S /Q "%BUILD_DIR%" ) if not exist "%BUILD_DIR%" mkdir "%BUILD_DIR%" cd "%BUILD_DIR%" || goto error %CMAKE_COMMAND% -DCMAKE_BUILD_TYPE=Release -G "NMake Makefiles" "%SOURCE_DIR%" || goto error %MAKE_COMMAND% || goto error cd "%SOURCE_DIR%" goto :EOF :error cd "%SOURCE_DIR%" exit /b 1
set BUILD_DIR=../build-sqlitewrapper set CMAKE_BUILD_TYPE=Release for /f %%c in ('wmic cpu get NumberOfCores ^| findstr [0-9]') do set "CORES=%%c" set SOURCE_DIR=%CD% set CMAKE_COMMAND=cmake.exe set MAKE_COMMAND=C:\Qt-Installation\Tools\QtCreator\bin\jom.exe /J %CORES% call "C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\Tools\VsDevCmd.bat" python projectfiles_unchanged.py if %ERRORLEVEL% NEQ 0 ( RMDIR /S /Q "%BUILD_DIR%" ) if not exist "%BUILD_DIR%" mkdir "%BUILD_DIR%" cd "%BUILD_DIR%" || goto error %CMAKE_COMMAND% -DCMAKE_BUILD_TYPE=%CMAKE_BUILD_TYPE% -G "NMake Makefiles" "%SOURCE_DIR%" || goto error %MAKE_COMMAND% || goto error cd "%SOURCE_DIR%" goto :EOF :error cd "%SOURCE_DIR%" exit /b 1
Convert Windows build script to MSVC
set SOURCE_DIR=%CD% set BUILD_DIR=build-sqlitewrapper set CMAKE_COMMAND=cmake.exe set MAKE_COMMAND=mingw32-make.exe -j2 cd .. if not exist "%BUILD_DIR%" mkdir "%BUILD_DIR%" cd "%BUILD_DIR%" || goto error %CMAKE_COMMAND% -G "MinGW Makefiles" "%SOURCE_DIR%" || goto error %MAKE_COMMAND% || goto error cd "%SOURCE_DIR%" exit /b 0 :error cd "%SOURCE_DIR%" exit /b 1
set SOURCE_DIR=%CD% set BUILD_DIR=build-sqlitewrapper set CMAKE_COMMAND=cmake.exe set MAKE_COMMAND=C:\Qt\Tools\QtCreator\bin\jom.exe /J 2 call "C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\Tools\VsDevCmd.bat" cd .. if not exist "%BUILD_DIR%" mkdir "%BUILD_DIR%" cd "%BUILD_DIR%" || goto error %CMAKE_COMMAND% -DCMAKE_BUILD_TYPE=Release -G "NMake Makefiles" "%SOURCE_DIR%" || goto error %MAKE_COMMAND% || goto error cd "%SOURCE_DIR%" exit /b 0 :error cd "%SOURCE_DIR%" exit /b 1
Fix OpenBLAS build on Windows
@echo off rem rem Extra installation script rem rem See CK LICENSE.txt for licensing details. rem See CK Copyright.txt for copyright details. rem rem Developer(s): Grigori Fursin, 2016-2017 rem rem ############################################################ echo. echo Preparing vars ... cd %INSTALL_DIR%\%PACKAGE_SUB_DIR% mingw32-make PREFIX="%INSTALL_DIR%\install" BINARY=%CK_TARGET_CPU_BITS% ONLY_CBLAS=1 MAKE=mingw32-make.exe CFLAGS="-DMS_ABI" NOFORTRAN=1 NO_LAPACK=1 if %errorlevel% neq 0 ( echo. echo Error: make failed! goto err ) mingw32-make install PREFIX="%INSTALL_DIR%\install" if %errorlevel% neq 0 ( echo. echo Error: make install failed! goto err ) exit /b 0
@echo off rem rem Extra installation script rem rem See CK LICENSE.txt for licensing details. rem See CK Copyright.txt for copyright details. rem rem Developer(s): Grigori Fursin, 2016-2017 rem rem ############################################################ echo. echo Preparing vars ... cd %INSTALL_DIR%\%PACKAGE_SUB_DIR% rem mingw32-make PREFIX="%INSTALL_DIR%\install" BINARY=%CK_TARGET_CPU_BITS% ONLY_CBLAS=1 MAKE=mingw32-make.exe CFLAGS="-DMS_ABI" NOFORTRAN=1 NO_LAPACK=1 make PREFIX="%INSTALL_DIR%\install" BINARY=%CK_TARGET_CPU_BITS% CC=gcc FC=gfortran if %errorlevel% neq 0 ( echo. echo Error: make failed! goto err ) mingw32-make install PREFIX="%INSTALL_DIR%\install" if %errorlevel% neq 0 ( echo. echo Error: make install failed! goto err ) exit /b 0
Fix Windows bat file for SDK try
@echo off :: Copyright (c) 2012 The The Chromium Authors. All rights reserved. :: Use of this source code is governed by a BSD-style license that can be :: found in the LICENSE file. setlocal :: TODO(noelallen) Share list with POSIX gcl try %* -b naclsdkm-mac -b naclsdkm-linux -b naclsdkm-linux ^ -b naclsdkm-pnacl-linux -b naclsdkm-pnacl-mac -b naclsdkm-windows32 ^ -b naclsdkm-windows64 -S svn://svn.chromium.org/chrome-try/try-nacl
@echo off :: Copyright (c) 2012 The The Chromium Authors. All rights reserved. :: Use of this source code is governed by a BSD-style license that can be :: found in the LICENSE file. setlocal :: TODO(noelallen) Share list with POSIX gcl try %* -b naclsdkm-mac -b naclsdkm-linux -b naclsdkm-pnacl-linux ^ -b naclsdkm-windows32 -b naclsdkm-windows64 ^ -S svn://svn.chromium.org/chrome-try/try-nacl
Fix script to require VS 2019.
@echo off setlocal if not defined VisualStudioVersion ( if defined VS140COMNTOOLS ( call "%VS140COMNTOOLS%\VsDevCmd.bat" goto :EnvSet ) if defined VS120COMNTOOLS ( call "%VS120COMNTOOLS%\VsDevCmd.bat" goto :EnvSet ) echo Error: %~nx0 requires Visual Studio 2013 or 2015. echo Please see https://github.com/dotnet/wcf/blob/master/Documentation/developer-guide.md for build instructions. exit /b 1 ) :EnvSet :: Log build command line set _buildproj=%~dp0..\CertificateGenerator\CertificateGenerator.sln set _buildlog=%~dp0..\..\..\..\msbuildCertificateGenerator.log set _buildprefix=echo set _buildpostfix=^> "%_buildlog%" set cmd=msbuild /p:Configuration=Release /t:restore;build "%_buildproj%" /nologo /maxcpucount /verbosity:minimal /nodeReuse:false /fileloggerparameters:Verbosity=diag;LogFile="%_buildlog%";Append %* echo %cmd% %cmd% set BUILDERRORLEVEL=%ERRORLEVEL% :AfterBuild echo. :: Pull the build summary from the log file findstr /ir /c:".*Warning(s)" /c:".*Error(s)" /c:"Time Elapsed.*" "%_buildlog%" echo Build Exit Code = %BUILDERRORLEVEL% exit /b %BUILDERRORLEVEL%
@echo off setlocal if not defined VisualStudioVersion ( if defined VS160COMNTOOLS ( call "%VS160COMNTOOLS%\VsDevCmd.bat" goto :EnvSet ) echo Error: %~nx0 requires Visual Studio 2019 because the .NET Core 3.0 SDK is needed. echo Please see https://github.com/dotnet/wcf/blob/master/Documentation/developer-guide.md for build instructions. exit /b 1 ) :EnvSet :: Log build command line set _buildproj=%~dp0..\CertificateGenerator\CertificateGenerator.sln set _buildlog=%~dp0..\..\..\..\msbuildCertificateGenerator.log set _buildprefix=echo set _buildpostfix=^> "%_buildlog%" set cmd=msbuild /p:Configuration=Release /t:restore;build "%_buildproj%" /nologo /maxcpucount /verbosity:minimal /nodeReuse:false /fileloggerparameters:Verbosity=diag;LogFile="%_buildlog%";Append %* echo %cmd% %cmd% set BUILDERRORLEVEL=%ERRORLEVEL% :AfterBuild echo. :: Pull the build summary from the log file findstr /ir /c:".*Warning(s)" /c:".*Error(s)" /c:"Time Elapsed.*" "%_buildlog%" echo Build Exit Code = %BUILDERRORLEVEL% exit /b %BUILDERRORLEVEL%
Update script, seems to work for Qt-5.7.0 now.
set S7Z=%~dp0.\bin\7za.exe mkdir Package copy Source\*.txt Package\ copy Source\*LICENSE* Package\ copy Source\*README* Package\ "%S7Z%" x -oPackage Build\package-*.7z echo [Paths]>>Package\bin\qt.conf echo Prefix=..>>Package\bin\qt.conf pushd Package\include for /f "delims=" %%D in ('dir /ad /b /s ^| sort /r') DO @rmdir "%%D" popd move Package "%1" "%S7Z%" a "%1.7z" "%1"
set S7Z=%~dp0.\bin\7za.exe mkdir Package copy Source\*.txt Package\ copy Source\*LICENSE* Package\ copy Source\*README* Package\ "%S7Z%" x -oPackage Build\package-*.7z echo [Paths]>>Package\bin\qt.conf echo Prefix=..>>Package\bin\qt.conf pushd Package\include for /f "delims=" %%D in ('dir /ad /b /s ^| sort /r') DO @rmdir "%%D" popd xcopy /e /y Package\lib\cmake\install Package\lib\cmake move Package "%1" "%S7Z%" a "%1.7z" "%1"
Tweak packaging script for spaces in filenames
@echo off set zipcmd=%~dp0\tools\7z\7z.exe pushd %~dp0\..\.. %zipcmd% a -r -x!scripts -xr!.* -x!__pycache__ -x!docs -x!README.md blenderseed-x.x.x.zip blenderseed popd move ..\..\blenderseed-x.x.x.zip . pause
@echo off set zipcmd="%~dp0\tools\7z\7z.exe" pushd %~dp0\..\.. %zipcmd% a -r -x!scripts -xr!.* -x!__pycache__ -x!docs -x!README.md blenderseed-x.x.x.zip blenderseed popd move ..\..\blenderseed-x.x.x.zip . pause
Add functional Windows pull script
@echo off REM Emacs XCOPY /Y emacs\.emacs "%APPDATA%\.emacs" REM nano XCOPY /Y nano\.nanorc "%USERPROFILE%\.nanorc" REM Vim XCOPY /Y vim\.vimrc "%USERPROFILE%\.vimrc" REM bash XCOPY /Y bash\.bashrc "%USERPROFILE%\.bashrc" XCOPY /Y bash\.bash_aliases "%USERPROFILE%\.bash_aliases" REM Sublime Text 3 MKDIR "%APPDATA%\Sublime Text 3\Packages\Custom Color Schemes\" MKDIR "%APPDATA%\Sublime Text 3\Packages\User\" XCOPY /Y sublime\Preferences.sublime-settings "%APPDATA%\Sublime Text 3\Packages\User\" XCOPY /Y sublime\Default.sublime-keymap "%APPDATA%\Sublime Text 3\Packages\User\" XCOPY /Y sublime\jcd.tmTheme "%APPDATA%\Sublime Text 3\Packages\Custom Color Schemes\"
Add more lightweigth tools instead of full VS suite
@echo on choco install -y --allowEmptyChecksum firefox googlechrome wget notepadplusplus sublimetext3 mono monodevelop gtksharp visualstudiocode microsoft-build-tools visualstudio2015community p4merge dotnet4.5 ruby nodejs.install stylecop conemu dejavufonts call refreshenv wget -c https://cygwin.com/setup-x86_64.exe setup-x86_64.exe -R "C:\cygwin64" -s http://mirror.switch.ch/ftp/mirror/cygwin/ -q -g -P curl,zsh,git,vim,wget,xz,tar,gawk,bzip2,subversion,zlib,fontconfig,clang,cmake,lua,perl,the_silver_searcher set script_path=%~dp0 set repo_path=%script_path%\..\ set bash=c:\cygwin64\bin\bash.exe --login -c for /f "delims=" %%A in ('%bash% "cd `cygpath $HOMEPATH`/dev/dotfiles && git rev-parse --abbrev-ref HEAD"') do set "branch=%%A" %bash% 'echo "branch is $branch"' %bash% "cp -vr `cygpath $HOMEPATH`/.ssh $HOME/" %bash% "export OUTER_CLONE=`cygpath $repo_path` && $script_path/build_insider.sh"
@echo on choco install -y --allowEmptyChecksum firefox googlechrome wget notepadplusplus sublimetext3 mono monodevelop gtksharp visualstudiocode p4merge dotnet4.5 ruby nodejs.install stylecop conemu dejavufonts ag call refreshenv wget -c https://cygwin.com/setup-x86_64.exe setup-x86_64.exe -R "C:\cygwin64" -s http://mirror.switch.ch/ftp/mirror/cygwin/ -q -g -P curl,zsh,git,vim,wget,xz,tar,gawk,bzip2,subversion,zlib,fontconfig,clang,cmake,lua,perl,the_silver_searcher set script_path=%~dp0 set repo_path=%script_path%\..\ set bash=c:\cygwin64\bin\bash.exe --login -c for /f "delims=" %%A in ('%bash% "cd `cygpath $HOMEPATH`/dev/dotfiles && git rev-parse --abbrev-ref HEAD"') do set "branch=%%A" %bash% 'echo "branch is $branch"' %bash% "cp -vr `cygpath $HOMEPATH`/.ssh $HOME/" %bash% "export OUTER_CLONE=`cygpath $repo_path` && $script_path/build_insider.sh"
Revert usage to power shell
@echo off IF %1.==. GOTO No1 set CONFIG=%1 REM set debug parameters REM set DEBUG_OPTS="-Xdebug -Xrunjdwp:transport=dt_socket,address=1044,server=y,suspend=y" @powershell -Command "java -cp \"..\lib\*\" %DEBUG_OPTS% \"-Daerobase.config.dir=%CONFIG%\" org.jboss.aerogear.unifiedpush.DBMaintenance" GOTO End1 :No1 ECHO Missing Config file GOTO End1 :End1 @ECHO ON
@ECHO OFF IF %1.==. GOTO No1 set CONFIG=%1 REM set debug parameters REM set DEBUG_OPTS="-Xdebug -Xrunjdwp:transport=dt_socket,address=1044,server=y,suspend=y" @powershell -Command "java -cp '..\lib\*' %DEBUG_OPTS% \"-Daerobase.config.dir=%CONFIG%\" org.jboss.aerogear.unifiedpush.DBMaintenance" GOTO End1 :No1 ECHO Missing Config file GOTO End1 :End1 @ECHO ON
Fix launch script for windows.
set PWD=%~dp0 start /MIN "%PWD%dbserver\bin\openmole-dbserver.bat" mkdir "%UserProfile%\.openmole\.tmp" set ran="%UserProfile%\.openmole\.tmp\%random%" java -d64 -version >nul 2>&1 if errorlevel 1 goto is32bit set FLAG="-XX:+UseCompressedOops" :is32bit java -Dosgi.locking=none -Dopenmole.location="%PWD%\" -Dosgi.classloader.singleThreadLoads=true -Dosgi.configuration.area=%ran% -splash:splashscreen.png -XX:MaxPermSize=128M -XX:+UseG1GC -Xmx1G -XX:MaxPermSize=128M %FLAG% -jar "%PWD%/plugins/org.eclipse.equinox.launcher.jar" -consoleLog -cp "%PWD%/openmole-plugins" -gp "%PWD%/openmole-plugins-gui" %* rmdir /s /q %ran%
set startdir=%cd% set PWD=%~dp0 cd /d %~dp0 start /MIN dbserver\bin\openmole-dbserver.bat cd %cd% mkdir "%UserProfile%\.openmole\.tmp" set ran="%UserProfile%\.openmole\.tmp\%random%" java -d64 -version >nul 2>&1 if errorlevel 1 goto is32bit set FLAG="-XX:+UseCompressedOops" :is32bit java -Dosgi.locking=none -Dopenmole.location="%PWD%\" -Dosgi.classloader.singleThreadLoads=true -Dosgi.configuration.area=%ran% -splash:splashscreen.png -XX:MaxPermSize=128M -XX:+UseG1GC -Xmx1G -XX:MaxPermSize=128M %FLAG% -jar "%PWD%/plugins/org.eclipse.equinox.launcher.jar" -consoleLog -cp "%PWD%/openmole-plugins" -gp "%PWD%/openmole-plugins-gui" %* rmdir /s /q %ran%
Fix reference to Berkeley Java DB .jar file
copy ..\..\..\Rel\_Deployment\RelDBMS.jar . copy ..\..\..\Rel\_Deployment\commons-codec-1.4.jar . copy ..\..\..\Rel\_Deployment\commons-logging-1.1.1.jar . copy ..\..\..\Rel\_Deployment\ecj-4.4.2.jar . copy ..\..\..\Rel\_Deployment\httpclient-4.1.3.jar . copy ..\..\..\Rel\_Deployment\httpclient-cache-4.1.3.jar . copy ..\..\..\Rel\_Deployment\httpcore-4.1.4.jar . copy ..\..\..\Rel\_Deployment\httpmime-4.1.3.jar . copy ..\..\..\Rel\_Deployment\je-6.3.8.jar . copy ..\..\..\Rel\_Deployment\rel0000.jar . copy ..\..\..\Rel\_Deployment\relclient.jar . copy ..\..\..\Rel\_Deployment\relshared.jar .
copy ..\..\..\Rel\_Deployment\RelDBMS.jar . copy ..\..\..\Rel\_Deployment\commons-codec-1.4.jar . copy ..\..\..\Rel\_Deployment\commons-logging-1.1.1.jar . copy ..\..\..\Rel\_Deployment\ecj-4.4.2.jar . copy ..\..\..\Rel\_Deployment\httpclient-4.1.3.jar . copy ..\..\..\Rel\_Deployment\httpclient-cache-4.1.3.jar . copy ..\..\..\Rel\_Deployment\httpcore-4.1.4.jar . copy ..\..\..\Rel\_Deployment\httpmime-4.1.3.jar . copy ..\..\..\Rel\_Deployment\je-7.0.6.jar . copy ..\..\..\Rel\_Deployment\rel0000.jar . copy ..\..\..\Rel\_Deployment\relclient.jar . copy ..\..\..\Rel\_Deployment\relshared.jar .
Update directory tree for latest install of ddkbuild
copy /B objfre\i386\winpmc.sys c:\winnt\system32\drivers ntaddsvc winpmc net start winpmc
copy /B objfre_wnet_x86\i386\winpmc.sys c:\winnt\system32\drivers ntaddsvc winpmc net start winpmc
Convert the README file to HTML and include it in the bundle.
cd /d %~dp0 mkdir OSVR-Unity-Dist mkdir OSVR-Unity-Dist\src mkdir OSVR-Unity-Dist\src\OSVR-Unity mkdir OSVR-Unity-Dist\src\Managed-OSVR xcopy Managed-OSVR OSVR-Unity-Dist\src\Managed-OSVR /Y /S xcopy OSVR-Unity OSVR-Unity-Dist\src\OSVR-Unity /Y /S
cd /d %~dp0 mkdir OSVR-Unity-Dist mkdir OSVR-Unity-Dist\src mkdir OSVR-Unity-Dist\src\OSVR-Unity mkdir OSVR-Unity-Dist\src\Managed-OSVR xcopy Managed-OSVR OSVR-Unity-Dist\src\Managed-OSVR /Y /S xcopy OSVR-Unity OSVR-Unity-Dist\src\OSVR-Unity /Y /S rem the -F 0x4 is to turn off smartypants. third-party/discount-2.1.6-win32/markdown.exe -F 0x4 -o README.html OSVR-Unity/README.md move README.html OSVR-Unity-Dist\
Add cmd script to run the new single test case
@echo off pushd %~dp0 "%VS120COMNTOOLS%..\IDE\mstest" /test:Microsoft.Protocols.TestSuites.MS_ONESTORE.S02_OneNoteRevisionStore.MSONESTORE_S02_TC06_LoadOneNoteWithAlternativePackaging /testcontainer:..\..\MS-ONESTORE\TestSuite\bin\Debug\MS-ONESTORE_TestSuite.dll /runconfig:..\..\MS-ONESTORE\MS-ONESTORE.testsettings /unique pause
Deploy - Open webstore editing page.
@echo off ::Move into chrome directory, zip it, then return here. cd chrome && call "7-zip.bat" && cd .. ::Merge psdle.js, psdle.user.js, and psdle.min.js to gh-pages. call "deploy-sync.bat" pause
::This is a near full-circle deployment script for PSDLE. ::It does two major things: :: - ./chrome/7-zip.bat - Zip up the PSDLE chrome extension properly for the webstore (and then opens the webstore for uploading). :: - ./deploy-sync.bat - Copy psdle.js, psdle.user.js, and psdle.min.js to the gh-pages branch for everything else. ::Generally, only actual developers will find this useful. The 7-zip.bat is universally functional though. ::Currently the min file is generated manually with Notepad++'s JSTool plugin which has JSMin built in. This may change in the future. ::deploy-sync expects git available in PATH and ready to go. @echo off ::Move into chrome directory, zip it, then return here. cd chrome && call "7-zip.bat" && cd .. ::Open the chrome extension editing page on webstore. explorer "https://chrome.google.com/webstore/developer/edit/jdjhhapoddhnimgdemnpbfagndcnmhii" ::Checkout psdle.js, psdle.user.js, and psdle.min.js to gh-pages. call "deploy-sync.bat" pause
Add script to start bot on Windows
@echo off REM StarBot run script for Windows. REM Get latest version and star bot. echo Updating... git pull echo Starting bot... python main.py REM Loop back again. goto start
Add jenkins script for windows
cd %WORKSPACE% set PYTHON=c:\python26\python set EASY_INSTALL=c:\python26\scripts\easy_install.exe set NEXUSDIR="C:\Program Files (x86)\NeXus Data Format\" set PATH=c:\python26;c:\mingw\bin;%PATH% echo %SVN_REVISION%> svn_revision.txt %PYTHON% check_packages.py set PYTHONPATH=%WORKSPACE%\sansview-install;%PYTHONPATH% RD /S /Q sansview-install MD sansview-install RD /S /Q dist RD /S /Q build %PYTHON% setup.py build -cmingw32 %PYTHON% setup.py bdist_egg --skip-build cd dist %EASY_INSTALL% -d ..\sansview-install sasview*.egg cd %WORKSPACE%\test %PYTHON% utest_sansview.py
Revert previous change. Bug is actually elsewhere.
@if defined ECHO (echo %ECHO%) else (echo off) REM REM Builds everything and drops it into the Build folder. REM You may specify additional arguments for MetaBuild also. REM "%~dp0tools\MetaBuild\bin\MetaBuild.bat" /rootdir "%~dp0." /metabuildconfig "%~dp0bin\MetaBuild.config.custom" %*
@if defined ECHO (echo %ECHO%) else (echo off) REM REM Builds everything and drops it into the Build folder. REM You may specify additional arguments for MetaBuild also. REM "%~dp0tools\MetaBuild\bin\MetaBuild.bat" /rootdir "%~dp0" /metabuildconfig "%~dp0bin\MetaBuild.config.custom" %*
Add question mark for questions
@echo off SET "memParams=-Xms4g -Xmx10g" SET debugParams= SET "rf2Archive=G:\incoming\SnomedCT_RF2Release_INT_20160131.zip" SET "secondDrive=D:\" SET newMemory= set /p newMemory="How much memory do you have available? [10g]: " IF NOT [%newMemory%]==[] SET "memParams=-Xms4g -Xmx%newMemory%" SET driveParam= set /p driveAvailable="Do you have a 2nd drive (eg %secondDrive%) Y/N: " IF /I "%driveAvailable%"=="Y" SET "driveParam=-u %secondDrive%" SET newLocation= SET /p newLocation="Where is the RF2 Archive? [%rf2Archive%]: " IF NOT [%newLocation%]==[] SET "rf2Archive=%newLocation%" FOR %%a IN (%*) DO ( IF /I "%%a"=="-d" SET "debugParams=-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8080" ) @echo on java -jar %memParams% %debugParams% target\RF2toRF1Converter.jar %driveParam% %* %rf2Archive%
@echo off SET "memParams=-Xms4g -Xmx10g" SET debugParams= SET "rf2Archive=G:\incoming\SnomedCT_RF2Release_INT_20160131.zip" SET "secondDrive=D:\" SET newMemory= set /p newMemory="How much memory do you have available? [10g]: " IF NOT [%newMemory%]==[] SET "memParams=-Xms4g -Xmx%newMemory%" SET driveParam= set /p driveAvailable="Do you have a 2nd drive? (eg %secondDrive%) Y/N: " IF /I "%driveAvailable%"=="Y" SET "driveParam=-u %secondDrive%" SET newLocation= SET /p newLocation="Where is the RF2 Archive? [%rf2Archive%]: " IF NOT [%newLocation%]==[] SET "rf2Archive=%newLocation%" FOR %%a IN (%*) DO ( IF /I "%%a"=="-d" SET "debugParams=-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8080" ) @echo on java -jar %memParams% %debugParams% target\RF2toRF1Converter.jar %driveParam% %* %rf2Archive%
Set default version to .yml file
@ECHO OFF ECHO. ECHO APPVEYOR_BUILD_NUMBER : %APPVEYOR_BUILD_NUMBER% ECHO APPVEYOR_BUILD_VERSION : %APPVEYOR_BUILD_VERSION% :: ensure we have Version.txt IF NOT EXIST Version.txt ( ECHO Version.txt is missing! GOTO error ) :: get the version and comment from Version.txt lines 2 and 3 SET RELEASE= SET COMMENT= FOR /F "skip=1 delims=" %%i IN (Version.txt) DO IF NOT DEFINED RELEASE SET RELEASE=%%i FOR /F "skip=2 delims=" %%i IN (Version.txt) DO IF NOT DEFINED COMMENT SET COMMENT=%%i SET VERSION=%RELEASE% IF [%COMMENT%] EQU [] (SET VERSION=%RELEASE%) ELSE (SET VERSION=%RELEASE%-%COMMENT%) ECHO. ECHO Building CallMeMaybe %VERSION% ECHO. CALL dotnet restore CallMeMaybe.sln CALL dotnet msbuild CallMeMaybe.sln /p:OutputPath=..\artifacts /p:Configuration=Release :success ECHO. ECHO No errors were detected! ECHO There may still be some in the output, which you would need to investigate. ECHO Warnings are usually normal. ECHO. GOTO :EOF :error ECHO. ECHO Errors were detected! ECHO.
@ECHO OFF ECHO. ECHO APPVEYOR_BUILD_NUMBER : %APPVEYOR_BUILD_NUMBER% ECHO APPVEYOR_BUILD_VERSION : %APPVEYOR_BUILD_VERSION% :: ensure we have Version.txt IF NOT EXIST Version.txt ( ECHO Version.txt is missing! GOTO error ) :: get the version and comment from Version.txt lines 2 and 3 SET RELEASE=%APPVEYOR_BUILD_VERSION% SET COMMENT=%MAYBE_PRERELEASE_SUFFIX% FOR /F "skip=1 delims=" %%i IN (Version.txt) DO IF NOT DEFINED RELEASE SET RELEASE=%%i FOR /F "skip=2 delims=" %%i IN (Version.txt) DO IF NOT DEFINED COMMENT SET COMMENT=%%i SET VERSION=%RELEASE% IF [%COMMENT%] EQU [] (SET VERSION=%RELEASE%) ELSE (SET VERSION=%RELEASE%-%COMMENT%) ECHO. ECHO Building CallMeMaybe %VERSION% ECHO. CALL dotnet restore CallMeMaybe.sln CALL dotnet msbuild CallMeMaybe.sln /p:OutputPath=..\artifacts /p:Configuration=Release :success ECHO. ECHO No errors were detected! ECHO There may still be some in the output, which you would need to investigate. ECHO Warnings are usually normal. ECHO. GOTO :EOF :error ECHO. ECHO Errors were detected! ECHO.
Add .bat wrapper around version header generation script
@echo off REM Windows batch script wrapper around the writeGitVersionHeader.sh bash script REM Author: Peter Nordin REM Date: 2017-02-07 set filepath="%~1" set name="%~2" set rev="%~3" set shorthash="%~4" REM Check where git bash is installed and use it if defined ProgramFiles(x86) ( REM Check for 32-bit version, even though system is 64-bit if exist "%ProgramFiles(x86)%\Git\bin" ( set "bash=%ProgramFiles(x86)%\Git\bin\bash.exe" ) else ( REM Use 64-bit version set "bash=%ProgramFiles%\Git\bin\bash.exe" ) ) else ( REM Use 32-bit version set "bash=%ProgramFiles%\Git\bin\bash.exe" ) REM Execute the bash script to do the work "%bash%" --login -i -c "exec ./writeGitVersionHeader.sh %filepath% %name% %rev% %shorthash%"
Add CMD file for new cases
@echo off pushd %~dp0 "%VS120COMNTOOLS%..\IDE\mstest" /test:Microsoft.Protocols.TestSuites.MS_ADMINS.S01_CreateAndDeleteSite.MSADMINS_S01_TC29_CreateSiteSuccessfully_WithoutTemplate /testcontainer:..\..\MS-ADMINS\TestSuite\bin\Debug\MS-ADMINS_TestSuite.dll /runconfig:..\..\MS-ADMINS\MS-ADMINS.testsettings /unique pause
Add windows batch file to install jamberoo libs
mvn install:install-file -DgroupId=jamberoo -DartifactId=bsh-2.0b4 -Dversion=1.0 -Dpackaging=jar -Dfile=./bsh-2.0b4.jar mvn install:install-file -DgroupId=jamberoo -DartifactId=cct-globus -Dversion=1.0 -Dpackaging=jar -Dfile=./cct-globus.jar mvn install:install-file -DgroupId=jamberoo -DartifactId=Fragments -Dversion=1.0 -Dpackaging=jar -Dfile=./Fragments.jar mvn install:install-file -DgroupId=jamberoo -DartifactId=j2ssh-common -Dversion=1.0 -Dpackaging=jar -Dfile=./j2ssh-common.jar mvn install:install-file -DgroupId=jamberoo -DartifactId=j2ssh-core -Dversion=1.0 -Dpackaging=jar -Dfile=./j2ssh-core.jar mvn install:install-file -DgroupId=jamberoo -DartifactId=Jamberoo-help -Dversion=1.0 -Dpackaging=jar -Dfile=./Jamberoo-help.jar mvn install:install-file -DgroupId=jamberoo -DartifactId=jbzip2-0.9.1 -Dversion=1.0 -Dpackaging=jar -Dfile=./jbzip2-0.9.1.jar mvn install:install-file -DgroupId=jamberoo -DartifactId=jcommon-1.0.12 -Dversion=1.0 -Dpackaging=jar -Dfile=./jcommon-1.0.12.jar mvn install:install-file -DgroupId=jamberoo -DartifactId=jfreechart-1.0.9 -Dversion=1.0 -Dpackaging=jar -Dfile=./jfreechart-1.0.9.jar mvn install:install-file -DgroupId=jamberoo -DartifactId=jhall -Dversion=1.0 -Dpackaging=jar -Dfile=./jhall.jar mvn install:install-file -DgroupId=jamberoo -DartifactId=mysql-connector-java-5.1.33-bin -Dversion=1.0 -Dpackaging=jar -Dfile=./mysql-connector-java-5.1.33-bin.jar mvn install:install-file -DgroupId=jamberoo -DartifactId=Solvents -Dversion=1.0 -Dpackaging=jar -Dfile=./Solvents.jar
Use MSVC 2013 for continuous integration.
CD git/re2 || EXIT /B 1 cmake -D CMAKE_BUILD_TYPE=Debug -A x64 . || EXIT /B 1 cmake --build . --config Debug --clean-first || EXIT /B 1 ctest -C Debug --output-on-failure -E dfa^|exhaustive^|random || EXIT /B 1 cmake -D CMAKE_BUILD_TYPE=Release -A x64 . || EXIT /B 1 cmake --build . --config Release --clean-first || EXIT /B 1 ctest -C Release --output-on-failure -E dfa^|exhaustive^|random || EXIT /B 1 EXIT /B 0
CD git/re2 || EXIT /B 1 cmake -D CMAKE_BUILD_TYPE=Debug -G "Visual Studio 12 2013" -A x64 . || EXIT /B 1 cmake --build . --config Debug --clean-first || EXIT /B 1 ctest -C Debug --output-on-failure -E dfa^|exhaustive^|random || EXIT /B 1 cmake -D CMAKE_BUILD_TYPE=Release -G "Visual Studio 12 2013" -A x64 . || EXIT /B 1 cmake --build . --config Release --clean-first || EXIT /B 1 ctest -C Release --output-on-failure -E dfa^|exhaustive^|random || EXIT /B 1 EXIT /B 0
Add unit test bat script
@echo off SETLOCAL EnableDelayedExpansion set failed=0 cd bin for /r "." %%a in (tst_*.exe) do ( "%%~fa" if not ERRORLEVEL 0 ( echo Test FAILED: "%%~fa" set failed=1 ) ) cd .. if %failed% EQU 1 ( echo ERROR: At least one unit test failed! if "%HOPSAN_BUILD_SCRIPT_NOPAUSE%" == "" ( pause ) exit /B 1 ) echo All tests passed if "%HOPSAN_BUILD_SCRIPT_NOPAUSE%" == "" ( pause )
Add build release convenience script
@echo off @echo . @echo .. @echo ... @echo Running full Build Script, capturing output to buildlog.txt file... @echo Start Time: %time% build-support\tools\nant\bin\nant clean package -f:spring.build -D:project.build.sign=true -D:mstest.exe="c:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\mstest.exe" -D:package.version=1.3.1 -D:vs-net.mstest.bin.dir="c:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE" > buildlog.txt @echo . @echo .. @echo ... @echo Launching text file viewer to display buildlog.txt contents... start "ignored but required placeholder window title argument" buildlog.txt @echo . @echo .. @echo ... @echo ************************ @echo Build Complete! @echo ************************ @echo End Time: %time% @echo   
Build using xbuild on Windows for mono
@@@ setlocal @@@ for /f %%i in ('dir /b /ad /on "%windir%\Microsoft.NET\Framework\v*"') do @if exist "%windir%\Microsoft.NET\Framework\%%i\msbuild".exe set msbuild=%windir%\Microsoft.NET\Framework\%%i\msbuild.exe @@@ if not defined msbuild (echo MSBuild.exe not found>&2 & exit /b 42) @@@ if defined msbuild "%msbuild%" NUnitFramework.msbuild %*
@echo off setlocal for %%a in (%*) do echo "%%a" | findstr /C:"mono">nul && set buildtool=xbuild.bat if not defined buildtool for /f %%i in ('dir /b /ad /on "%windir%\Microsoft.NET\Framework\v*"') do @if exist "%windir%\Microsoft.NET\Framework\%%i\msbuild".exe set buildtool=%windir%\Microsoft.NET\Framework\%%i\msbuild.exe if not defined buildtool (echo no MSBuild.exe or xbuild was found>&2 & exit /b 42) if defined buildtool "%buildtool%" %~dp0NUnitFramework.msbuild %*
Add a batch file to build on Windows with MSVC.
@setlocal @set SCHEME_H_DIR=..\src @set TSCOMPILE=cl /nologo /O2 /W3 /c /D_CRT_SECURE_NO_DEPRECATE /DWIN32 /DUSE_DL=1 /I%SCHEME_H_DIR% @set TSLIB=lib /nologo @set TSLINK=link /nologo @if "%1" == "static" goto STATIC @if not exist dll\ ( mkdir dll ) %TSCOMPILE% /MT tsx.c %TSLINK% /DLL /out:dll\tsx.dll /export:init_tsx tsx.obj ws2_32.lib %TSCOMPILE% /MDd tsx.c %TSLINK% /DLL /out:dll\tsx_d.dll /export:init_tsx tsx.obj ws2_32.lib @goto END :STATIC @if not exist lib\ ( mkdir lib ) %TSCOMPILE% /MT tsx.c %TSLIB% /out:lib\tsx.lib tsx.obj ws2_32.lib %TSCOMPILE% /MDd tsx.c %TSLIB% /out:lib\tsx_d.lib tsx.obj ws2_32.lib :END del tsx.obj
Fix installer uploaded artifact filename.
@echo off rem This will download the Kolibri windows installer artifact at the windows-2016 buildkite agent. rem After the installer successfully sign it will upload the signed installer at the Sign Windows installer pipeline artifact. set current_path=%cd% buildkite-agent.exe artifact download "installer/*.exe" . --step "Build kolibri windows installer" --build %BUILDKITE_BUILD_ID% --agent-access-token %BUILDKITE_AGENT_ACCESS_TOKEN% %WINDOWS_SIGN_SCRIPT_PATH% "%current_path%\installer" && buildkite-agent.exe artifact upload "%current_path%\installer\*.exe"
@echo off rem This will download the Kolibri windows installer artifact at the windows-2016 buildkite agent. rem After the installer successfully sign it will upload the signed installer at the Sign Windows installer pipeline artifact. set current_path=%cd% buildkite-agent.exe artifact download "installer/*.exe" . --step "Build kolibri windows installer" --build %BUILDKITE_BUILD_ID% --agent-access-token %BUILDKITE_AGENT_ACCESS_TOKEN% %WINDOWS_SIGN_SCRIPT_PATH% "%current_path%\installer" && cd "%current_path%\installer\" && buildkite-agent.exe artifact upload "*.exe"
Clean output of the checkout script
REM This script will checkout Banshee from git (and a few submodules that are needed). REM It will result in a banshee/ directory under where it's launched from. REM See banshee\build\windows\README.txt for more information REM (this file is tracked in version control at: http://git.gnome.org/browse/banshee/plain/build/windows/checkout-banshee.bat ) call git clone git://git.gnome.org/banshee if not exist banshee goto failure cd banshee call git submodule update --init call git clone git://gitorious.org/banshee/windows-binaries.git bin if not exist bin goto failure echo "Checkout script finished. Banshee is now checked out into the banshee folder. Build it with build\windows\build-banshee.bat or your favorite IDE using Banshee.sln" pause :failure echo "There was a problem during the checkout. Please see the message above."
REM This script will checkout Banshee from git (and a few submodules that are needed). REM It will result in a banshee/ directory under where it's launched from. REM See banshee\build\windows\README.txt for more information REM (this file is tracked in version control at: http://git.gnome.org/browse/banshee/plain/build/windows/checkout-banshee.bat ) @echo off call git clone git://git.gnome.org/banshee if not exist banshee goto failure cd banshee call git submodule update --init call git clone git://gitorious.org/banshee/windows-binaries.git bin if not exist bin goto failure echo "Checkout script finished. Banshee is now checked out into the banshee folder. Build it with build\windows\build-banshee.bat or your favorite IDE using Banshee.sln" pause goto :eof :failure echo "There was a problem during the checkout. Please see the message above."
Update to kuduscript version 0.1.7
@echo off setlocal enabledelayedexpansion pushd %1 set attempts=5 set counter=0 :retry set /a counter+=1 echo Attempt %counter% out of %attempts% cmd /c npm install https://github.com/projectkudu/KuduScript/tarball/185e757b03239f556e73bead91b261f5fe3c8004 IF %ERRORLEVEL% NEQ 0 goto error goto end :error if %counter% GEQ %attempts% goto :lastError goto retry :lastError popd echo An error has occured during npm install. exit /b 1 :end popd echo Finished successfully. exit /b 0
@echo off setlocal enabledelayedexpansion pushd %1 set attempts=5 set counter=0 :retry set /a counter+=1 echo Attempt %counter% out of %attempts% cmd /c npm install https://github.com/projectkudu/KuduScript/tarball/3076c2ce36a3e11a71ea092098a40b11cb55d548 IF %ERRORLEVEL% NEQ 0 goto error goto end :error if %counter% GEQ %attempts% goto :lastError goto retry :lastError popd echo An error has occured during npm install. exit /b 1 :end popd echo Finished successfully. exit /b 0
Use pytest and flake8 commands.
@echo off set PYTHON=%~1 set PATH=%PYTHON%;%PYTHON%\Scripts;%PATH% python -m pytest python -m flake8
set PYTHON=%~1 set PATH=%PYTHON%;%PYTHON%\Scripts;%PATH% pytest flake8
Support = signs in accumulator.
if "%ACC%" == "" goto emptyacc if "%SEPARATOR%" == "" goto noseparator set ACC=%ACC%%SEPARATOR%%1 goto end :noseparator set ACC=%ACC% %1 goto end :emptyacc set ACC=%1 goto end :end
if not defined ACC goto emptyacc if "%SEPARATOR%" == "" goto noseparator set ACC=%ACC%%SEPARATOR%%1 goto end :noseparator set ACC=%ACC% %1 goto end :emptyacc set ACC=%1 goto end :end
Correct code style for batch file
@echo off REM This file is part of the Zephir. REM REM (c) Zephir Team <team@zephir-lang.com> REM REM For the full copyright and license information, please view the LICENSE REM file that was distributed with this source code. cls if "%PHP_PEAR_PHP_BIN%" neq "" ( set PHPBIN=%PHP_PEAR_PHP_BIN% ) else set PHPBIN=php SET mypath=%~dp0 echo %mypath:~0,-1% "%PHPBIN%" "%mypath%\zephir" %*
@echo off rem This file is part of the Zephir. rem rem (c) Zephir Team <team@zephir-lang.com> rem rem For the full copyright and license information, please view the LICENSE rem file that was distributed with this source code. cls if "%PHP_PEAR_PHP_BIN%" neq "" ( set PHPBIN=%PHP_PEAR_PHP_BIN% ) else set PHPBIN=php SET mypath=%~dp0 echo %mypath:~0,-1% "%PHPBIN%" "%mypath%\zephir" %*
Add a 'set -e'-like fail on command failure for batch script.
C:\Python27\Scripts\pip.exe install -r requirements.txt --allow-external pypubsub C:\Python27\Scripts\pip.exe install -r requirements-building.txt --allow-external pypubsub cd iridaUploader/docs C:\Python27\Scripts\sphinx-build -b html -d _build/doctrees . _build/html echo. 2>_build/__init__.py echo. 2>_build/html/__init__.py echo. 2>_build/html/_images/__init__.py echo. 2>_build/html/_sources/__init__.py echo. 2>_build/html/_static/__init__.py cd ../.. C:\Python27\python.exe setup.py bdist_msi move dist\* prerequisites "C:\Program Files (x86)\NSIS\makensis.exe" "iridaUploader_installer.nsi" PAUSE
C:\Python27\Scripts\pip.exe install -r requirements.txt --allow-external pypubsub || exit /b C:\Python27\Scripts\pip.exe install -r requirements-building.txt --allow-external pypubsub || exit /b cd iridaUploader/docs || exit /b C:\Python27\Scripts\sphinx-build -b html -d _build/doctrees . _build/html || exit /b echo. 2>_build/__init__.py echo. 2>_build/html/__init__.py echo. 2>_build/html/_images/__init__.py echo. 2>_build/html/_sources/__init__.py echo. 2>_build/html/_static/__init__.py cd ../.. C:\Python27\python.exe setup.py bdist_msi || exit /b move dist\* prerequisites "C:\Program Files (x86)\NSIS\makensis.exe" "iridaUploader_installer.nsi" PAUSE
Add key to user's store
openssl aes-256-cbc -k %ENCRYPTION_SECRET% -in .\build\resources\authenticode-signing-cert.p12.enc -out .\build\resources\authenticode-signing-cert.p12 -d -a certutil -p %KEY_PASSWORD% -importpfx .\build\resources\authenticode-signing-cert.p12
openssl aes-256-cbc -k %ENCRYPTION_SECRET% -in .\build\resources\authenticode-signing-cert.p12.enc -out .\build\resources\authenticode-signing-cert.p12 -d -a certutil -p %KEY_PASSWORD% -user -importpfx .\build\resources\authenticode-signing-cert.p12 NoRoot
Revert to sleep in oq-webui.bat
@echo off setlocal set mypath=%~dp0 set PATH=%mypath%\python2.7;%PATH% set PYTHONPATH=%mypath%\lib set OQ_SITE_CFG_PATH=%mypath%\openquake.cfg set OQ_HOST=127.0.0.1 set OQ_PORT=8800 echo Please wait ... REM Start the WebUI using django start "OpenQuake WebUI server" /B python.exe -m openquake.commands webui start %OQ_HOST%:%OQ_PORT% REM Make sure that the dbserver is up and running call:check_django REM Start the browser start http://localhost:%OQ_PORT% endlocal exit /b 0 :check_django setlocal ping -n 1 %OQ_HOST if ERRORLEVEL 1 goto check_django endlocal :sleep setlocal if exist C:\Windows\System32\timeout.exe ( timeout /t %~1 /nobreak > NUL ) else ( REM Windows XP hack ping 192.0.2.2 -n %~1 -w 1000 > NUL ) endlocal
@echo off setlocal set mypath=%~dp0 set PATH=%mypath%\python2.7;%PATH% set PYTHONPATH=%mypath%\lib set OQ_SITE_CFG_PATH=%mypath%\openquake.cfg set OQ_HOST=127.0.0.1 set OQ_PORT=8800 echo Please wait ... REM Start the WebUI using django start "OpenQuake WebUI server" /B python.exe -m openquake.commands webui start %OQ_HOST%:%OQ_PORT% REM Make sure that the dbserver is up and running call:sleep 10 REM Start the browser start http://localhost:%OQ_PORT% endlocal exit /b 0 :sleep setlocal if exist C:\Windows\System32\timeout.exe ( timeout /t %~1 /nobreak > NUL ) else ( REM Windows XP hack ping 192.0.2.2 -n %~1 -w 1000 > NUL ) endlocal
Set JAVA_HOME for Windows builds
call ..\gradlew clean installDist call "C:\Program Files\Java\jdk11\bin\jlink.exe" --verbose --no-header-files --no-man-pages --compress=2 --strip-debug --add-modules java.base,java.desktop,java.logging,java.management,java.naming,java.sql,java.xml,jdk.unsupported --output build\install\plus-f\runtime call "C:\Program Files (x86)\Inno Setup 5\iscc.exe" package\windows\plus-f.iss /Obuild /FPlus-F call aws s3 cp build/Plus-F.exe s3://download.socialthingy.com/Plus-F.exe
set JAVA_HOME="C:\Program Files\Java\jdk11" call ..\gradlew clean installDist call "C:\Program Files\Java\jdk11\bin\jlink.exe" --verbose --no-header-files --no-man-pages --compress=2 --strip-debug --add-modules java.base,java.desktop,java.logging,java.management,java.naming,java.sql,java.xml,jdk.unsupported --output build\install\plus-f\runtime call "C:\Program Files (x86)\Inno Setup 5\iscc.exe" package\windows\plus-f.iss /Obuild /FPlus-F call aws s3 cp build/Plus-F.exe s3://download.socialthingy.com/Plus-F.exe