doc_id
stringlengths 36
36
| metadata
dict | input
stringlengths 28
4.3k
| output
stringlengths 11
5.45k
|
---|---|---|---|
8e76580a-cf7c-49ca-8329-e83503fd0cc4 | {
"language": "Batchfile"
} | ```batchfile
```
Update RingLibUI - Add a batch file to build the library DLL file | ```batchfile
cls
call ../../language/src/locatevc.bat
cl /c /DEBUG ring_libui.c -I "..\..\extensions\libdepwin\libui" -I"..\..\language\include"
link /DEBUG ring_libui.obj ..\..\lib\ring.lib ..\..\extensions\libdepwin\libui\libui.lib /DLL /OUT:..\..\bin\ring_libui.dll /SUBSYSTEM:CONSOLE,"5.01"
del ring_libui.obj``` |
360814d7-906f-4e95-836e-3a374443f346 | {
"language": "Batchfile"
} | ```batchfile
@echo off
cls
IF NOT EXIST "build\tools\FAKE.Core\tools\Fake.exe" (
"tools\nuget\nuget.exe" install "NUnit.Runners" -OutputDirectory "build\tools" -ExcludeVersion -Version 2.6.4
"tools\nuget\nuget.exe" install "FAKE.Core" -OutputDirectory "build\tools" -ExcludeVersion -Version 4.60.0
)
"build\tools\FAKE.Core\tools\Fake.exe" build.fsx %*```
Use latest FAKE.Core 4.x version | ```batchfile
@echo off
cls
IF NOT EXIST "build\tools\FAKE.Core\tools\Fake.exe" (
"tools\nuget\nuget.exe" install "NUnit.Runners" -OutputDirectory "build\tools" -ExcludeVersion -Version 2.6.4
"tools\nuget\nuget.exe" install "FAKE.Core" -OutputDirectory "build\tools" -ExcludeVersion -Version 4.64.13
)
"build\tools\FAKE.Core\tools\Fake.exe" build.fsx %*``` |
e817ae5d-5564-4983-8931-e4b0161b83f7 | {
"language": "Batchfile"
} | ```batchfile
```
Kill script: termintes openfin and node processes and clears openfin cache | ```batchfile
@echo off
taskkill/F /IM openfin.exe
taskkill /IM node.exe /F
del /q "%localappdata%\OpenFin\cache\*"
FOR /D %%p IN ("%localappdata%\OpenFin\cache\*.*") DO rmdir "%%p" /s /q
del /q "%localappdata%\OpenFin\apps\*"
FOR /D %%p IN ("%localappdata%\OpenFin\apps\*.*") DO rmdir "%%p" /s /q
del /q "%localappdata%\OpenFin\runtime\*"
FOR /D %%p IN ("%localappdata%\OpenFin\runtime\*.*") DO rmdir "%%p" /s /q
del /q "%localappdata%\OpenFin\logs\*"
FOR /D %%p IN ("%localappdata%\OpenFin\logs\*.*") DO rmdir "%%p" /s /q
del /q "%localappdata%\OpenFin\cache.dat"
del /q "%localappdata%\OpenFin\OpenFinRVM.exe"
``` |
c607c6d6-772c-45a2-88a4-1d83f122f294 | {
"language": "Batchfile"
} | ```batchfile
cd make
node node_make.js debug
node node_make.js release
cd ..
if not exist ..\ArnaudBuchholz.github.io goto end
copy build\gpf.js ..\ArnaudBuchholz.github.io\
copy build\gpf-debug.js ..\ArnaudBuchholz.github.io\
plato -d ..\ArnaudBuchholz.github.io\plato\gpf-js -t GPF-JS -l .jshintrc *.js
:end```
Make now includes Plato statistics | ```batchfile
cd make
node node_make.js debug
node node_make.js release
cd ..
if not exist ..\ArnaudBuchholz.github.io goto end
copy build\gpf.js ..\ArnaudBuchholz.github.io\
copy build\gpf-debug.js ..\ArnaudBuchholz.github.io\
plato -x coding_convention.js -d ..\ArnaudBuchholz.github.io\plato\gpf-js -t GPF-JS -l .jshintrc *.js
:end``` |
8aa1140d-e440-4e75-8ca0-3391c32c6589 | {
"language": "Batchfile"
} | ```batchfile
echo Current build setup CC="%CC%" PLATFORM="%PLATFORM%" TARGET="%TARGET%"
if %CC% == VC2019 call "%ProgramFiles(x86)%\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvarsall.bat" %PLATFORM%
if %CC% == VC2019p call "%ProgramFiles(x86)%\Microsoft Visual Studio\2019\Preview\VC\Auxiliary\Build\vcvarsall.bat" %PLATFORM%
if %CC% == MinGW set PATH=%PATH%;C:\msys64\mingw64\bin
rem check compiler version
if %CC% == MinGW g++ -v
if not %CC% == MinGW cl
appveyor DownloadFile https://github.com/mozilla/sccache/releases/download/%SCCACHE_VERSION%/sccache-%SCCACHE_VERSION%-x86_64-pc-windows-msvc.tar.gz
tar -xf sccache-%SCCACHE_VERSION%-x86_64-pc-windows-msvc.tar.gz
appveyor DownloadFile http://download.qt.io/official_releases/jom/jom.zip -FileName jom.zip
7z e jom.zip
set PATH=%PATH%;sccache-%SCCACHE_VERSION%-x86_64-pc-windows-msvc
```
Use an if/else in the batch script | ```batchfile
echo Current build setup CC="%CC%" PLATFORM="%PLATFORM%" TARGET="%TARGET%"
if %CC% == VC2019 call "%ProgramFiles(x86)%\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvarsall.bat" %PLATFORM%
if %CC% == VC2019p call "%ProgramFiles(x86)%\Microsoft Visual Studio\2019\Preview\VC\Auxiliary\Build\vcvarsall.bat" %PLATFORM%
if %CC% == MinGW set PATH=%PATH%;C:\msys64\mingw64\bin
rem check compiler version
if %CC% == MinGW (
g++ -v
) else (
cl
)
appveyor DownloadFile https://github.com/mozilla/sccache/releases/download/%SCCACHE_VERSION%/sccache-%SCCACHE_VERSION%-x86_64-pc-windows-msvc.tar.gz
tar -xf sccache-%SCCACHE_VERSION%-x86_64-pc-windows-msvc.tar.gz
appveyor DownloadFile http://download.qt.io/official_releases/jom/jom.zip -FileName jom.zip
7z e jom.zip
set PATH=%PATH%;sccache-%SCCACHE_VERSION%-x86_64-pc-windows-msvc
``` |
ec68f553-5716-497b-8087-7ace15ff63eb | {
"language": "Batchfile"
} | ```batchfile
cd ..
set "destination=testcoverage"
rmdir /q /s %destination%
mkdir %destination%
cd content/tests
dotnet test /p:AltCover=true
mv coverage.xml ../../%destination%/coverage.xml
cd ../../%destination%
set "reportgenerator=%UserProfile%\.nuget\packages\reportgenerator\4.0.7\tools\net47\ReportGenerator.exe"
set "targetdir=."
"%reportGenerator%" -reports:coverage.xml -reporttypes:HtmlInline -targetdir:%targetdir%```
Update to tools for reportgenerator | ```batchfile
cd ..
set "destination=testcoverage"
rmdir /q /s %destination%
mkdir %destination%
cd content/tests
dotnet test /p:AltCover=true
mv coverage.xml ../../%destination%/coverage.xml
cd ../../%destination%
set "reportgenerator=%UserProfile%\.nuget\packages\reportgenerator\4.0.11\tools\net47\ReportGenerator.exe"
set "targetdir=."
"%reportGenerator%" -reports:coverage.xml -reporttypes:HtmlInline -targetdir:%targetdir%``` |
b1275e16-71b3-4d58-aee9-ae7674130006 | {
"language": "Batchfile"
} | ```batchfile
@echo off
pushd "%~dp0"
call build && dotnet test --no-restore --no-build NCrontab.Tests
popd
```
Test debug & release configs | ```batchfile
@echo off
pushd "%~dp0"
call build ^
&& call :test Debug ^
&& call :test Release ^
popd
goto :EOF
:test
dotnet test --no-restore --no-build -c %1 NCrontab.Tests
goto :EOF
``` |
60e5e609-8aa9-41ea-8418-1148077c0772 | {
"language": "Batchfile"
} | ```batchfile
```
Add release tool for windows | ```batchfile
PATH=C:\python26;C:\progra~2\7-zip;%PATH%
del /q /s dist\*.*
python setup.py py2exe
cd dist
7z d library.zip jinja2\* dns\* 'graphy\*
7z a namebench_for_Windows.zip -r *
namebench -x -O 8.8.8.8 -t5 -o test.html
start test.html
cd ..
``` |
9625d0cf-7106-4d0a-b735-016b6da4adad | {
"language": "Batchfile"
} | ```batchfile
.nuget\NuGet.exe push src\DelegateDecompiler\bin\Release\*.nupkg -ApiKey %1
```
Update push script to push packages separately | ```batchfile
for /r %%x in (src\DelegateDecompiler\bin\Release\*.nupkg) do .nuget\NuGet.exe push %%x -ApiKey %1
``` |
4f622edc-a4ef-4041-ae7f-c1f55e7b13cf | {
"language": "Batchfile"
} | ```batchfile
FOR /F "tokens=*" %%G IN ('DIR /B /AD /S bin') DO RMDIR /S /Q "%%G"
FOR /F "tokens=*" %%G IN ('DIR /B /AD /S obj') DO RMDIR /S /Q "%%G"
FOR /F "tokens=*" %%G IN ('DIR /B /AD /S node_modules') DO RMDIR /S /Q "%%G"
FOR /F "tokens=*" %%G IN ('DIR /B /AD /S Packages') DO RMDIR /S /Q "%%G"
FOR /F "tokens=*" %%G IN ('DIR /B /AD /S .vs') DO RMDIR /S /Q "%%G"
FOR /F "tokens=*" %%G IN ('DIR /B /AD /S TestResults') DO RMDIR /S /Q "%%G"
DEL /Q /F /S "Resource.designer.cs"
DEL /Q /F /S "*.csproj.user"
DEL /Q /F /S "*.Model.Context.d.ts"
DEL /Q /F /S "*.Model.Context.js"```
Delete uwp app packages too! | ```batchfile
FOR /F "tokens=*" %%G IN ('DIR /B /AD /S bin') DO RMDIR /S /Q "%%G"
FOR /F "tokens=*" %%G IN ('DIR /B /AD /S obj') DO RMDIR /S /Q "%%G"
FOR /F "tokens=*" %%G IN ('DIR /B /AD /S node_modules') DO RMDIR /S /Q "%%G"
FOR /F "tokens=*" %%G IN ('DIR /B /AD /S Packages') DO RMDIR /S /Q "%%G"
FOR /F "tokens=*" %%G IN ('DIR /B /AD /S .vs') DO RMDIR /S /Q "%%G"
FOR /F "tokens=*" %%G IN ('DIR /B /AD /S TestResults') DO RMDIR /S /Q "%%G"
FOR /F "tokens=*" %%G IN ('DIR /B /AD /S AppPackages') DO RMDIR /S /Q "%%G"
DEL /Q /F /S "Resource.designer.cs"
DEL /Q /F /S "*.csproj.user"
DEL /Q /F /S "*.Model.Context.d.ts"
DEL /Q /F /S "*.Model.Context.js"``` |
f9df52ae-d1eb-4bc6-bbe1-e038f581faec | {
"language": "Batchfile"
} | ```batchfile
rem Tool to assemble Windows builds
rem Requirements are 7-zip, py2exe, and FreeExtractor
PATH=C:\python27;C:\python26;C:\progra~1\7-zip;C:\progra~2\7-zip;%PATH%
rem ****** Clean out the old junk
rmdir /q /s dist\*.*
del /s /q dist\*.*
rem ****** Compile our executable and core zipfile
python setup.py py2exe
rem ****** Remove extras from core zipfile
cd dist
7z d namebench.zip tcl\*.*
rmdir /s /q tcl\tcl8.5\tzdata tcl\tk8.5\demos
del tcl\tk8.5\images\*.eps
rem ****** Final assembly of zipfile
copy ..\README.txt .
7z a namebench_for_Windows.zip -r * >nul
rem ****** Test assembled zipfile
namebench -x -O 8.8.8.8 -q5 -o test.html
start test.html
cd ..
```
Remove wildcard from del statement | ```batchfile
rem Tool to assemble Windows builds
rem Requirements are 7-zip, py2exe, and FreeExtractor
PATH=C:\python27;C:\python26;C:\progra~1\7-zip;C:\progra~2\7-zip;%PATH%
rem ****** Clean out the old junk
del /s /f /q dist
rem ****** Compile our executable and core zipfile
python setup.py py2exe
rem ****** Remove extras from core zipfile
cd dist
7z d namebench.zip tcl\*.*
rmdir /s /q tcl\tcl8.5\tzdata tcl\tk8.5\demos
del tcl\tk8.5\images\*.eps
rem ****** Final assembly of zipfile
copy ..\README.txt .
7z a namebench_for_Windows.zip -r * >nul
rem ****** Test assembled zipfile
namebench -x -O 8.8.8.8 -q5 -o test.html
start test.html
cd ..
``` |
41f1a1cf-07ed-40b6-a649-0f34092c3c91 | {
"language": "Batchfile"
} | ```batchfile
@ECHO OFF
PUSHD %~DP0
SET CURDIR=%CD%
PUSHD ..
SET TOPDIR=%CD%
POPD
POPD
SET GDAL_ROOT=%TOPDIR%\bin\gdal
rem SET GDAL_PAM_PROXY_DIR=%TEMP%
SET GDAL_DATA=%GDAL_ROOT%\share\gdal-data
SET GEOTIFF_CSV=%GDAL_DATA%
SET PROJ_LIB=%GDAL_ROOT%\share\proj
SET GDAL_DRIVER_PATH=%GDAL_ROOT%\bin\plugins
SET PYTHONHOME=%TOPDIR%\bin\Python26
SET PYTHONPATH=%PYTHONHOME%\Lib\lib-tk
SET PYTHONPATH=%PYTHONHOME%\Lib\site-packages\pywin32_system32;%PYTHONHOME%\Lib\site-packages\win32;%PYTHONHOME%\Lib\site-packages\win32\lib;%PYTHONHOME%\Lib\site-packages\pythonwin;%PYTHONPATH%
SET PYTHONPATH=%GDAL_ROOT%\bin;%GDAL_ROOT%\lib;%PYTHONPATH%
SET PYTHONPATH=%CURDIR%;%PYTHONPATH%
PATH=%GDAL_ROOT%\bin;%PATH%
PATH=%GDAL_ROOT%\bin\gdal\apps;%PATH%
PATH=%GDAL_DRIVER_PATH%;%PATH%
PATH=%PYTHONPATH%;%PATH%
PATH=%PYTHONHOME%;%PATH%
PATH=%CURDIR%;%PATH%
```
Clean out the PAHT env var to hopefully avoid more missing/extra dependencies | ```batchfile
@ECHO OFF
PUSHD %~DP0
SET CURDIR=%CD%
PUSHD ..
SET TOPDIR=%CD%
POPD
POPD
SET GDAL_ROOT=%TOPDIR%\bin\gdal
rem SET GDAL_PAM_PROXY_DIR=%TEMP%
SET GDAL_DATA=%GDAL_ROOT%\share\gdal-data
SET GEOTIFF_CSV=%GDAL_DATA%
SET PROJ_LIB=%GDAL_ROOT%\share\proj
SET GDAL_DRIVER_PATH=%GDAL_ROOT%\bin\plugins
SET PYTHONHOME=%TOPDIR%\bin\Python26
SET PYTHONPATH=%PYTHONHOME%\Lib\lib-tk
SET PYTHONPATH=%PYTHONHOME%\Lib\site-packages\pywin32_system32;%PYTHONHOME%\Lib\site-packages\win32;%PYTHONHOME%\Lib\site-packages\win32\lib;%PYTHONHOME%\Lib\site-packages\pythonwin;%PYTHONPATH%
SET PYTHONPATH=%GDAL_ROOT%\bin;%GDAL_ROOT%\lib;%PYTHONPATH%
SET PYTHONPATH=%CURDIR%;%PYTHONPATH%
set path=
set path=%WINDIR%;%WINDIR%\system32
PATH=%GDAL_ROOT%\bin;%PATH%
PATH=%GDAL_ROOT%\bin\gdal\apps;%PATH%
PATH=%GDAL_DRIVER_PATH%;%PATH%
PATH=%PYTHONPATH%;%PATH%
PATH=%PYTHONHOME%;%PATH%
PATH=%CURDIR%;%PATH%
``` |
eb7034a7-c736-416d-bb7e-09588b5c0d09 | {
"language": "Batchfile"
} | ```batchfile
```
Add release tool for windows | ```batchfile
PATH=C:\python26;C:\progra~2\7-zip;%PATH%
del /q /s dist\*.*
python setup.py py2exe
cd dist
7z d library.zip jinja2\* dns\* 'graphy\*
7z a namebench_for_Windows.zip -r *
namebench -x -O 8.8.8.8 -t5 -o test.html
start test.html
cd ..
``` |
8f11e0fa-8a45-4153-9999-042e865e4feb | {
"language": "Batchfile"
} | ```batchfile
```
Add equivalent script for Windows execute/test | ```batchfile
rem CI script
rem Install Bazel using Choco
echo "Installing/updating bazel"
choco install bazel -y
rem Use placeholder secret file
mkdir data\
echo '
{"installed":{"client_id":"PLACEHOLDER.apps.googleusercontent.com","project_id":"PLACEHOLDER","auth_uri":"https://accounts.google.com/o/oauth2/auth","token_uri":"https://oauth2.googleapis.com/token","auth_provider_x509_cert_url":"https://www.googleapis.com/oauth2/v1/certs","client_secret":"PLACEHOLDER","redirect_uris":["urn:ietf:wg:oauth:2.0:oob","http://localhost"]}}
' > data\client_not_so_secret.json
rem Ensure that our code builds
bazel build gactions
rem Print version
bazel run gactions -- version
rem Run all tests
bazel test ...
``` |
ece0abea-7bf7-4c4c-9529-d04fc714b350 | {
"language": "Batchfile"
} | ```batchfile
set CONDA_PREFIX=%PREFIX%
if errorlevel 1 exit 1
cmake -B build -S "%SRC_DIR%" ^
-G Ninja ^
-DCMAKE_BUILD_TYPE=Release ^
-DPython3_FIND_STRATEGY=LOCATION ^
-DPython3_ROOT_DIR=%CONDA_PREFIX% ^
-DCMAKE_LINKER=lld-link.exe
if errorlevel 1 exit 1
cmake --build build -j %CPU_COUNT% -- -v -k 0
if errorlevel 1 exit 1
if not exist "%SP_DIR%" mkdir "%SP_DIR%"
if errorlevel 1 exit 1
copy build/OCP.cp*-*.* "%SP_DIR%"
if errorlevel 1 exit 1```
Add /FORCE:MULTIPLE to Windows linker flags | ```batchfile
set CONDA_PREFIX=%PREFIX%
if errorlevel 1 exit 1
cmake -B build -S "%SRC_DIR%" ^
-G Ninja ^
-DCMAKE_BUILD_TYPE=Release ^
-DPython3_FIND_STRATEGY=LOCATION ^
-DPython3_ROOT_DIR=%CONDA_PREFIX% ^
-DCMAKE_LINKER=lld-link.exe ^
-DCMAKE_MODULE_LINKER_FLAGS="/FORCE:MULTIPLE"
if errorlevel 1 exit 1
cmake --build build -j %CPU_COUNT% -- -v -k 0
if errorlevel 1 exit 1
if not exist "%SP_DIR%" mkdir "%SP_DIR%"
if errorlevel 1 exit 1
copy build/OCP.cp*-*.* "%SP_DIR%"
if errorlevel 1 exit 1``` |
8e0d3abf-501a-48ee-afe4-e60f55f56450 | {
"language": "Batchfile"
} | ```batchfile
@echo off
setlocal
set _projectName=CommandLine
set _solution=%_projectName%.sln
set _codeProject=src\%_projectName%.csproj
set _analyzerProject=analyzer\%_projectName%.Analyzer\%_projectName%.Analyzer.csproj
set _testProject=test\%_projectName%.tests.csproj
set _config=%1
if not defined _config (
set _config=Debug
)
echo Building Config '%_config%'
echo Solution: '%_solution%'
echo Code: '%_codeProject%'
echo Analyzer: '%_analyzerProject%'
echo Test: '%_testProject%'
echo --------------------------
echo !!! Restoring packages !!!
echo --------------------------
dotnet restore
echo -------------------------
echo !!! Cleaning solution !!!
echo -------------------------
dotnet clean %_solution%
echo -------------------------
echo !!! Building solution !!!
echo -------------------------
dotnet build %_solution% -c %_config%
echo -------------------------
echo !!! Building analyzer !!!
echo -------------------------
dotnet build %_analyzerProject% -c %_config%
echo ---------------------
echo !!! Running tests !!!
echo ---------------------
dotnet test --no-build -c %_config% %_testProject%
if not "%_config%" == "Release" (
echo =======================================================
echo Skipping over package creation as not building Release
echo =======================================================
goto :eof
)
echo ------------------------------
echo !!! Creating NuGet package !!!
echo ------------------------------
dotnet pack --no-build -c %_config% %_codeProject%
endlocal
@echo on```
Make sure the package is created in the bin folder. | ```batchfile
@echo off
setlocal
set _projectName=CommandLine
set _solution=%_projectName%.sln
set _codeProject=src\%_projectName%.csproj
set _analyzerProject=analyzer\%_projectName%.Analyzer\%_projectName%.Analyzer.csproj
set _testProject=test\%_projectName%.tests.csproj
set _config=%1
if not defined _config (
set _config=Debug
)
echo Building Config '%_config%'
echo Solution: '%_solution%'
echo Code: '%_codeProject%'
echo Analyzer: '%_analyzerProject%'
echo Test: '%_testProject%'
echo --------------------------
echo !!! Restoring packages !!!
echo --------------------------
dotnet restore
echo -------------------------
echo !!! Cleaning solution !!!
echo -------------------------
dotnet clean %_solution%
echo -------------------------
echo !!! Building solution !!!
echo -------------------------
dotnet build %_solution% -c %_config%
echo -------------------------
echo !!! Building analyzer !!!
echo -------------------------
dotnet build %_analyzerProject% -c %_config%
echo ---------------------
echo !!! Running tests !!!
echo ---------------------
dotnet test --no-build -c %_config% %_testProject%
if not "%_config%" == "Release" (
echo =======================================================
echo Skipping over package creation as not building Release
echo =======================================================
goto :eof
)
echo ------------------------------
echo !!! Creating NuGet package !!!
echo ------------------------------
dotnet pack --no-build -c %_config% %_codeProject% -o ..\bin\package
endlocal
@echo on``` |
5b3565a3-8fbc-49e7-aa8c-7266d846cfd2 | {
"language": "Batchfile"
} | ```batchfile
@echo off
pushd "%~dp0"
for %%i in (Debug Release) do "%SystemRoot%\Microsoft.NET\Framework\v4.0.30319\msbuild" /target:Clean /p:Configuration=%%i src\NCrontab.sln
popd
```
Clean script can simply delegate to build script | ```batchfile
@"%~dp0build" /v:n /target:Clean
``` |
511f78b1-a8b1-4e40-9170-daf7b221239b | {
"language": "Batchfile"
} | ```batchfile
SET "JAVA_HOME=C:\opt\jdk-8"
cd git-repo
./mvnw clean install -X```
Stop using debug flag for Windows build | ```batchfile
SET "JAVA_HOME=C:\opt\jdk-8"
cd git-repo
./mvnw clean install``` |
c60d7ecf-7cfd-4a9b-b0ef-eaebcd5be8a7 | {
"language": "Batchfile"
} | ```batchfile
@echo on
set config=%1
if "%config%" == "" (
set config=Release
)
set version=1.0.0
if not "%PackageVersion%" == "" (
set version=%PackageVersion%
)
if not "%GitVersion.ClassicVersion%" == "" (
REM override version number with the one provided by git
set version=%GitVersion.ClassicVersion%
echo Version set to %version%
REM patch assemblyinfo with this version number
REM call %GitVersion% /updateAssemblyInfo "properties\assemblyinfo.cs"
call %GitVersion% /output buildserver /updateAssemblyInfo true
)
REM AssemblyInfoUtil.exe -set:%version% "C:\Program Files\MyProject1\AssemblyInfo.cs"
set nuget=
if "%nuget%" == "" (
set nuget=nuget
)
REM ;AssemblyVersion="%version%";AssemblyFileVersion="%version%"
%WINDIR%\Microsoft.NET\Framework\v4.0.30319\msbuild ManagedWifi.msbuild /p:Configuration="%config%";VersionNumber=%version% /m /v:M /fl /flp:LogFile=msbuild.log;Verbosity=diag /nr:false
mkdir Build
mkdir Build\lib
mkdir Build\lib\net20
%nuget% pack "ManagedWifi.nuspec" -NoPackageAnalysis -verbosity detailed -o Build -Version %version% -p Configuration="%config%"
```
Build script now logs to console | ```batchfile
@echo on
set config=%1
if "%config%" == "" (
set config=Release
)
set version=1.0.0
if not "%PackageVersion%" == "" (
set version=%PackageVersion%
)
if not "%GitVersion.ClassicVersion%" == "" (
REM override version number with the one provided by git
set version=%GitVersion.ClassicVersion%
echo Version set to %version%
REM patch assemblyinfo with this version number
REM call %GitVersion% /updateAssemblyInfo "properties\assemblyinfo.cs"
call %GitVersion% /output buildserver /updateAssemblyInfo true
)
REM AssemblyInfoUtil.exe -set:%version% "C:\Program Files\MyProject1\AssemblyInfo.cs"
set nuget=
if "%nuget%" == "" (
set nuget=nuget
)
REM ;AssemblyVersion="%version%";AssemblyFileVersion="%version%"
%WINDIR%\Microsoft.NET\Framework\v4.0.30319\msbuild ManagedWifi.msbuild /p:Configuration="%config%";VersionNumber=%version% /m /v:M /clp:Verbosity=diag /nr:false
mkdir Build
mkdir Build\lib
mkdir Build\lib\net20
%nuget% pack "ManagedWifi.nuspec" -NoPackageAnalysis -verbosity detailed -o Build -Version %version% -p Configuration="%config%"
``` |
6ff49526-6c1c-4887-b495-c90ce200b81d | {
"language": "Batchfile"
} | ```batchfile
@echo off
cd %~dp0
SETLOCAL ENABLEEXTENSIONS
SET CACHED_NUGET=%LocalAppData%\NuGet\NuGet.exe
IF EXIST %CACHED_NUGET% goto copynuget
echo Downloading latest version of NuGet.exe...
IF NOT EXIST %LocalAppData%\NuGet md %LocalAppData%\NuGet
@powershell -NoProfile -ExecutionPolicy unrestricted -Command "$ProgressPreference = 'SilentlyContinue'; Invoke-WebRequest 'https://www.nuget.org/nuget.exe' -OutFile '%CACHED_NUGET%'"
:copynuget
IF EXIST .nuget\nuget.exe goto restore
md .nuget
copy %CACHED_NUGET% .nuget\nuget.exe > nul
:restore
IF EXIST packages\KoreBuild goto run
.nuget\NuGet.exe install KoreBuild -ExcludeVersion -o packages -nocache -pre
.nuget\NuGet.exe install Sake -version 0.2 -o packages -ExcludeVersion
IF "%SKIP_KRE_INSTALL%"=="1" goto run
CALL packages\KoreBuild\build\kvm upgrade -runtime CLR -x86
CALL packages\KoreBuild\build\kvm install default -runtime CoreCLR -x86
:run
CALL packages\KoreBuild\build\kvm use default -runtime CLR -x86
CALL packages\KoreBuild\build\kpm restore
CALL packages\KoreBuild\build\kvm build
:end
exit /b %ERRORLEVEL%```
Use myget feed to download KoreBuild package | ```batchfile
@echo off
cd %~dp0
SETLOCAL ENABLEEXTENSIONS
SET CACHED_NUGET=%LocalAppData%\NuGet\NuGet.exe
IF EXIST %CACHED_NUGET% goto copynuget
echo Downloading latest version of NuGet.exe...
IF NOT EXIST %LocalAppData%\NuGet md %LocalAppData%\NuGet
@powershell -NoProfile -ExecutionPolicy unrestricted -Command "$ProgressPreference = 'SilentlyContinue'; Invoke-WebRequest 'https://www.nuget.org/nuget.exe' -OutFile '%CACHED_NUGET%'"
:copynuget
IF EXIST .nuget\nuget.exe goto restore
md .nuget
copy %CACHED_NUGET% .nuget\nuget.exe > nul
:restore
IF EXIST packages\KoreBuild goto run
.nuget\NuGet.exe install KoreBuild -ExcludeVersion -o packages -nocache -pre -Source https://www.myget.org/F/aspnetvnext/api/v2
.nuget\NuGet.exe install Sake -version 0.2 -o packages -ExcludeVersion
IF "%SKIP_KRE_INSTALL%"=="1" goto run
CALL packages\KoreBuild\build\kvm upgrade -runtime CLR -x86
CALL packages\KoreBuild\build\kvm install default -runtime CoreCLR -x86
:run
CALL packages\KoreBuild\build\kvm use default -runtime CLR -x86
CALL packages\KoreBuild\build\kpm restore
CALL packages\KoreBuild\build\kvm build
:end
exit /b %ERRORLEVEL%
``` |
ff2cf4a9-ddec-4fa6-9f96-a5723bb644a2 | {
"language": "Batchfile"
} | ```batchfile
@ECHO OFF
SETLOCAL
SET CACHED_NUGET=%LocalAppData%\NuGet\NuGet.exe
SET SOLUTION_PATH=%~dp0src\CodeFormatter.sln
SET BUILD_TOOLS_PATH="%ProgramFiles(x86)%\MSBuild\14.0\bin\MSBuild.exe"
IF NOT EXIST %BUILD_TOOLS_PATH% (
echo In order to build or run this tool you need either Visual Studio 2015 Preview or
echo Microsoft Build Tools 2015 Preview tools installed.
echo.
echo Visit http://www.visualstudio.com/en-us/downloads/visual-studio-2015-downloads-vs
echo to download either.
goto :eof
)
IF EXIST %CACHED_NUGET% goto restore
echo Downloading latest version of NuGet.exe...
IF NOT EXIST %LocalAppData%\NuGet md %LocalAppData%\NuGet
@powershell -NoProfile -ExecutionPolicy unrestricted -Command "$ProgressPreference = 'SilentlyContinue'; Invoke-WebRequest 'https://www.nuget.org/nuget.exe' -OutFile '%CACHED_NUGET%'"
:restore
IF EXIST "%~dp0src\packages" goto build
%CACHED_NUGET% restore %SOLUTION_PATH%
:build
%BUILD_TOOLS_PATH% %SOLUTION_PATH% /p:OutDir="%~dp0bin " /nologo /m /v:m /flp:verbosity=normal %*
```
Remove 'Preview' qualifier from VS and MSBuild | ```batchfile
@ECHO OFF
SETLOCAL
SET CACHED_NUGET=%LocalAppData%\NuGet\NuGet.exe
SET SOLUTION_PATH=%~dp0src\CodeFormatter.sln
SET BUILD_TOOLS_PATH="%ProgramFiles(x86)%\MSBuild\14.0\bin\MSBuild.exe"
IF NOT EXIST %BUILD_TOOLS_PATH% (
echo In order to build or run this tool you need either Visual Studio 2015 or
echo Microsoft Build Tools 2015 tools installed.
echo.
echo Visit http://www.visualstudio.com/en-us/downloads/visual-studio-2015-downloads-vs
echo to download either.
goto :eof
)
IF EXIST %CACHED_NUGET% goto restore
echo Downloading latest version of NuGet.exe...
IF NOT EXIST %LocalAppData%\NuGet md %LocalAppData%\NuGet
@powershell -NoProfile -ExecutionPolicy unrestricted -Command "$ProgressPreference = 'SilentlyContinue'; Invoke-WebRequest 'https://www.nuget.org/nuget.exe' -OutFile '%CACHED_NUGET%'"
:restore
IF EXIST "%~dp0src\packages" goto build
%CACHED_NUGET% restore %SOLUTION_PATH%
:build
%BUILD_TOOLS_PATH% %SOLUTION_PATH% /p:OutDir="%~dp0bin " /nologo /m /v:m /flp:verbosity=normal %*
``` |
936c2502-636e-4efb-b371-9127039fc5c9 | {
"language": "Batchfile"
} | ```batchfile
@echo Off
set config=%1
if "%config%" == "" (
set config=debug
)
.nuget\NuGet.exe restore JabbR.sln -configFile %~dp0\.nuget\NuGet.config -nocache
msbuild %~dp0\Build\Build.proj /p:Configuration="%config%" /v:M /fl /flp:LogFile=msbuild.log;Verbosity=Normal /nr:false /p:VisualStudioVersion=11.0```
Remove the vs version flag. | ```batchfile
@echo Off
set config=%1
if "%config%" == "" (
set config=debug
)
.nuget\NuGet.exe restore JabbR.sln -configFile %~dp0\.nuget\NuGet.config -nocache
msbuild %~dp0\Build\Build.proj /p:Configuration="%config%" /v:M /fl /flp:LogFile=msbuild.log;Verbosity=Normal /nr:false``` |
e67efb7d-d443-4378-b291-57a90c1c9007 | {
"language": "Batchfile"
} | ```batchfile
PATH=C:\python26;C:\progra~2\7-zip;%PATH%
del /q /s dist\*.*
python setup.py py2exe
cd dist
7z d library.zip jinja2\* dns\* 'graphy\*
7z a namebench_for_Windows.zip -r *
namebench -x -O 8.8.8.8 -t5 -o test.html
start test.html
cd ..
```
Remove w9xopen.exe and add README.txt to Windows build | ```batchfile
PATH=C:\python26;C:\progra~2\7-zip;%PATH%
del /q /s dist\*.*
python setup.py py2exe
cd dist
7z d library.zip jinja2\* dns\* 'graphy\*
del /s w9xpopen.exe
copy ..\README.txt .
7z a namebench_for_Windows.zip -r *
namebench -x -O 8.8.8.8 -t5 -o test.html
start test.html
cd ..
``` |
a9a457a7-0ec6-4bba-8ca8-612c9f70bd38 | {
"language": "Batchfile"
} | ```batchfile
@echo off
NuGet.exe install MSBuildTasks -OutputDirectory .\Tools\ -ExcludeVersion -NonInteractive
NuGet.exe install NUnit.Runners -OutputDirectory .\Tools\ -ExcludeVersion -NonInteractive
NuGet.exe install Wix.Toolset -OutputDirectory .\Tools\ -ExcludeVersion -NonInteractive```
Set nuget version to use as 2.6.4 | ```batchfile
@echo off
NuGet.exe install MSBuildTasks -OutputDirectory .\Tools\ -ExcludeVersion -NonInteractive
NuGet.exe install NUnit.Runners -OutputDirectory .\Tools\ -ExcludeVersion -NonInteractive -Version 2.6.4
NuGet.exe install Wix.Toolset -OutputDirectory .\Tools\ -ExcludeVersion -NonInteractive``` |
eed68619-696c-4c02-9084-d314bb42f0b7 | {
"language": "Batchfile"
} | ```batchfile
set NPCAP_OEM_FILE=npcap-0.9988-oem.exe
curl --digest --user %NPCAP_USERNAME%:%NPCAP_PASSWORD% https://nmap.org/npcap/oem/dist/%NPCAP_OEM_FILE% --output %NPCAP_OEM_FILE%
%NPCAP_OEM_FILE% /S /winpcap_mode
xcopy C:\Windows\System32\Npcap\*.dll C:\Windows\System32
xcopy C:\Windows\SysWOW64\Npcap\*.dll C:\Windows\SysWOW64
appveyor DownloadFile https://nmap.org/npcap/dist/npcap-sdk-1.04.zip
mkdir C:\Npcap-sdk
7z x .\npcap-sdk-1.04.zip -oC:\Npcap-sdk```
Remove xcopy from Npcap install script | ```batchfile
set NPCAP_OEM_FILE=npcap-0.9988-oem.exe
curl --digest --user %NPCAP_USERNAME%:%NPCAP_PASSWORD% https://nmap.org/npcap/oem/dist/%NPCAP_OEM_FILE% --output %NPCAP_OEM_FILE%
%NPCAP_OEM_FILE% /S /winpcap_mode
appveyor DownloadFile https://nmap.org/npcap/dist/npcap-sdk-1.04.zip
mkdir C:\Npcap-sdk
7z x .\npcap-sdk-1.04.zip -oC:\Npcap-sdk``` |
2d34ebe0-1147-4841-b05c-94d8d5d1e23f | {
"language": "Batchfile"
} | ```batchfile
```
Add boot script source for lcd43 system | ```batchfile
setenv bootargs "console=ttyO2,115200n8 mpurate=500 vram=12M omapdss.def_disp=lcd43 root=/dev/mmcblk0p2 rw rootfstype=ext3 rootwait"
setenv loadaddr 0x82000000
fatload mmc 0 ${loadaddr} uImage
bootm ${loadaddr}
``` |
a35c1337-36e6-4730-b5dd-aff82577778c | {
"language": "Batchfile"
} | ```batchfile
```
Add Windows version of script | ```batchfile
@ECHO OFF
REM
REM Converts the Reach KBs into the format expected by BioNLPProcessor
REM Re-run this script whenever a Reach KB changes
REM To avoid rugenerating *all* KBs edit the ner_kb.config file and keep only the modified KBs
REM
cd ../reach
REM generate the NER KBs here
sbt "runMain org.clulab.processors.bionlp.ner.KBGenerator ../bioresources/ner_kb.config ../bioresources/src/main/resources/org/clulab/reach/kb/ ../bioresources/src/main/resources/org/clulab/reach/kb/ner"
REM generate the serialized LexiconNER model now
sbt "runMain org.clulab.processors.bionlp.ner.KBLoader ../bioresources/src/main/resources/org/clulab/reach/kb/ner/model.ser.gz"
cd ../bioresources
``` |
46175441-baec-460a-b5e4-3a70b9b4b553 | {
"language": "Batchfile"
} | ```batchfile
```
Add script to set folder options | ```batchfile
<!-- :
@setlocal EnableDelayedExpansion EnableExtensions
@for %%i in (%~dp0\_packer_config*.cmd) do @call "%%~i"
@if defined PACKER_DEBUG (@echo on) else (@echo off)
title Setting folder options. Please wait...
echo ==^> Setting folder options
echo ==^> Show file extensions
:: Default is 1 - hide file extensions
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /f /v HideFileExt /t REG_DWORD /d 0
echo ==^> Show hidden files and folders
:: Default is 2 - do not show hidden files and folders
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /f /v Hidden /t REG_DWORD /d 1
echo ==^> Display Full path
:: Default FullPath 0 and FullPathAddress 0
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /f /v FullPath /t REG_DWORD /d 1
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /f /v FullPathAddress /t REG_DWORD /d 1
:exit0
ver>nul
goto :exit
:exit1
verify other 2>nul
:exit
``` |
4af76ccd-b5b7-4e92-a6c1-6e0a48cb0ef1 | {
"language": "Batchfile"
} | ```batchfile
setlocal EnableDelayedExpansion
mkdir build
cd build
cmake -G "NMake Makefiles" ^
-DCMAKE_INSTALL_PREFIX:PATH="%LIBRARY_PREFIX%" ^
-DCMAKE_PREFIX_PATH:PATH="%LIBRARY_PREFIX%" ^
-DCMAKE_BUILD_TYPE:STRING=Release ^
-DCMAKE_LIBRARY_PATH:PATH="%LIBRARY_PREFIX%;%LIBRARY_PREFIX%/bin" ^
..
if errorlevel 1 exit 1
nmake
if errorlevel 1 exit 1
```
Build shared library on Windows | ```batchfile
setlocal EnableDelayedExpansion
mkdir build
cd build
cmake -G "NMake Makefiles" ^
-DCMAKE_INSTALL_PREFIX:PATH="%LIBRARY_PREFIX%" ^
-DCMAKE_PREFIX_PATH:PATH="%LIBRARY_PREFIX%" ^
-DCMAKE_BUILD_TYPE:STRING=Release ^
-DCMAKE_LIBRARY_PATH:PATH="%LIBRARY_PREFIX%;%LIBRARY_PREFIX%/bin" ^
-DBUILD_SHARED_LIBS:BOOL=ON ^
..
if errorlevel 1 exit 1
nmake
if errorlevel 1 exit 1
``` |
2e52e034-3911-4287-8477-f7383b698939 | {
"language": "Batchfile"
} | ```batchfile
@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/da0885fc7a8a2facba79a8b5ca818ed6a730d856
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
```
Update kuduscript to latest for adding python support | ```batchfile
@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/eddc60f7017a05a02bd9b19b3162ce58a10de81a
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
``` |
40623e41-b632-4df2-bd54-766ad003aabf | {
"language": "Batchfile"
} | ```batchfile
:: %~dp0 gives the dirname of the script
cmd /c %~dp0firewall-disable.bat
cmd /c %~dp0vagrant-ssh.bat
```
Fix path to install cygwin. | ```batchfile
:: %~dp0 gives the dirname of the script
cmd /c %~dp0firewall-disable.bat
cmd /c %~dp0install-cygwin-sshd.bat
``` |
f7f69aea-9aa0-4acb-8f65-4840a7bac3cc | {
"language": "Batchfile"
} | ```batchfile
@ECHO OFF
WHERE /Q nuget >NUL
IF %ERRORLEVEL% NEQ 0 (
ECHO nuget not found.
ECHO.
ECHO Run "%~pd0download-nuget.cmd" to download the latest version, or update PATH as appropriate.
GOTO END
)
nuget pack %~dp0WindowsCanvas.nuspec -nopackageanalysis -outputdirectory %~dp0..\..\bin %*
nuget pack %~dp0WindowsCanvas-debug.nuspec -nopackageanalysis -outputdirectory %~dp0..\..\bin %*
:END```
Fix build script to also work when nuget.exe isn't in the path | ```batchfile
@ECHO OFF
PUSHD %~dp0
WHERE /Q nuget >NUL
IF %ERRORLEVEL% NEQ 0 (
ECHO nuget not found.
ECHO.
ECHO Run "%~pd0download-nuget.cmd" to download the latest version, or update PATH as appropriate.
GOTO END
)
nuget pack %~dp0WindowsCanvas.nuspec -nopackageanalysis -outputdirectory %~dp0..\..\bin %*
nuget pack %~dp0WindowsCanvas-debug.nuspec -nopackageanalysis -outputdirectory %~dp0..\..\bin %*
:END
POPD
``` |
356a179c-5221-492b-95ef-b989c96811dc | {
"language": "Batchfile"
} | ```batchfile
PATH=C:\python26;C:\progra~2\7-zip;%PATH%
del /q /s dist\*.*
python setup.py py2exe
cd dist
7z d library.zip jinja2\* dns\* 'graphy\*
7z a namebench_for_Windows.zip -r *
namebench -x -O 8.8.8.8 -t5 -o test.html
start test.html
cd ..
```
Remove w9xopen.exe and add README.txt to Windows build | ```batchfile
PATH=C:\python26;C:\progra~2\7-zip;%PATH%
del /q /s dist\*.*
python setup.py py2exe
cd dist
7z d library.zip jinja2\* dns\* 'graphy\*
del /s w9xpopen.exe
copy ..\README.txt .
7z a namebench_for_Windows.zip -r *
namebench -x -O 8.8.8.8 -t5 -o test.html
start test.html
cd ..
``` |
7bd012e5-f38a-4644-b117-cf2c54493a37 | {
"language": "Batchfile"
} | ```batchfile
@setlocal ENABLEDELAYEDEXPANSION
@set jsonlines=0
@for /R %devroot%\%projectname%\bin\%abi%\ %%a IN (lvp_icd.*.json) do @for /f tokens^=^*^ delims^= %%b IN (%%a) do @(
@set /a jsonlines+=1
@IF !jsonlines! NEQ 4 set jsonline[!jsonlines!]=%%b
@IF !jsonlines! EQU 4 set jsonline[!jsonlines!]= "library_path": "vulkan_lvp.dll"
)
@for /R %devroot%\%projectname%\bin\%abi%\ %%a IN (lvp_icd.*.json) do @(
@del %%a
@for /L %%b IN (1,1,%jsonlines%) do @echo !jsonline[%%b]!>>%%a
)
```
Fix lavapipe JSON patcher. Fixes 0a775146 | ```batchfile
@setlocal ENABLEDELAYEDEXPANSION
@set jsonlines=0
@for /R %devroot%\%projectname%\bin\%abi%\ %%a IN (lvp_icd.*.json) do @for /f tokens^=^*^ delims^= %%b IN (%%a) do @(
@set /a jsonlines+=1
@IF !jsonlines! NEQ 4 set jsonline[!jsonlines!]=%%b
@IF !jsonlines! EQU 4 set jsonline[!jsonlines!]= "library_path": ".^\^\vulkan_lvp.dll"
)
@for /R %devroot%\%projectname%\bin\%abi%\ %%a IN (lvp_icd.*.json) do @(
@del %%a
@for /L %%b IN (1,1,%jsonlines%) do @echo !jsonline[%%b]!>>%%a
)
``` |
edad3d0f-5872-4d3c-b27d-b9bd6ed874f5 | {
"language": "Batchfile"
} | ```batchfile
@echo off
rem To sign the Windows installer, set the `SIGN_WINDOWS_INSTALLER=true` environment variable.
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 installer at the Sign Windows Installer pipeline artifact.
IF NOT "%SIGN_WINDOWS_INSTALLER%" == "true" (GOTO DONT_SIGN)
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\" && ren *.exe *-signed.exe && buildkite-agent.exe artifact upload "*.exe"
GOTO END
:DONT_SIGN
echo Set the SIGN_WINDOWS_INSTALLER=true environment variable to sign the Windows installer.
:END```
Add period to the signed name. | ```batchfile
@echo off
rem To sign the Windows installer, set the `SIGN_WINDOWS_INSTALLER=true` environment variable.
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 installer at the Sign Windows Installer pipeline artifact.
IF NOT "%SIGN_WINDOWS_INSTALLER%" == "true" (GOTO DONT_SIGN)
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\" && ren *.exe *.-signed.exe && buildkite-agent.exe artifact upload "*.exe"
GOTO END
:DONT_SIGN
echo Set the SIGN_WINDOWS_INSTALLER=true environment variable to sign the Windows installer.
:END``` |
ae58f6ee-6b1c-46c4-838a-d609e97f0b28 | {
"language": "Batchfile"
} | ```batchfile
mkdir build
cd build
REM TODO: can not find tkint.h -> disabling GUI for WIN
cmake .. -G "Ninja" ^
-DCMAKE_BUILD_TYPE="Release" ^
-DINSTALL_DIR_LAYOUT="Unix" ^
-DCMAKE_PREFIX_PATH:FILEPATH="%PREFIX%" ^
-DCMAKE_INSTALL_PREFIX:FILEPATH="%LIBRARY_PREFIX%" ^
-DNG_INSTALL_DIR_INCLUDE:FILEPATHE="%LIBRARY_PREFIX%/include/netgen" ^
-DINSTALL_DIR:FILEPATH:FILEPATH="%LIBRARY_PREFIX%" ^
-DOCC_INCLUDE_DIR:FILEPATH="%LIBRARY_PREFIX%/include/opencascade" ^
-DOCC_LIBRARY_DIR:FILEPATH="%LIBRARY_PREFIX%/lib" ^
-DUSE_OCC=ON ^
-DUSE_PYTHON=ON ^
-DUSE_GUI=OFF ^
-DUSE_SUPERBUILD=OFF
if errorlevel 1 exit 1
ninja install
if errorlevel 1 exit 1
```
Remove unnecessary cmake flag INSTALL_DIR | ```batchfile
mkdir build
cd build
REM TODO: can not find tkint.h -> disabling GUI for WIN
cmake .. -G "Ninja" ^
-DCMAKE_BUILD_TYPE="Release" ^
-DINSTALL_DIR_LAYOUT="Unix" ^
-DCMAKE_PREFIX_PATH:FILEPATH="%PREFIX%" ^
-DCMAKE_INSTALL_PREFIX:FILEPATH="%LIBRARY_PREFIX%" ^
-DNG_INSTALL_DIR_INCLUDE:FILEPATHE="%LIBRARY_PREFIX%/include/netgen" ^
-DOCC_INCLUDE_DIR:FILEPATH="%LIBRARY_PREFIX%/include/opencascade" ^
-DOCC_LIBRARY_DIR:FILEPATH="%LIBRARY_PREFIX%/lib" ^
-DUSE_OCC=ON ^
-DUSE_PYTHON=ON ^
-DUSE_GUI=OFF ^
-DUSE_SUPERBUILD=OFF
if errorlevel 1 exit 1
ninja install
if errorlevel 1 exit 1
``` |
6a981060-4c16-4d64-a7a4-b60a050f9943 | {
"language": "Batchfile"
} | ```batchfile
FOR /F "tokens=*" %%G IN ('DIR /B /AD /S org.*') DO RMDIR /S /Q %%G
java -ea -Dosgi.classloader.singleThreadLoads=true -XX:+UseCompressedOops -XX:+CMSClassUnloadingEnabled -XX:+UseParallelGC -Xmx92m -jar plugins\org.eclipse.equinox.launcher.jar %*
```
Remove compressed pointer flag for now. | ```batchfile
FOR /F "tokens=*" %%G IN ('DIR /B /AD /S org.*') DO RMDIR /S /Q %%G
java -ea -Dosgi.classloader.singleThreadLoads=true -XX:+CMSClassUnloadingEnabled -XX:+UseParallelGC -Xmx92m -jar plugins\org.eclipse.equinox.launcher.jar %*
``` |
623c4c87-8477-4e2d-bd40-44b489bab3e2 | {
"language": "Batchfile"
} | ```batchfile
SET "JAVA_HOME=C:\opt\jdk-8"
SET PATH=%PATH%;C:\Program Files\Git\usr\bin
cd git-repo
.\gradlew -Dorg.gradle.internal.launcher.welcomeMessageEnabled=false --no-daemon --max-workers=4 build
```
Use Java 17 for Windows CI build | ```batchfile
SET "JAVA_HOME=C:\opt\jdk-17"
SET PATH=%PATH%;C:\Program Files\Git\usr\bin
cd git-repo
.\gradlew -Dorg.gradle.internal.launcher.welcomeMessageEnabled=false --no-daemon --max-workers=4 build
``` |
4394143e-8373-457c-998b-9c8d92a7ddd4 | {
"language": "Batchfile"
} | ```batchfile
@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 initdb under windows server 2016 | ```batchfile
@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"
java -cp ..\lib\* %DEBUG_OPTS% "-Daerobase.config.dir=%CONFIG%" org.jboss.aerogear.unifiedpush.DBMaintenance > initdb-java.log 2>&1
GOTO End1
:No1
ECHO Missing Config file
GOTO End1
:End1
@ECHO ON
``` |
09430dec-1676-4939-bde5-9a33abebf05b | {
"language": "Batchfile"
} | ```batchfile
cd C:\Users\chrome-bot
call gclient config https://skia.googlesource.com/buildbot.git
call gclient sync --force
cd buildbot
python scripts\launch_slaves.py```
Add -j1 to windows launch script | ```batchfile
cd C:\Users\chrome-bot
call gclient config https://skia.googlesource.com/buildbot.git
call gclient sync --force -j1
cd buildbot
python scripts\launch_slaves.py``` |
da33e2e6-a02b-4d0c-affd-1d95d2285f2a | {
"language": "Batchfile"
} | ```batchfile
:: Author: Lisandro Dalcin
:: Contact: [email protected]
:: Credits: Olivier Grisel and Kyle Kastner
@ECHO OFF
SET COMMAND_TO_RUN=%*
SET WIN_SDK_ROOT=C:\Program Files\Microsoft SDKs\Windows
IF "%PYTHON_VERSION:~0,1%" == "2" SET WIN_SDK_VERSION="v7.0"
IF "%PYTHON_VERSION:~0,1%" == "3" SET WIN_SDK_VERSION="v7.1"
IF "%PYTHON_ARCH%"=="64" (
ECHO Configuring Windows SDK %WIN_SDK_VERSION% for Python %PYTHON_VERSION% on a 64 bit architecture
SET DISTUTILS_USE_SDK=1
SET MSSdk=1
"%WIN_SDK_ROOT%\%WIN_SDK_VERSION%\Setup\WindowsSdkVer.exe" -q -version:%WIN_SDK_VERSION%
"%WIN_SDK_ROOT%\%WIN_SDK_VERSION%\Bin\SetEnv.cmd" /x64 /release
ECHO Executing: %COMMAND_TO_RUN%
call %COMMAND_TO_RUN% || EXIT 1
) ELSE (
ECHO Using default MSVC build environment for 32 bit architecture
ECHO Executing: %COMMAND_TO_RUN%
call %COMMAND_TO_RUN% || EXIT 1
)
```
Fix build for Python 3.5 | ```batchfile
:: Author: Lisandro Dalcin
:: Contact: [email protected]
:: Credits: Olivier Grisel and Kyle Kastner
@ECHO OFF
SET COMMAND_TO_RUN=%*
SET PYTHON_VERSION_MAJOR=%PYTHON_VERSION:~0,1%
SET PYTHON_VERSION_MINOR=%PYTHON_VERSION:~2,1%
SET WIN_SDK_ROOT=C:\Program Files\Microsoft SDKs\Windows
IF %PYTHON_VERSION_MAJOR% == 2 SET WIN_SDK_VERSION="v7.0"
IF %PYTHON_VERSION_MAJOR% == 3 SET WIN_SDK_VERSION="v7.1"
IF %PYTHON_ARCH% == 64 SET USE_WIN_SDK=1
IF %PYTHON_VERSION_MAJOR% EQU 3 IF %PYTHON_VERSION_MINOR% GEQ 5 SET USE_WIN_SDK=0
IF %PYTHON_VERSION_MAJOR% GTR 3 SET USE_WIN_SDK=0
if %PYTHON_ARCH% == 32 SET USE_WIN_SDK=0
IF %USE_WIN_SDK% == 1 (
ECHO Configuring Windows SDK %WIN_SDK_VERSION% for %PYTHON_ARCH% bit architecture
SET DISTUTILS_USE_SDK=1
SET MSSdk=1
"%WIN_SDK_ROOT%\%WIN_SDK_VERSION%\Setup\WindowsSdkVer.exe" -q -version:%WIN_SDK_VERSION%
"%WIN_SDK_ROOT%\%WIN_SDK_VERSION%\Bin\SetEnv.cmd" /x64 /release
ECHO Executing: %COMMAND_TO_RUN%
CALL %COMMAND_TO_RUN% || EXIT 1
) ELSE (
ECHO Using default MSVC build environment for %PYTHON_ARCH% bit architecture
ECHO Executing: %COMMAND_TO_RUN%
CALL %COMMAND_TO_RUN% || EXIT 1
)
``` |
d1a178d6-ef7f-4178-8725-2071fe17892c | {
"language": "Batchfile"
} | ```batchfile
@echo off
setlocal
set mypath=%~dp0
set PATH=%mypath%\python2.7;%PATH%
set PYTHONPATH=%mypath%\lib
set OQ_SITE_CFG_PATH=%mypath%\openquake.cfg
doskey oq=python.exe -m openquake.commands.__main__ $*
doskey oq-engine=python.exe -m openquake.commands.__main__ engine $*
echo OpenQuake environment loaded
echo The command 'oq-engine' is deprecated and will be removed. Please use 'oq engine' instead
cmd /k
endlocal
```
Add python2.7\Scripts to PATH on Win | ```batchfile
@echo off
setlocal
set mypath=%~dp0
set PATH=%mypath%\python2.7\Scripts;%mypath%\python2.7;%PATH%
set PYTHONPATH=%mypath%\lib
set OQ_SITE_CFG_PATH=%mypath%\openquake.cfg
doskey oq=python.exe -m openquake.commands.__main__ $*
doskey oq-engine=python.exe -m openquake.commands.__main__ engine $*
echo OpenQuake environment loaded
echo The command 'oq-engine' is deprecated and will be removed. Please use 'oq engine' instead
cmd /k
endlocal
``` |
bf280d70-c1d7-42b4-af37-d018fc80af05 | {
"language": "Batchfile"
} | ```batchfile
@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
```
Fix BuildForPublishcation.cmd Apparently the paths in nuget.config are relative to the *current* directory... | ```batchfile
@echo off
setlocal
call NightlyBuild.cmd
set PackageDir=%~dp0LocalPackages
pushd %~dp0dnx\src\Microsoft.DotNet.xunit.performance.runner.dnx
call dnu restore
call dnu pack --out %PackageDir% --configuration Release
popd``` |
7efdfff1-fcb7-44c0-b7ed-5338d0d7ba89 | {
"language": "Batchfile"
} | ```batchfile
@echo off
cmake -G "Visual Studio 14 2015 Win64" %"Set the generator to Visual Studio 2015 x64"% ^
-T "v140_clang_3_7" %"Set the compiler toolchain to Clang/C2"% ^
-H%~dp0\.. %"Set the source directory to the parent directory"% ^
-B%~dp0\..\_build_clang %"Set the build directory to the _build_clang subdirectory"% ^
%* %"Forward additional command line arguments to CMake"%
@echo on
```
Update Clang/C2 batch file with new toolchain name | ```batchfile
@echo off
cmake -G "Visual Studio 14 2015 Win64" %"Set the generator to Visual Studio 2015 x64"% ^
-T "v140_clang_c2" %"Set the compiler toolchain to Clang/C2"% ^
-H%~dp0\.. %"Set the source directory to the parent directory"% ^
-B%~dp0\..\_build_clang %"Set the build directory to the _build_clang subdirectory"% ^
%* %"Forward additional command line arguments to CMake"%
@echo on
``` |
81a7cbad-84af-4e27-8320-c5b3657ce103 | {
"language": "Batchfile"
} | ```batchfile
rem @if "%_echo%"=="" echo off
setlocal
call %~d0%~p0\..\..\..\config.bat
if EXIST magic.dll del magic.dll
if errorlevel 1 goto :Error
"%FSC%" --out:magic.dll -a magic.fs --keyfile:magic.snk
if errorlevel 1 goto :Error
REM == If we are running this test on a lab machine, we may not be running from an elev cmd prompt
REM == In that case, ADMIN_PIPE is set to the tool to invoke the command elevated.
IF DEFINED ADMIN_PIPE %ADMIN_PIPE% %GACUTIL% /if magic.dll
if errorlevel 1 goto :Error
if EXIST provider.dll del provider.dll
if ERRORLEVEL 1 goto :Error
"%CSC%" /out:provider.dll /target:library /r:"%FSCOREDLLPATH%" /r:magic.dll provider.cs
if ERRORLEVEL 1 goto :Error
"%GACUTIL%" /if magic.dll
"%FSC%" %fsc_flags% /debug+ /r:provider.dll /optimize- test.fsx
if ERRORLEVEL 1 goto Error
:Ok
echo. > build.ok
endlocal
exit /b 0
:Error
endlocal
exit /b %ERRORLEVEL%```
Fix accidental incorrect quoting in test script (changeset 1235391) | ```batchfile
rem @if "%_echo%"=="" echo off
setlocal
call %~d0%~p0\..\..\..\config.bat
if EXIST magic.dll del magic.dll
if errorlevel 1 goto :Error
"%FSC%" --out:magic.dll -a magic.fs --keyfile:magic.snk
if errorlevel 1 goto :Error
REM == If we are running this test on a lab machine, we may not be running from an elev cmd prompt
REM == In that case, ADMIN_PIPE is set to the tool to invoke the command elevated.
IF DEFINED ADMIN_PIPE %ADMIN_PIPE% %GACUTIL% /if magic.dll
if errorlevel 1 goto :Error
if EXIST provider.dll del provider.dll
if ERRORLEVEL 1 goto :Error
%CSC% /out:provider.dll /target:library "/r:%FSCOREDLLPATH%" /r:magic.dll provider.cs
if ERRORLEVEL 1 goto :Error
"%GACUTIL%" /if magic.dll
"%FSC%" %fsc_flags% /debug+ /r:provider.dll /optimize- test.fsx
if ERRORLEVEL 1 goto Error
:Ok
echo. > build.ok
endlocal
exit /b 0
:Error
endlocal
exit /b %ERRORLEVEL%``` |
29a498bb-51ac-4c48-88b9-796ee5c50b97 | {
"language": "Batchfile"
} | ```batchfile
@echo off
pushd %~dp0
if not exist ..\..\nuget.exe (
powershell -Command "Invoke-WebRequest https://dist.nuget.org/win-x86-commandline/latest/nuget.exe -OutFile ..\..\nuget.exe"
)
if not defined NUGET_VERSION (
echo NUGET_VERSION not defined, aborting...
popd
exit /b 1
)
if not defined API_KEY (
echo API_KEY not defined, aborting...
popd
exit /b 1
)
if not defined NUGET_REPO (
echo NUGET_REPO not defined, aborting...
popd
exit /b 1
)
for /r %%i in (*.nuspec) do (
..\..\nuget.exe pack %%i /Properties version=%NUGET_VERSION% /BasePath ..\.. || exit /b 1
)
for /r %%i in (*.nupkg) do (
..\..\nuget.exe push %%i %API_KEY% -Source %NUGET_REPO% || exit /b 1
)
del *.nupkg
popd```
Delete the nuget packages from the packaging directory BEFORE the script starts to avoid madness | ```batchfile
@echo off
pushd %~dp0
del *.nupkg
if not exist ..\..\nuget.exe (
powershell -Command "Invoke-WebRequest https://dist.nuget.org/win-x86-commandline/latest/nuget.exe -OutFile ..\..\nuget.exe"
)
if not defined NUGET_VERSION (
echo NUGET_VERSION not defined, aborting...
popd
exit /b 1
)
if not defined API_KEY (
echo API_KEY not defined, aborting...
popd
exit /b 1
)
if not defined NUGET_REPO (
echo NUGET_REPO not defined, aborting...
popd
exit /b 1
)
for /r %%i in (*.nuspec) do (
..\..\nuget.exe pack %%i /Properties version=%NUGET_VERSION% /BasePath ..\.. || exit /b 1
)
for /r %%i in (*.nupkg) do (
..\..\nuget.exe push %%i %API_KEY% -Source %NUGET_REPO% || exit /b 1
)
popd``` |
00ba9ee2-0739-4348-ab1a-b57c5bba503a | {
"language": "Batchfile"
} | ```batchfile
@echo off
echo Press any key to publish
pause
".nuget\NuGet.exe" push Rssdp.1.0.0.7.nupkg
pause```
Update nuget publish cmd file for latest version. | ```batchfile
@echo off
echo Press any key to publish
pause
".nuget\NuGet.exe" push Rssdp.1.0.0.9.nupkg
pause``` |
526e351c-1168-43d3-aedc-dd6eda10bad1 | {
"language": "Batchfile"
} | ```batchfile
rem Alter this if you need to install multiple instances.
@echo off
set SERVICENAME="Cuberite"
set CURRENTDIR=%CD%
sc create %SERVICENAME% binPath= "%CURRENTDIR%\Cuberite.exe -d" start= auto DisplayName= %SERVICENAME%
sc description %SERVICENAME% "Minecraft server instance"
```
Use string redirection in Windows service | ```batchfile
rem Alter this if you need to install multiple instances.
@echo off
set SERVICENAME="Cuberite"
set CURRENTDIR=%CD%
sc create %SERVICENAME% binPath= "%CURRENTDIR%\Cuberite.exe -d" start= auto DisplayName= "@%CURRENTDIR%\Cuberite.exe,-1"
sc description %SERVICENAME% "@%CURRENTDIR%\Cuberite.exe,-2"
``` |
85297d89-8ec8-4f37-b2fa-a83d235d1649 | {
"language": "Batchfile"
} | ```batchfile
DEL c:\Users\Administrator\go\src\github.com\pivotal-cf-experimental\GATS\cf.exe
bitsadmin.exe /transfer "DownloadStableCLI" https://s3.amazonaws.com/go-cli/builds/cf-windows-amd64.exe c:\Users\Administrator\go\src\github.com\pivotal-cf-experimental\GATS\cf.exe
go get -u github.com/pivotal-cf-experimental/GATS/...
SET GATSPATH=%GOPATH%\src\github.com\pivotal-cf-experimental\GATS
SET PATH=%PATH%;%GATSPATH%;C:\Program Files\cURL\bin
SET CONFIG=%CD%\config.json
SET LOCAL_GOPATH=%GATSPATH%\Godeps\_workspace
MKDIR %LOCAL_GOPATH%\bin
SET GOPATH=%LOCAL_GOPATH%;%GOPATH%
SET PATH=%LOCAL_GOPATH%\bin;%PATH%
go install -v github.com/onsi/ginkgo/ginkgo
ginkgo.exe -r -slowSpecThreshold=120 ./gats
```
Add GATSPATH to beginning of PATH. | ```batchfile
DEL c:\Users\Administrator\go\src\github.com\pivotal-cf-experimental\GATS\cf.exe
bitsadmin.exe /transfer "DownloadStableCLI" https://s3.amazonaws.com/go-cli/builds/cf-windows-amd64.exe c:\Users\Administrator\go\src\github.com\pivotal-cf-experimental\GATS\cf.exe
go get -u github.com/pivotal-cf-experimental/GATS/...
SET GATSPATH=%GOPATH%\src\github.com\pivotal-cf-experimental\GATS
SET PATH=%GATSPATH%;%PATH%;C:\Program Files\cURL\bin
SET CONFIG=%CD%\config.json
SET LOCAL_GOPATH=%GATSPATH%\Godeps\_workspace
MKDIR %LOCAL_GOPATH%\bin
SET GOPATH=%LOCAL_GOPATH%;%GOPATH%
SET PATH=%LOCAL_GOPATH%\bin;%PATH%
go install -v github.com/onsi/ginkgo/ginkgo
ginkgo.exe -r -slowSpecThreshold=120 ./gats
``` |
66d4d92e-1c6c-4ae5-8b45-f547241471f1 | {
"language": "Batchfile"
} | ```batchfile
@echo off
net session >nul 2>&1
if %errorLevel% NEQ 0 (
echo Please run this script with Administrator privileges
timeout 10 > NUL
EXIT /B 1
)
SET cdpath=%~dp0
echo Setting the system environment variable DOCKER_HOST
reg add "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Environment" /v DOCKER_HOST /t REG_SZ /d tcp://:2376 /f
echo Setting the system environment variable DOCKER_TLS
reg add "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Environment" /v DOCKER_TLS_VERIFY /t REG_SZ /d 1 /f
echo Configuring the Docker daemon for TLS
if not exist c:\ProgramData\docker\certs.d\ mkdir c:\ProgramData\docker\certs.d\
xcopy /O %cdpath%server\* c:\ProgramData\docker\certs.d\
echo Configuring the Docker client to connect using TLS for the current user
if not exist c:\Users\%username%\.docker\ mkdir c:\Users\%username%\.docker\
xcopy /O %cdpath%client\* c:\Users\%username%\.docker\
echo Restarting Docker
net stop Docker
net start Docker
echo All done. Docker is now configured for TLS.
echo Please complete the preparation on the control domain console.
timeout 10 > NUL
EXIT /b 0
```
Check that Docker is installed on Windows | ```batchfile
@echo off
net session >nul 2>&1
if %errorLevel% NEQ 0 (
echo Please run this script with Administrator privileges
timeout 10 > NUL
EXIT /B 1
)
SET cdpath=%~dp0
if not exist c:\ProgramData\docker\ (
echo Error: Could not find Docker in c:\ProgramData\docker\.
echo Please install Docker before running this script.
timeout 10 > NUL
EXIT /B 1
)
echo Setting the system environment variable DOCKER_HOST
reg add "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Environment" /v DOCKER_HOST /t REG_SZ /d tcp://:2376 /f
echo Setting the system environment variable DOCKER_TLS
reg add "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Environment" /v DOCKER_TLS_VERIFY /t REG_SZ /d 1 /f
echo Configuring the Docker daemon for TLS
if not exist c:\ProgramData\docker\certs.d\ mkdir c:\ProgramData\docker\certs.d\
xcopy /O %cdpath%server\* c:\ProgramData\docker\certs.d\
echo Configuring the Docker client to connect using TLS for the current user
if not exist c:\Users\%username%\.docker\ mkdir c:\Users\%username%\.docker\
xcopy /O %cdpath%client\* c:\Users\%username%\.docker\
echo Restarting Docker
net stop Docker
net start Docker
echo All done. Docker is now configured for TLS.
echo Please complete the preparation on the control domain console.
timeout 10 > NUL
EXIT /b 0
``` |
65bbb0b6-fa46-453e-ac7f-18bf97b3b905 | {
"language": "Batchfile"
} | ```batchfile
:: Establish an environment for Mindbender applications
@echo off
set PYBLISH_BASE=%~dp0git\pyblish-base
set PYBLISH_MAYA=%~dp0git\pyblish-maya
set PYBLISH_NUKE=%~dp0git\pyblish-nuke
set PYBLISH_QML=%~dp0git\pyblish-qml
set PYBLISH_LITE=%~dp0git\pyblish-lite
set MINDBENDER_CORE=%~dp0git\mindbender-core
set MINDBENDER_LAUNCHER=%~dp0git\mindbender-launcher
set MINDBENDER_EXAMPLE=%~dp0git\mindbender-example\projects
set PATH=%~dp0bin\windows\syncthing;%PATH%
set PATH=%~dp0bin\windows\python36;%PATH%
set PATH=%~dp0bin\windows;%PATH%
set PATH=%~dp0bin;%PATH%
set PYTHONPATH=%~dp0bin\maya\2016\pythonpath
set PYTHONPATH=%MINDBENDER_CORE%;%MINDBENDER_LAUNCHER%;%PYTHONPATH%
set PYBLISHGUI=pyblish_qml
if "%MINDBENDER_PROJECTS%"=="" set MINDBENDER_PROJECTS=%MINDBENDER_EXAMPLE%
```
Set configuration to the one bundled | ```batchfile
:: Establish an environment for Mindbender applications
@echo off
set PYBLISH_BASE=%~dp0git\pyblish-base
set PYBLISH_MAYA=%~dp0git\pyblish-maya
set PYBLISH_NUKE=%~dp0git\pyblish-nuke
set PYBLISH_QML=%~dp0git\pyblish-qml
set PYBLISH_LITE=%~dp0git\pyblish-lite
set MINDBENDER_CORE=%~dp0git\mindbender-core
set MINDBENDER_LAUNCHER=%~dp0git\mindbender-launcher
set MINDBENDER_EXAMPLE=%~dp0git\mindbender-example\projects
set MINDBENDER_CONFIG=polly
set PATH=%~dp0bin\windows\python36;%PATH%
set PATH=%~dp0bin\windows;%PATH%
set PATH=%~dp0bin;%PATH%
set PYTHONPATH=%~dp0bin\pythonpath
set PYTHONPATH=%~dp0\git\mindbender-config;%PYTHONPATH%
set PYTHONPATH=%MINDBENDER_CORE%;%MINDBENDER_LAUNCHER%;%PYTHONPATH%
set PYBLISHGUI=pyblish_qml
if "%MINDBENDER_PROJECTS%"=="" set MINDBENDER_PROJECTS=%MINDBENDER_EXAMPLE%
``` |
c64ec50c-3d4e-4c20-84a0-937e588e8db7 | {
"language": "Batchfile"
} | ```batchfile
@ECHO OFF
set target=amd64
set MSVC=%USERPROFILE%\cmsc\msvc\bin\%target%
set libs=/LIBPATH:"%MSVC%\..\..\lib\%target%"
set include=/I"%MSVC%\..\..\include\crt"
set src=%CD%
set output=/OUT:zs.exe
set C_FLAGS=/Wall /GL /O1 /Os /Oi /Ob1 /GS- /TC
set files=%src%\main.c %src%\errors.c %src%\flash_io.c %src%\zs_data.c
%MSVC%\cl.exe /MD %include% %C_FLAGS% %files% %EXTRA_LIBS% /link %output% %libs%
pause
```
Test with /TP instead of /TC to check for C++ warnings. | ```batchfile
@ECHO OFF
set target=amd64
set MSVC=%USERPROFILE%\cmsc\msvc\bin\%target%
set libs=/LIBPATH:"%MSVC%\..\..\lib\%target%"
set include=/I"%MSVC%\..\..\include\crt"
set src=%CD%
set output=/OUT:zs.exe
REM set C_FLAGS=/Wall /GL /O1 /Os /Oi /Ob1 /GS- /TP
set C_FLAGS=/Wall /GL /O1 /Os /Oi /Ob1 /GS- /TC
set files=%src%\main.c %src%\errors.c %src%\flash_io.c %src%\zs_data.c
%MSVC%\cl.exe /MD %include% %C_FLAGS% %files% %EXTRA_LIBS% /link %output% %libs%
pause
``` |
97e6ba3e-e0a5-47e8-bbd8-08842603e31a | {
"language": "Batchfile"
} | ```batchfile
echo on
echo Postsubmit.bat started.
if exist %VCVARSALL_SCRIPT% (
echo Running VCVARSALL script: %VCVARSALL_SCRIPT%
CALL %VCVARSALL_SCRIPT% amd64 || exit /b %errorlevel%
)
echo Creating build directory.
mkdir C:\Fruit\build-%CONFIGURATION%
cd C:\Fruit\build-%CONFIGURATION%
echo Running CMake.
%CMAKE_PATH%\cmake.exe -G %CMAKE_GENERATOR% .. -DCMAKE_BUILD_TYPE=%CONFIGURATION% -DBOOST_DIR=%BOOST_DIR% -DBUILD_TESTS_IN_RELEASE_MODE=True || exit /b %errorlevel%
echo Building Fruit.
IF %CMAKE_GENERATOR%=="MinGW Makefiles" (
mingw32-make -j12 || exit /b %errorlevel%
) ELSE (
msbuild ALL_BUILD.vcxproj || exit /b %errorlevel%
)
echo Running tests.
%CMAKE_PATH%\ctest.exe -j 1 --output-on-failure -C %CONFIGURATION% || exit /b %errorlevel%
```
Add some more debugging prints in the AppVeyor test script, to investigate an error when running CMake. | ```batchfile
echo on
echo Postsubmit.bat started.
if exist %VCVARSALL_SCRIPT% (
echo Running VCVARSALL script: %VCVARSALL_SCRIPT%
CALL %VCVARSALL_SCRIPT% amd64 || exit /b %errorlevel%
)
echo Creating build directory.
mkdir C:\Fruit\build-%CONFIGURATION%
cd C:\Fruit\build-%CONFIGURATION%
rem TODO: Remove the following 2 commands, they are only for debugging.
echo Looking for CMake executable:
dir %CMAKE_PATH%
echo Running CMake.
%CMAKE_PATH%\cmake.exe -G %CMAKE_GENERATOR% .. -DCMAKE_BUILD_TYPE=%CONFIGURATION% -DBOOST_DIR=%BOOST_DIR% -DBUILD_TESTS_IN_RELEASE_MODE=True || exit /b %errorlevel%
echo Building Fruit.
IF %CMAKE_GENERATOR%=="MinGW Makefiles" (
mingw32-make -j12 || exit /b %errorlevel%
) ELSE (
msbuild ALL_BUILD.vcxproj || exit /b %errorlevel%
)
echo Running tests.
%CMAKE_PATH%\ctest.exe -j 1 --output-on-failure -C %CONFIGURATION% || exit /b %errorlevel%
``` |
7204e022-0fd4-4bbf-97e3-e1dee84ffd6d | {
"language": "Batchfile"
} | ```batchfile
@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/3bf82c59679bd6539651cf5751246f34e6fd6a56
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
```
Update new version of kuduscript where the generator wont generate iisnode.yml file | ```batchfile
@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/89ed632cfb0154130af7cc555d4644ad33122ab9
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
``` |
52ed7477-df4b-471c-abd1-bd4bf44a9790 | {
"language": "Batchfile"
} | ```batchfile
"%PYTHON%" setup.py install
if errorlevel 1 exit 1
:: Add more build steps here, if they are necessary.
:: See
:: http://docs.continuum.io/conda/build.html
:: for a list of environment variables that are set during the build process.
```
Change install command in windows script | ```batchfile
"%PYTHON%" setup.py install --offline --no-git --single-version-externally-managed --record record.txt
if errorlevel 1 exit 1
:: Add more build steps here, if they are necessary.
:: See
:: http://docs.continuum.io/conda/build.html
:: for a list of environment variables that are set during the build process.
``` |
bd9d631e-90ae-4332-9846-1ad7cd54b791 | {
"language": "Batchfile"
} | ```batchfile
echo off
set BuildMode=Debug
if not {%1} == {} (
set BuildMode=%1
)
set OriginalPath=%cd%
set TestPath=%~dp0..\test
"%ProgramFiles(x86)%\MSBuild\14.0\Bin\msbuild" %TestPath%\DMLibTest\DMLibTest.csproj /t:Rebuild /p:Configuration=%BuildMode% >NUL
"%ProgramFiles(x86)%\MSBuild\14.0\Bin\msbuild" %TestPath%\DMLibTestCodeGen\DMLibTestCodeGen.csproj /t:Rebuild /p:Configuration=%BuildMode% >NUL
%TestPath%\DMLibTestCodeGen\bin\Debug\DMLibTestCodeGen.exe %TestPath%\DMLibTest\bin\Debug\DMLibTest.dll %TestPath%\DMLibTest\Generated DNetCore
cd %~dp0
dotnet restore -s https://www.nuget.org/api/v2/
cd %~dp0\Microsoft.WindowsAzure.Storage.DataMovement
dotnet build -c %BuildMode%
cd %~dp0\MsTestLib
dotnet build -c %BuildMode%
cd %~dp0\DMTestLib
dotnet build -c %BuildMode%
cd %~dp0\DMLibTest
dotnet build -c %BuildMode%
dotnet publish -c %BuildMode%
cd %OriginalPath%
```
Change build script after moving DMLib to VS2017 | ```batchfile
set BuildMode=Debug
if not {%1} == {} (
set BuildMode=%1
)
set OriginalPath=%cd%
set TestPath=%~dp0..\test
"%ProgramFiles(x86)%\MSBuild\14.0\Bin\msbuild" %TestPath%\DMLibTest\DMLibTest.csproj /t:Rebuild /p:Configuration=%BuildMode% >NUL
"%ProgramFiles(x86)%\MSBuild\14.0\Bin\msbuild" %TestPath%\DMLibTestCodeGen\DMLibTestCodeGen.csproj /t:Rebuild /p:Configuration=%BuildMode% >NUL
%TestPath%\DMLibTestCodeGen\bin\Debug\DMLibTestCodeGen.exe %TestPath%\DMLibTest\bin\Debug\DMLibTest.dll %TestPath%\DMLibTest\Generated DNetCore
dotnet restore -s https://www.nuget.org/api/v2/ %~dp0\DMLibTest
cd %~dp0\Microsoft.WindowsAzure.Storage.DataMovement
dotnet build -c %BuildMode%
cd %~dp0\MsTestLib
dotnet build -c %BuildMode%
cd %~dp0\DMTestLib
dotnet build -c %BuildMode%
cd %~dp0\DMLibTest
dotnet build -c %BuildMode%
dotnet publish -c %BuildMode%
cd %OriginalPath%
``` |
3066f4e0-08ab-49ae-b2ef-a73615702d5a | {
"language": "Batchfile"
} | ```batchfile
@echo off
pushd %1
set attempts=5
set counter=0
:retry
set /a counter+=1
echo Attempt %counter% out of %attempts%
if exist %1\node_modules\azure-cli\bin\azure (
cmd /c npm update https://github.com/amitapl/azure-sdk-tools-xplat/tarball/latest
) else (
cmd /c npm install https://github.com/amitapl/azure-sdk-tools-xplat/tarball/latest
)
IF %ERRORLEVEL% NEQ 0 goto error
if exist %1\node_modules\kudusync\bin\kudusync (
cmd /c npm update kudusync
) else (
cmd /c npm install kudusync
)
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.
```
Make sure exit code is 0 when successful. | ```batchfile
@echo off
pushd %1
set attempts=5
set counter=0
:retry
set /a counter+=1
echo Attempt %counter% out of %attempts%
if exist %1\node_modules\azure-cli\bin\azure (
cmd /c npm update https://github.com/amitapl/azure-sdk-tools-xplat/tarball/latest
) else (
cmd /c npm install https://github.com/amitapl/azure-sdk-tools-xplat/tarball/latest
)
IF %ERRORLEVEL% NEQ 0 goto error
if exist %1\node_modules\kudusync\bin\kudusync (
cmd /c npm update kudusync
) else (
cmd /c npm install kudusync
)
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
``` |
b7b34902-98fb-4006-82dc-7c3a761b06c4 | {
"language": "Batchfile"
} | ```batchfile
@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.
rem To sign the Windows installer set the `SIGN_WINDOWS_INSTALLER=true` environment variable.
IF NOT "%SIGN_WINDOWS_INSTALLER%" == "true" (GOTO DONT_SIGN)
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"
GOTO END
:DONT_SIGN
echo Set the SIGN_WINDOWS_INSTALLER=true environment variable to sign the Windows installer.
:END```
Add a singed name at the filename of the installer, after it was successfully signed. | ```batchfile
@echo off
rem To sign the Windows installer, set the `SIGN_WINDOWS_INSTALLER=true` environment variable.
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 installer at the Sign Windows Installer pipeline artifact.
IF NOT "%SIGN_WINDOWS_INSTALLER%" == "true" (GOTO DONT_SIGN)
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\" && ren *.exe *-signed.exe && buildkite-agent.exe artifact upload "*.exe"
GOTO END
:DONT_SIGN
echo Set the SIGN_WINDOWS_INSTALLER=true environment variable to sign the Windows installer.
:END``` |
f05852b1-10fe-47ae-821e-504c8293e5c8 | {
"language": "Batchfile"
} | ```batchfile
SET GOPATH=%CD%\gopath
SET PATH=C:\Go\bin;C:\Program Files\Git\cmd\;%GOPATH%\bin;%PATH%
cd %GOPATH%\src\code.cloudfoundry.org\cli
powershell -command set-executionpolicy remotesigned
go version
go get -u github.com/onsi/ginkgo/ginkgo
ginkgo version
ginkgo -r -race -randomizeAllSpecs -randomizeSuites -skipPackage integration -flakeAttempts=2 .
```
Remove -race from windows units temporarily | ```batchfile
SET GOPATH=%CD%\gopath
SET PATH=C:\Go\bin;C:\Program Files\Git\cmd\;%GOPATH%\bin;%PATH%
cd %GOPATH%\src\code.cloudfoundry.org\cli
powershell -command set-executionpolicy remotesigned
go version
go get -u github.com/onsi/ginkgo/ginkgo
ginkgo version
ginkgo -r -randomizeAllSpecs -randomizeSuites -skipPackage integration -flakeAttempts=2 .
``` |
8d7ed24f-a6f7-42a3-9e0f-059d70ec377d | {
"language": "Batchfile"
} | ```batchfile
if not exist "C:\Windows\Temp\msys2.exe" (
powershell -Command "(New-Object System.Net.WebClient).DownloadFile('http://repo.msys2.org/distrib/x86_64/msys2-x86_64-20161025.exe', 'C:\Windows\Temp\msys2.exe')" <NUL
)
start /wait C:\Windows\Temp\msys2.exe --script A:\msys2-install.qs
start /wait C:\msys64\usr\bin\bash.exe --login -c "pacman -Syu --noconfirm"
start /wait C:\msys64\usr\bin\bash.exe --login -c "pacman -Syu --noconfirm"
start /wait C:\msys64\usr\bin\bash.exe --login -c "pacman -S --noconfirm zip unzip"
```
Install the base-devel meta package on setup | ```batchfile
if not exist "C:\Windows\Temp\msys2.exe" (
powershell -Command "(New-Object System.Net.WebClient).DownloadFile('http://repo.msys2.org/distrib/x86_64/msys2-x86_64-20161025.exe', 'C:\Windows\Temp\msys2.exe')" <NUL
)
start /wait C:\Windows\Temp\msys2.exe --script A:\msys2-install.qs
start /wait C:\msys64\usr\bin\bash.exe --login -c "pacman -Syu --noconfirm"
start /wait C:\msys64\usr\bin\bash.exe --login -c "pacman -Syu --noconfirm"
start /wait C:\msys64\usr\bin\bash.exe --login -c "pacman -S --noconfirm zip unzip"
start /wait C:\msys64\usr\bin\bash.exe --login -c "pacman -S --noconfirm base-devel"
``` |
c20fbfcf-7c26-431c-a3b2-27125c3b40ee | {
"language": "Batchfile"
} | ```batchfile
REM Installing Chocolatey
@powershell -NoProfile -ExecutionPolicy unrestricted -Command "iex ((new-object net.webclient).DownloadString('https://chocolatey.org/install.ps1'))" && SET PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin
REM Installing virtualbox
choco install virtualbox -y
REM Killing the default adapter and DHCP server to avoid network issues down the road
"C:\Program Files\Oracle\VirtualBox\VBoxManage" dhcpserver remove --netname "HostInterfaceNetworking-VirtualBox Host-Only Ethernet Adapter"
"C:\Program Files\Oracle\VirtualBox\VBoxManage" hostonlyif remove "VirtualBox Host-Only Ethernet Adapter"
REM Installing vagrant
choco install vagrant -y
```
Use upgrade command with choco on Windows | ```batchfile
REM Installing Chocolatey
@powershell -NoProfile -ExecutionPolicy unrestricted -Command "iex ((new-object net.webclient).DownloadString('https://chocolatey.org/install.ps1'))" && SET PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin
REM Installing virtualbox
choco upgrade virtualbox -y
REM Killing the default adapter and DHCP server to avoid network issues down the road
"C:\Program Files\Oracle\VirtualBox\VBoxManage" dhcpserver remove --netname "HostInterfaceNetworking-VirtualBox Host-Only Ethernet Adapter"
"C:\Program Files\Oracle\VirtualBox\VBoxManage" hostonlyif remove "VirtualBox Host-Only Ethernet Adapter"
REM Installing vagrant
choco upgrade vagrant -y
``` |
73e8220b-6e11-43da-a3a5-6b44725e95b0 | {
"language": "Batchfile"
} | ```batchfile
universe = vanilla
executable = ./x_job_filexfer_testjob.pl
log = job_filexfer_output-withvacate_van.log
output = job_filexfer_output-withvacate_van.out
error = job_filexfer_output-withvacate_van.err
should_transfer_files = YES
when_to_transfer_output = ON_EXIT_OR_EVICT
transfer_output_files = submit_filetrans_output14821e.txt,submit_filetrans_output14821f.txt,submit_filetrans_output14821g.txt
Notification = NEVER
arguments = --job=14821 --long
queue
```
Remove race condition on vacate in test by using -forever option. Fix parallel test behaviour. | ```batchfile
universe = vanilla
executable = ./x_job_filexfer_testjob.pl
log = job_filexfer_output-withvacate_van.log
output = job_filexfer_output-withvacate_van.out
error = job_filexfer_output-withvacate_van.err
should_transfer_files = YES
when_to_transfer_output = ON_EXIT_OR_EVICT
transfer_output_files = submit_filetrans_output14821e.txt,submit_filetrans_output14821f.txt,submit_filetrans_output14821g.txt
Notification = NEVER
arguments = --job=14821 --forever
queue
``` |
615d335c-78b2-4265-aada-600350870252 | {
"language": "Batchfile"
} | ```batchfile
@call set_vars.bat
copy %QTPATH%\Qt5Charts.dll %ROOTPATH%\release\
copy %QTPATH%\Qt5Core.dll %ROOTPATH%\release\
copy %QTPATH%\Qt5Gui.dll %ROOTPATH%\release\
copy %QTPATH%\Qt5Network.dll %ROOTPATH%\release\
copy %QTPATH%\Qt5Widgets.dll %ROOTPATH%\release\
copy %MINGW%\bin\libgcc_s_dw2-1.dll %ROOTPATH%\release\
copy %MINGW%\bin\libstdc++-6.dll %ROOTPATH%\release\
copy %MINGW%\bin\libgcc_s_dw2-1.dll %ROOTPATH%\release\
copy %MINGW%\bin\libwinpthread-1.dll %ROOTPATH%\release\
@if not "%RUNALL%"=="1" pause
```
Fix invalid DLL paths when deploying. | ```batchfile
@call set_vars.bat
copy %QTPATH%\Qt5Charts.dll %ROOTPATH%\release\
copy %QTPATH%\Qt5Core.dll %ROOTPATH%\release\
copy %QTPATH%\Qt5Gui.dll %ROOTPATH%\release\
copy %QTPATH%\Qt5Network.dll %ROOTPATH%\release\
copy %QTPATH%\Qt5Widgets.dll %ROOTPATH%\release\
copy %QTPATH%\libgcc_s_dw2-1.dll %ROOTPATH%\release\
copy %QTPATH%\libstdc++-6.dll %ROOTPATH%\release\
copy %QTPATH%\libgcc_s_dw2-1.dll %ROOTPATH%\release\
copy %QTPATH%\libwinpthread-1.dll %ROOTPATH%\release\
@if not "%RUNALL%"=="1" pause
``` |
2b84cc29-0b7b-48eb-ae33-92367f509fdc | {
"language": "Batchfile"
} | ```batchfile
@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
```
Fix errai dashboard script reset to master | ```batchfile
@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
``` |
3463ca13-05bb-4710-92fa-5291d97bf66e | {
"language": "Batchfile"
} | ```batchfile
@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
```
Use PWD instead of WORKSPACE in windows batch script. | ```batchfile
@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
``` |
c862d685-67bc-4364-8db1-ae652cff4eb0 | {
"language": "Batchfile"
} | ```batchfile
:: 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```
Tweak the command used for the "run" argument | ```batchfile
:: 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
``` |
6c16cd26-d8a1-494f-87b2-f98e1bae1ab9 | {
"language": "Batchfile"
} | ```batchfile
@ECHO OFF
ECHO Running regression tests
START /Wait Dolphin7 DPRO.img7 -f RegressionTestsRun.st -q
IF %ERRORLEVEL% NEQ 0 (
TYPE DPRO.testlog
ECHO Tests failed=%ERRORLEVEL%
EXIT -1
)
TYPE DPRO.testlog
ECHO Finished regression tests
```
Use contents of .lestlog file to determine success or failure rather than relying on exit code from Dolphin. The move to VS2015 seems to have exacerbated a situation where the return code from SessionManager>>quit: may not make it back to the shell. For the the time being we'll change the way we detect success or failure of the tests. | ```batchfile
@ECHO OFF
ECHO Running regression tests
START /Wait Dolphin7 DPRO.img7 -f RegressionTestsRun.st -q
FINDSTR /L /C:" 0 errors" DPRO.testlog
IF %ERRORLEVEL% NEQ 0 (
TYPE DPRO.testlog
ECHO Tests failed
EXIT -1
)
ECHO Finished regression tests``` |
8d48c2d0-7cbc-4f01-a39e-ee559a0c0b61 | {
"language": "Batchfile"
} | ```batchfile
```
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. | ```batchfile
@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
``` |
dd19308d-0973-4adf-8ca4-0b2fd0c83b39 | {
"language": "Batchfile"
} | ```batchfile
@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
```
Package restore script fixes (possibly some due to PowerShell 4 compatibility issues) | ```batchfile
@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
``` |
df968023-dbea-473e-874d-2a334bd5566c | {
"language": "Batchfile"
} | ```batchfile
@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
```
Fix character corruption in Windows | ```batchfile
@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
``` |
1235208b-f860-4aa0-beb4-ed7667a8f7a9 | {
"language": "Batchfile"
} | ```batchfile
@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
```
Use %* instead of enumerated arguments when calling java | ```batchfile
@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
``` |
9cbcb02c-f141-46a2-943c-f996e53ed4ff | {
"language": "Batchfile"
} | ```batchfile
```
Change directory - useful with ConEmu and MinGW | ```batchfile
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'
}
``` |
cf89cdfc-e953-4cab-83f4-971471ccd4d7 | {
"language": "Batchfile"
} | ```batchfile
@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
```
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) | ```batchfile
@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
``` |
0d35efeb-029a-44ec-982e-cbf7e695e51a | {
"language": "Batchfile"
} | ```batchfile
```
Add template of bat script | ```batchfile
@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
``` |
57a386c9-c8b4-4d54-9dde-8a97c30ad99b | {
"language": "Batchfile"
} | ```batchfile
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```
Use robocopy to copy subdirs too | ```batchfile
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
``` |
a18c9df9-848f-4544-b878-086066030275 | {
"language": "Batchfile"
} | ```batchfile
@echo off
REM
REM Batch script to build and test on Windows. You can use this in conjunction
REM with the Vagrant machine.
REM
echo Building
go build
if %errorlevel% neq 0 exit /b %errorlevel%
echo Testing
go test ./...
if %errorlevel% neq 0 exit /b %errorlevel%
echo System Testing
go test -c -covermode=atomic -coverpkg ./...
if %errorlevel% neq 0 exit /b %errorlevel%
nosetests -w tests\system --process-timeout=30
if %errorlevel% neq 0 exit /b %errorlevel%
```
Normalize all the line endings | ```batchfile
@echo off
REM
REM Batch script to build and test on Windows. You can use this in conjunction
REM with the Vagrant machine.
REM
echo Building
go build
if %errorlevel% neq 0 exit /b %errorlevel%
echo Testing
go test ./...
if %errorlevel% neq 0 exit /b %errorlevel%
echo System Testing
go test -c -covermode=atomic -coverpkg ./...
if %errorlevel% neq 0 exit /b %errorlevel%
nosetests -w tests\system --process-timeout=30
if %errorlevel% neq 0 exit /b %errorlevel%
``` |
863a12a6-ea31-4246-812c-9b8ab5509dc2 | {
"language": "Batchfile"
} | ```batchfile
"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
```
Add complete db installation before tests | ```batchfile
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
``` |
4818ceda-b70c-461b-8443-51b4f3db5daf | {
"language": "Batchfile"
} | ```batchfile
@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
```
Enable all trace flags by default | ```batchfile
@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
``` |
bcc16e77-7886-4121-8567-0546852ed29b | {
"language": "Batchfile"
} | ```batchfile
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%
```
Add flag specifying that random/srandom are not available on windows | ```batchfile
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%
``` |
66edde43-d41e-4c30-b3bb-a67b2d13a328 | {
"language": "Batchfile"
} | ```batchfile
@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
)
```
Use C:\Users\nuxeo instead of \Users\nuxeo in msi signing batch script (not set by Jenkins) | ```batchfile
@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
)
``` |
616cc668-5117-472b-9397-01e020c61713 | {
"language": "Batchfile"
} | ```batchfile
@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
```
Delete OpenAL module from build from now on, because it's not yet used. | ```batchfile
@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
``` |
665e1872-3e99-4de6-9b05-02f5c490f5db | {
"language": "Batchfile"
} | ```batchfile
@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.
```
Make symbol extraction more verbose so progress can be observed | ```batchfile
@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.
``` |
cc7ebc37-fd6e-4b33-9b85-9df467701203 | {
"language": "Batchfile"
} | ```batchfile
mvn clean jacoco:prepare-agent verify jacoco:report -Dmaven.javadoc.failOnError=false -s dev\settings-sonarqube.xml %*
```
Add missing `sonar:sonar` for windows script | ```batchfile
mvn clean jacoco:prepare-agent verify jacoco:report sonar:sonar -Dmaven.javadoc.failOnError=false -s dev\settings-sonarqube.xml %*
``` |
2f0c1522-90f2-4c32-9103-b1dc607d4af3 | {
"language": "Batchfile"
} | ```batchfile
@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
```
Make test runner use the correct configuration | ```batchfile
@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
``` |
d0b0360a-bbef-42cf-9076-0ba267c7445a | {
"language": "Batchfile"
} | ```batchfile
@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```
Replace fwlink with direct link to contributor's guide. | ```batchfile
@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``` |
e3a6d0b7-eae8-4634-8d39-174620b33865 | {
"language": "Batchfile"
} | ```batchfile
@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
```
Add comment for %MSBuild% setting - CR follow-up | ```batchfile
@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
``` |
c5621142-e840-4f65-9481-044d5d6cc43d | {
"language": "Batchfile"
} | ```batchfile
@echo off
setlocal
for %%i in (NuGet.exe) do set nuget=%%~dpnx$PATH:i
if "%nuget%"=="" (
echo WARNING! NuGet executable not found in PATH so build may fail!
echo For more on NuGet, see https://github.com/nuget/home
)
pushd "%~dp0"
nuget restore && call :build Debug && call :build Release
popd
goto :EOF
:build
setlocal
if "%PROCESSOR_ARCHITECTURE%"=="x86" set MSBUILD=%ProgramFiles%
if defined ProgramFiles(x86) set MSBUILD=%ProgramFiles(x86)%
set MSBUILD=%MSBUILD%\MSBuild\14.0\bin\msbuild
if not exist "%MSBUILD%" (
echo Microsoft Build Tools 2015 does not appear to be installed on this
echo machine, which is required to build the solution. You can install
echo it from the URL below and then try building again:
echo https://www.microsoft.com/en-us/download/details.aspx?id=48159
exit /b 1
)
"%MSBUILD%" /p:Configuration=%1 /v:m %2 %3 %4 %5 %6 %7 %8 %9
goto :EOF
```
Build script args pass-thru fix to get clean.cmd working again | ```batchfile
@echo off
setlocal
for %%i in (NuGet.exe) do set nuget=%%~dpnx$PATH:i
if "%nuget%"=="" (
echo WARNING! NuGet executable not found in PATH so build may fail!
echo For more on NuGet, see https://github.com/nuget/home
)
pushd "%~dp0"
nuget restore && call :build Debug %* && call :build Release %*
popd
goto :EOF
:build
setlocal
if "%PROCESSOR_ARCHITECTURE%"=="x86" set MSBUILD=%ProgramFiles%
if defined ProgramFiles(x86) set MSBUILD=%ProgramFiles(x86)%
set MSBUILD=%MSBUILD%\MSBuild\14.0\bin\msbuild
if not exist "%MSBUILD%" (
echo Microsoft Build Tools 2015 does not appear to be installed on this
echo machine, which is required to build the solution. You can install
echo it from the URL below and then try building again:
echo https://www.microsoft.com/en-us/download/details.aspx?id=48159
exit /b 1
)
"%MSBUILD%" /p:Configuration=%1 /v:m %2 %3 %4 %5 %6 %7 %8 %9
goto :EOF
``` |
d5f529f7-18a1-418e-9882-1b8d05a304b7 | {
"language": "Batchfile"
} | ```batchfile
@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
```
Check for RunTest.cmd before running test on Nano. | ```batchfile
@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
``` |
c1929e55-7af0-4ce2-b6aa-82b27bfad41a | {
"language": "Batchfile"
} | ```batchfile
@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=```
Make the Wndows batch callable from any directory | ```batchfile
@perl %~dp0NaturalDocs %*``` |
a2b85fab-44bd-4948-a4fa-cc294d9ea84c | {
"language": "Batchfile"
} | ```batchfile
:: 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
```
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). | ```batchfile
:: 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
``` |
2c013ac9-4827-428b-aa10-e784229bf27a | {
"language": "Batchfile"
} | ```batchfile
:: 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```
Adjust build for windows to change how prefix is defined | ```batchfile
:: 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``` |
b23c3856-1cae-47da-be37-2a4138190ade | {
"language": "Batchfile"
} | ```batchfile
@ECHO OFF
REM Configure your favorite diff3/merge program here.
SET DIFF3="C:\Program Files\Funky Stuff\My Merge Tool.exe"
SET MINE=%9
SHIFT
SET OLDER=%9
SHIFT
SET YOURS=%9
REM Call the merge command (change the following line to make sense)
%DIFF3% --older %OLDER% --mine %MINE% --yours %YOURS%
REM After performing the merge, this script needs to print the contents
REM of the merged file to stdout. Do that in whatever way you see fit.
```
Add a helpful comment for folks unfamiliar with the SHIFT construct. | ```batchfile
@ECHO OFF
REM Configure your favorite diff3/merge program here.
SET DIFF3="C:\Program Files\Funky Stuff\My Merge Tool.exe"
REM We only have access to nine parameters at a time. We use SHIFT to slide
REM our nine-parameter window a little bit so we can get to what we need.
SET MINE=%9
SHIFT
SET OLDER=%9
SHIFT
SET YOURS=%9
REM Call the merge command (change the following line to make sense)
%DIFF3% --older %OLDER% --mine %MINE% --yours %YOURS%
REM After performing the merge, this script needs to print the contents
REM of the merged file to stdout. Do that in whatever way you see fit.
``` |
dc86996e-11ac-4f40-b6b4-b3bc3c1d46ae | {
"language": "Batchfile"
} | ```batchfile
@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%
```
Fix for spaces in path of repository | ```batchfile
@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%
``` |
a7986dac-5ff2-4897-9849-91eb7b3bfff1 | {
"language": "Batchfile"
} | ```batchfile
rem Licensed to the Apache Software Foundation (ASF) under one or more
rem contributor license agreements. See the NOTICE file distributed with
rem this work for additional information regarding copyright ownership.
rem The ASF licenses this file to You under the Apache License, Version 2.0
rem (the "License"); you may not use this file except in compliance with
rem the License. You may obtain a copy of the License at
rem
rem http://www.apache.org/licenses/LICENSE-2.0
rem
rem Unless required by applicable law or agreed to in writing, 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 Fixup ENV issues with SSH
set APPDATA=C:\Users\build\AppData\Roaming
set LOCALAPPDATA=C:\Users\build\AppData\Local
set TEMP=C:\Users\build\AppData\Local\Temp\3
set TMP=C:\Users\build\AppData\Local\Temp\3
if not exist %TEMP% mkdir %TEMP%
@rem Setup VC
call "C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\vcvarsall.bat" %*
```
Update Windows build to use Visual Studio 2015 / VC14. | ```batchfile
rem Licensed to the Apache Software Foundation (ASF) under one or more
rem contributor license agreements. See the NOTICE file distributed with
rem this work for additional information regarding copyright ownership.
rem The ASF licenses this file to You under the Apache License, Version 2.0
rem (the "License"); you may not use this file except in compliance with
rem the License. You may obtain a copy of the License at
rem
rem http://www.apache.org/licenses/LICENSE-2.0
rem
rem Unless required by applicable law or agreed to in writing, 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 Fixup ENV issues with SSH
set APPDATA=C:\Users\build\AppData\Roaming
set LOCALAPPDATA=C:\Users\build\AppData\Local
set TEMP=C:\Users\build\AppData\Local\Temp\3
set TMP=C:\Users\build\AppData\Local\Temp\3
if not exist %TEMP% mkdir %TEMP%
@rem Setup VC
call "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" %*
``` |
6960c0b0-78c6-482c-9e82-021e68676be9 | {
"language": "Batchfile"
} | ```batchfile
```
Add wrapper batch file for Jenkins to build | ```batchfile
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
``` |
b3b89b1a-af6e-4b9b-881e-b1cd14f027d8 | {
"language": "Batchfile"
} | ```batchfile
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
```
Create archives in windows build script | ```batchfile
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
``` |
6440db95-dae3-488e-8ca7-fad54a68a146 | {
"language": "Batchfile"
} | ```batchfile
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 .
```
Call pdflatex in non stop mode | ```batchfile
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 .
``` |
049dd1dc-03a1-4c71-8584-d25fea05d4c8 | {
"language": "Batchfile"
} | ```batchfile
"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
```
Add variable for password to call | ```batchfile
"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
``` |
29c097bc-3b6b-4752-be62-b274121340ef | {
"language": "Batchfile"
} | ```batchfile
"C:\Program Files (x86)\Java\jre7\bin\java.exe" -jar compiler.jar ^
--js=translate.js ^
--js=jquery/jquery-1.11.2.js ^
--js=jquery/jquery-ui.1.11.2.min.js ^
--js=jquery/jquery.qtip.js ^
--js=jquery/jquery.blockUI.js ^
--js=jquery/jquery.color.js ^
--js=jquery/jquery.autocomplete.js ^
--js=jquery/jquery.tablesorter.js ^
--js=jquery/jquery.flot.js ^
--js=jquery/jquery.ui.position.js ^
--js=jquery/jquery.contextMenu.js ^
--js=jquery/jquery.hotkeys.js ^
--js=jquery/jsBezier-0.6-min.js ^
--js=jquery/jquery.jsPlumb-1.7.5.js ^
--js=jquery/jquery.placeholder.js ^
--js=handlebars-v2.0.0.js ^
--js=dropdown.js ^
--source_map_format=V3 ^
--create_source_map thirdparty.compiled.js.map ^
--js_output_file=thirdparty.compiled.js
echo //# sourceMappingURL=thirdparty.compiled.js.map >> thirdparty.compiled.js
@pause```
Remove another jsBeizer reference as we weren't using it | ```batchfile
"C:\Program Files (x86)\Java\jre7\bin\java.exe" -jar compiler.jar ^
--js=translate.js ^
--js=jquery/jquery-1.11.2.js ^
--js=jquery/jquery-ui.1.11.2.min.js ^
--js=jquery/jquery.qtip.js ^
--js=jquery/jquery.blockUI.js ^
--js=jquery/jquery.color.js ^
--js=jquery/jquery.autocomplete.js ^
--js=jquery/jquery.tablesorter.js ^
--js=jquery/jquery.flot.js ^
--js=jquery/jquery.ui.position.js ^
--js=jquery/jquery.contextMenu.js ^
--js=jquery/jquery.hotkeys.js ^
--js=jquery/jquery.jsPlumb-1.7.5.js ^
--js=jquery/jquery.placeholder.js ^
--js=handlebars-v2.0.0.js ^
--js=dropdown.js ^
--source_map_format=V3 ^
--create_source_map thirdparty.compiled.js.map ^
--js_output_file=thirdparty.compiled.js
echo //# sourceMappingURL=thirdparty.compiled.js.map >> thirdparty.compiled.js
@pause``` |
d1a7cd8e-2e4b-402b-a054-9eec19ee29fa | {
"language": "Batchfile"
} | ```batchfile
```
Revert "Removed the Batch script in favior of the powershell script." | ```batchfile
@echo off
pushd .
ECHO ********** Build projects in release mode
"C:\Program Files (x86)\MSBuild\14.0\Bin\msbuild.exe" Avalara.AvaTax.Net20.sln /t:Build /p:Configuration="Release"
"C:\Program Files (x86)\MSBuild\14.0\Bin\msbuild.exe" Avalara.AvaTax.Net45.sln /t:Build /p:Configuration="Release"
"C:\Program Files (x86)\MSBuild\14.0\Bin\msbuild.exe" Avalara.AvaTax.Portable.sln /t:Build /p:Configuration="Release"
ECHO ********** Packaging NUGET
cd src
..\..\..\nuget.exe pack Avalara.AvaTax.nuspec
popd
pause``` |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.