Instruction stringlengths 14 778 | input_code stringlengths 0 4.24k | output_code stringlengths 1 5.44k |
|---|---|---|
Fix helper script (update path) | @echo off
setlocal enableextensions
mkdir ReformatUtils 2> NUL
copy /y ..\src\resharper-reformatutils\bin\Release\* ReformatUtils
| @echo off
setlocal enableextensions
mkdir ReformatUtils 2> NUL
copy /y ..\src\ReformatUtils\bin\Release\* ReformatUtils
|
Optimize build output on windows. | CALL .\.venv\Scripts\activate
pip install -r .\requirements.txt
pyinstaller .\rocketleagueminimapgenerator\main.py --onefile
MOVE /Y .\dist\main.exe .\dist\rocketleagueminimapgenerator.exe
COPY /Y .\README.md .\dist\README.txt
DEL /S /Q .\dist\assets
COPY /Y .\assets .\dist\assets
powershell Compress-Archive -Force -Path .\dist\rocketleagueminimapgenerator.exe, .\dist\README.txt, .\dist\assets -DestinationPath .\dist\rocketleagueminimapgenerator.zip
pause
| CALL .\.venv\Scripts\activate
pip install -r .\requirements.txt
set PYTHONOPTIMIZE=1 && pyinstaller .\rocketleagueminimapgenerator\main.py --onefile
MOVE /Y .\dist\main.exe .\dist\rocketleagueminimapgenerator.exe
COPY /Y .\README.md .\dist\README.txt
DEL /S /Q .\dist\assets
COPY /Y .\assets .\dist\assets
powershell Compress-Archive -Force -Path .\dist\rocketleagueminimapgenerator.exe, .\dist\README.txt, .\dist\assets -DestinationPath .\dist\rocketleagueminimapgenerator.zip
pause
|
Make a Microsoft import library for the x64 csound64.dll. | @echo CREATING MICROSOFT IMPORT LIBRARY FOR CSOUND64.DLL FOR X64
dumpbin /exports csound-mingw64/csound64.dll > exports.txt
@echo LIBRARY CSOUND64 >> csound64.def
@echo EXPORTS >> csound64.def
FOR /F "skip=19 tokens=4" %%l in (exports.txt) do @echo %%l >> csound64.def
lib /def:csound64.def /out:csound64.lib /machine:x64
| |
Disable examples and static libs | :: Fix for https://github.com/jkriege2/JKQtPlotter/issues/35
set "CXXFLAGS= -MD"
mkdir build
cd build
cmake -DCMAKE_INSTALL_PREFIX=%LIBRARY_PREFIX% -DCMAKE_PREFIX_PATH=%LIBRARY_PREFIX% ..
if errorlevel 1 exit 1
cmake --build . --config Release --target install
if errorlevel 1 exit 1
| :: Fix for https://github.com/jkriege2/JKQtPlotter/issues/35
set "CXXFLAGS= -MD"
mkdir build
cd build
cmake -DCMAKE_INSTALL_PREFIX=%LIBRARY_PREFIX% -DCMAKE_PREFIX_PATH=%LIBRARY_PREFIX% -DJKQtPlotter_BUILD_EXAMPLES=OFF -DJKQtPlotter_BUILD_STATIC_LIBS=OFF ..
if errorlevel 1 exit 1
cmake --build . --config Release --target install
if errorlevel 1 exit 1
|
Increase waiting time before screenshot taking. |
start fgautopilot-0.0.3/fgautopilot.exe
curl -fsS -o nircmd.zip http://www.nirsoft.net/utils/nircmd.zip
7z x nircmd.zip
dir
nircmd.exe cmdwait 20000 savescreenshot "shot.png"
dir
taskkill /f /im "fgautopilot.exe"
|
start fgautopilot-0.0.3/fgautopilot.exe
curl -fsS -o nircmd.zip http://www.nirsoft.net/utils/nircmd.zip
7z x nircmd.zip
dir
nircmd.exe cmdwait 60000 savescreenshot "shot.png"
dir
taskkill /f /im "fgautopilot.exe"
|
Add correct PATH for cygwin32 batch script. | @ECHO OFF
REM Test default configuration against full suite 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. (thomasvandoren, 2014-07-14)
c:\cygwin\bin\bash -exc "export PATH='FIXME' ; export CHPL_HOME=$PWD ; export CHPL_MAILER=email ; source $CHPL_HOME/util/cron/common.bash && export CHPL_NIGHTLY_TEST_CONFIG_NAME="cygwin32" && $CHPL_HOME/util/cron/nightly -cron -no-futures"
GOTO End
:ErrExit
ECHO "ERROR: WORKSPACE must be set in the environment"
EXIT 1
GOTO End
:End
| @ECHO OFF
REM Test default configuration against full suite 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. (thomasvandoren, 2014-07-14)
c:\cygwin\bin\bash -exc "export PATH='/usr/local/bin:/usr/bin:/cygdrive/c/ProgramData/Oracle/Java/javapath:/cygdrive/c/Windows/system32:/cygdrive/c/Windows:/cygdrive/c/Windows/System32/Wbem:/cygdrive/c/Windows/System32/WindowsPowerShell/v1.0:/cygdrive/c/Program Files/SysinternalsSuite:/cygdrive/c/Program Files/emacs-24.4/bin' ; export CHPL_HOME=$PWD ; export CHPL_MAILER=email ; source $CHPL_HOME/util/cron/common.bash && export CHPL_NIGHTLY_TEST_CONFIG_NAME="cygwin32" && $CHPL_HOME/util/cron/nightly -cron -no-futures"
GOTO End
:ErrExit
ECHO "ERROR: WORKSPACE must be set in the environment"
EXIT 1
GOTO End
:End
|
Update Windows scripts for unicode support | @echo off
if "%PATH_BASE%" == "" set PATH_BASE=%PATH%
set PATH=%CD%;%PATH_BASE%;
java -jar -Duser.language=en "%~dp0\apktool.jar" %*
| @echo off
if "%PATH_BASE%" == "" set PATH_BASE=%PATH%
set PATH=%CD%;%PATH_BASE%;
chcp 65001 2>nul >nul
java -jar -Duser.language=en -Dfile.encoding=UTF8 "%~dp0\apktool.jar" %*
|
Revert "the integration package is not in the cli resource" | 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 get github.com/onsi/ginkgo/ginkgo
ginkgo -r -randomizeAllSpecs -randomizeSuites .
| 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 get github.com/onsi/ginkgo/ginkgo
ginkgo -r -randomizeAllSpecs -randomizeSuites -skipPackage integration .
|
Use vcbuild for VS 2009. | @rem Used by the buildbot "buildmsi" step.
cmd /c Tools\buildbot\external.bat
@rem build release versions of things
call "%VS90COMNTOOLS%vsvars32.bat"
if not exist ..\db-4.4.20\build_win32\release\libdb44s.lib (
devenv ..\db-4.4.20\build_win32\Berkeley_DB.sln /build Release /project db_static
)
@rem build Python
cmd /q/c Tools\buildbot\kill_python.bat
devenv.com /useenv /build Release PCbuild\pcbuild.sln
@rem build the documentation
bash.exe -c 'cd Doc;make PYTHON=python2.5 update htmlhelp'
"%ProgramFiles%\HTML Help Workshop\hhc.exe" Doc\build\htmlhelp\pydoc.hhp
@rem buold the MSI file
cd PC
nmake /f icons.mak
cd ..\Tools\msi
del *.msi
nmake /f msisupport.mak
%HOST_PYTHON% msi.py
| @rem Used by the buildbot "buildmsi" step.
cmd /c Tools\buildbot\external.bat
@rem build release versions of things
call "%VS90COMNTOOLS%vsvars32.bat"
if not exist ..\db-4.4.20\build_win32\release\libdb44s.lib (
vcbuild db-4.4.20\build_win32\Berkeley_DB.sln /build Release /project db_static
)
@rem build Python
cmd /q/c Tools\buildbot\kill_python.bat
vcbuild /useenv PCbuild\pcbuild.sln "Release|Win32"
@rem build the documentation
bash.exe -c 'cd Doc;make PYTHON=python2.5 update htmlhelp'
"%ProgramFiles%\HTML Help Workshop\hhc.exe" Doc\build\htmlhelp\pydoc.hhp
@rem buold the MSI file
cd PC
nmake /f icons.mak
cd ..\Tools\msi
del *.msi
nmake /f msisupport.mak
%HOST_PYTHON% msi.py
|
Remove code that deletes build directory every time in conda recipe. Incremental builds are supported now. | cd %RECIPE_DIR%
cd ..
:: Remove the build directory since incremental builds aren't currently supported.
rd /s /q build
python setup.py install || exit 1
rd /s /q %SP_DIR%\__pycache__
rd /s /q %SP_DIR%\numpy
rd /s /q %SP_DIR%\Cython
| cd %RECIPE_DIR%
cd ..
python setup.py install || exit 1
rd /s /q %SP_DIR%\__pycache__
rd /s /q %SP_DIR%\numpy
rd /s /q %SP_DIR%\Cython
|
Enable to set external SDK path | ::set PSDK_INC_PATH=C:\PROGRA~1\MI2578~1\Windows\v6.0A\Include
::set PSDK_LIB_PATH=C:\PROGRA~1\MI2578~1\Windows\v6.0A\Lib
@echo off
set __sdk_path__="C:\Program Files\Microsoft SDKs\Windows\v6.0A"
call :setshortpath PSDK_INC_PATH %__sdk_path__%\Include
call :setshortpath PSDK_LIB_PATH %__sdk_path__%\Lib
goto :eof
:setshortpath
set %1=%~s2
goto :eof
| @echo off
call :set_sdk_path
call :setshortpath PSDK_INC_PATH %__sdk_path__%\Include
call :setshortpath PSDK_LIB_PATH %__sdk_path__%\Lib
call :clean_sdk_path
goto :eof
:setshortpath
set %1=%~s2
goto :eof
:set_sdk_path
set __sdk_path__="C:\Program Files\Microsoft SDKs\Windows\v6.0A"
if NOT "%SDK_PATH%"=="" set __sdk_path__="%SDK_PATH%"
goto :eof
:clean_sdk_path
set __sdk_path__=
goto :eof
|
Replace "setup.py test" to "-m pip install -vv ." | "%PYTHON%" setup.py install
"%PYTHON%" setup.py test
if errorlevel 1 exit 1
| "%PYTHON%" setup.py install
"%PYTHON%" -m pip install -vv .
if errorlevel 1 exit 1
|
Revert "switching to 7z as well, sourceforge still broke" | SET GOPATH=%CD%\gopath
SET GATSPATH=%GOPATH%\src\github.com\cloudfoundry\cli-acceptance-tests
SET PATH=C:\Go\bin;%PATH%
SET PATH=C:\Program Files\Git\cmd\;%PATH%
SET PATH=%GOPATH%\bin;%PATH%
SET PATH=C:\Program Files\7-Zip;%PATH%
SET PATH=C:\Program Files\cURL\bin;%PATH%
SET PATH=%CD%;%PATH%
SET /p DOMAIN=<%CD%\bosh-lite-lock\name
call %CD%\cli-ci\ci\tasks\create-cats-config.bat
SET CONFIG=%CD%\config.json
pushd %CD%\cf-cli-binaries
7z x cf-cli-binaries.tgz
7z x cf-cli-binaries.tar
MOVE %CD%\cf-cli_winx64.exe ..\cf.exe
popd
go get -v github.com/onsi/ginkgo/ginkgo
cd %GATSPATH%
ginkgo.exe -r -nodes=4 -slowSpecThreshold=120 -randomizeSuites -skipPackage application ./gats
ginkgo.exe -r -nodes=4 -slowSpecThreshold=120 -randomizeSuites ./gats/application
| SET GOPATH=%CD%\gopath
SET GATSPATH=%GOPATH%\src\github.com\cloudfoundry\cli-acceptance-tests
SET PATH=C:\Go\bin;%PATH%
SET PATH=C:\Program Files\Git\cmd\;%PATH%
SET PATH=%GOPATH%\bin;%PATH%
SET PATH=C:\Program Files\GnuWin32\bin;%PATH%
SET PATH=C:\Program Files\cURL\bin;%PATH%
SET PATH=%CD%;%PATH%
SET /p DOMAIN=<%CD%\bosh-lite-lock\name
call %CD%\cli-ci\ci\tasks\create-cats-config.bat
SET CONFIG=%CD%\config.json
pushd %CD%\cf-cli-binaries
gzip -d cf-cli-binaries.tgz
tar -xvf cf-cli-binaries.tar
MOVE %CD%\cf-cli_winx64.exe ..\cf.exe
popd
go get -v github.com/onsi/ginkgo/ginkgo
cd %GATSPATH%
ginkgo.exe -r -nodes=4 -slowSpecThreshold=120 -randomizeSuites -skipPackage application ./gats
ginkgo.exe -r -nodes=4 -slowSpecThreshold=120 -randomizeSuites ./gats/application
|
Remove extra space in project gen script | @echo off
if not exist build-x64 mkdir build-x64
cd build-x64
REM Update your dependency directories below as necessary
cmake -G"Visual Studio 12" -A x64 -DOpenCV_DIR="C:\libs\opencv-2.4.10\build-x64" -DSFML_ROOT="C:\libs\SFML-2.3.2-64" -DPROTOBUF_SRC_ROOT_FOLDER="C:\libs\protobuf-2.6.1" .. && goto :copy_files
REM only if cmake failed...
GOTO end
:copy_files
xcopy ..\samples-aux\vs2013\copy_to_bin64_dir\*.* .\bin\Debug\ /E /Y
xcopy ..\samples-aux\vs2013\copy_to_bin64_dir\*.* .\bin\Release\ /E /Y
xcopy ..\samples-aux\vs2013\copy_to_bin64_dir\*.* .\bin\RelWithDebInfo\ /E /Y
echo Done!
:end
cd .. | @echo off
if not exist build-x64 mkdir build-x64
cd build-x64
REM Update your dependency directories below as necessary
cmake -G"Visual Studio 12" -Ax64 -DOpenCV_DIR="C:\libs\opencv-2.4.10\build-x64" -DSFML_ROOT="C:\libs\SFML-2.3.2-64" -DPROTOBUF_SRC_ROOT_FOLDER="C:\libs\protobuf-2.6.1" .. && goto :copy_files
REM only if cmake failed...
GOTO end
:copy_files
xcopy ..\samples-aux\vs2013\copy_to_bin64_dir\*.* .\bin\Debug\ /E /Y
xcopy ..\samples-aux\vs2013\copy_to_bin64_dir\*.* .\bin\Release\ /E /Y
xcopy ..\samples-aux\vs2013\copy_to_bin64_dir\*.* .\bin\RelWithDebInfo\ /E /Y
echo Done!
:end
cd .. |
Remove empty external dirs if present | git init
touch README.md
git add README.md
git add .gitignore
git commit -m"initial commit"
cd external
git submodule add --depth 1 -- https://github.com/fmtlib/fmt.git
git submodule add --depth 1 -- https://github.com/gabime/spdlog.git
git submodule add --depth 1 -- https://github.com/onqtam/doctest.git
cd ..
| git init
touch README.md
git add README.md
git add .gitignore
git commit -m"initial commit"
cd external
rmdir fmt
git submodule add --depth 1 -- https://github.com/fmtlib/fmt.git
rmdir spdlog
git submodule add --depth 1 -- https://github.com/gabime/spdlog.git
rmdir doctest
git submodule add --depth 1 -- https://github.com/onqtam/doctest.git
cd ..
|
Fix a build package for Windows fails on AppVeyor CI | @echo off
set BIN_NAME=sqlitebiter
pip install --upgrade pip
pip install --upgrade .[build]
echo "----- start build -----"
pyinstaller cli.py --onefile --name %BIN_NAME% --clean --noconfirm --specpath build
echo "----- complete build -----"
echo "----- start compress -----"
set DIST_DIR_NAME=dist
set BIN_PATH=%DIST_DIR_NAME%/%BIN_NAME%.exe
set ARCHIVE_PATH=%DIST_DIR_NAME%/%BIN_NAME%_win_x64.zip
echo %ARCHIVE_PATH%
powershell compress-archive -Force %BIN_PATH% %ARCHIVE_PATH%
echo "----- complete compress -----"
| @echo off
set BIN_NAME=sqlitebiter
echo "----- start build -----"
pyinstaller cli.py --onefile --name %BIN_NAME% --clean --noconfirm --specpath build
echo "----- complete build -----"
echo "----- start compress -----"
set DIST_DIR_NAME=dist
set BIN_PATH=%DIST_DIR_NAME%/%BIN_NAME%.exe
set ARCHIVE_PATH=%DIST_DIR_NAME%/%BIN_NAME%_win_x64.zip
echo %ARCHIVE_PATH%
powershell compress-archive -Force %BIN_PATH% %ARCHIVE_PATH%
echo "----- complete compress -----"
|
Package restore script fixes (possibly some due to PowerShell 4 compatibility issues) | @echo off
setlocal
for %%i in (NuGet.exe) do set nuget_path=%%~dpnx$PATH:i
if "%nuget_path%"=="" goto :nonuget
set packages_path=%~dp0packages
if exist "%packages_path%\repositories.config" (
for /f "usebackq delims=" %%p in (`PowerShell -C "Get-Content '%packages_path%\repositories.config' | Select-Xml //repository/@path | %%{$_.Node.Value}"`) do if errorlevel==0 call :restore "%packages_path%\%%p"
) else (
for /r %%d in (.) do if errorlevel==0 if exist %%d\packages.config call :restore "%%d"
)
goto :EOF
:restore
setlocal
echo Restoring packages for "%~1"
cd "%~1"
"%nuget_path%" install -OutputDirectory "%packages_path%" ^
-Source https://nuget.org/api/v2/ ^
-Source P:\Development\NuGet
goto :EOF
:nonuget
echo NuGet executable not found in PATH
echo For more on NuGet, see http://nuget.codeplex.com
exit /b 2
| @echo off
setlocal
for %%i in (NuGet.exe) do set nuget_path=%%~dpnx$PATH:i
if "%nuget_path%"=="" goto :nonuget
set packages_path=%~dp0packages
if exist "%packages_path%\repositories.config" (
for /f "usebackq delims=" %%p in (`PowerShell -C "[xml](Get-Content '%packages_path%\repositories.config') | Select-Xml //repository/@path | %%{$_.Node.Value}"`) do if errorlevel==0 call :restore "%packages_path%\%%p"
) else (
for /r %%d in (.) do if errorlevel==0 if exist %%d\packages.config call :restore "%%d"
)
goto :EOF
:restore
setlocal
echo Restoring packages for "%~1"
cd "%~dp1"
"%nuget_path%" install -OutputDirectory "%packages_path%"
goto :EOF
:nonuget
echo NuGet executable not found in PATH
echo For more on NuGet, see http://nuget.codeplex.com
exit /b 2
|
Add log message for when the script is done. | @echo off
pushd %cd%
%~d0
cd %~dp0
echo Temporarily changing directory to %~dp0
if exist %USERPROFILE%\_vimrc goto GVIMRC
echo Installing _vimrc
echo set rtp+=%CD%\vim> %USERPROFILE%\_vimrc
echo source %CD%\vim\vimrc >> %USERPROFILE%\_vimrc
:GVIMRC
if exist %USERPROFILE%\_gvimrc goto END
echo Installing _gvimrc
echo source %CD%\vim\gvimrc > %USERPROFILE%\_gvimrc
:END
popd
| @echo off
pushd %cd%
%~d0
cd %~dp0
echo Temporarily changing directory to %~dp0
if exist %USERPROFILE%\_vimrc goto GVIMRC
echo Installing _vimrc
echo set rtp+=%CD%\vim> %USERPROFILE%\_vimrc
echo source %CD%\vim\vimrc >> %USERPROFILE%\_vimrc
:GVIMRC
if exist %USERPROFILE%\_gvimrc goto END
echo Installing _gvimrc
echo source %CD%\vim\gvimrc > %USERPROFILE%\_gvimrc
:END
echo Done!
popd
|
Add error check to build script | rem CMake/MinGW workaround - remove sh.exe from PATH
where sh
set MINGW=C:\Qt\Tools\mingw530_32
set QTDIR=C:\Qt\5.7\mingw53_32
set PATH=%PATH:C:\Program Files\Git\usr\bin;=%
set CMAKE_PREFIX_PATH=%QTDIR%
set PATH=%MINGW%\bin;%PATH%;%QTDIR%\bin
:: Qt needs to find the windows platform plugin to run tests
set QT_QPA_PLATFORM_PLUGIN_PATH=%QTDIR%\plugins
mkdir build
cd build
cmake -G "MinGW Makefiles" -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=../INSTALL ..
cmake --build . --target install
ctest -VV
| rem CMake/MinGW workaround - remove sh.exe from PATH
where sh
set MINGW=C:\Qt\Tools\mingw530_32
set QTDIR=C:\Qt\5.7\mingw53_32
set PATH=%PATH:C:\Program Files\Git\usr\bin;=%
set CMAKE_PREFIX_PATH=%QTDIR%
set PATH=%MINGW%\bin;%PATH%;%QTDIR%\bin
:: Qt needs to find the windows platform plugin to run tests
set QT_QPA_PLATFORM_PLUGIN_PATH=%QTDIR%\plugins
mkdir build
cd build
cmake -G "MinGW Makefiles" -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=../INSTALL .. || goto :error
cmake --build . --target install || goto :error
ctest -VV || goto :error
goto :EOF
:error
echo Failed with error #%errorlevel%.
exit /b %errorlevel%
|
Add "mock" to the installed packages | @ECHO OFF
IF NOT EXIST virtualenv GOTO DIRNOTEXISTS
:DIREXISTS
call virtualenv\scripts\activate
pip install --use-mirrors argparse coverage doxypy lockfile pyserial unittest-xml-reporting
GOTO DONE
:DIRNOTEXISTS
python virtualenv.py virtualenv
GOTO DIREXISTS
:DONE
| @ECHO OFF
IF NOT EXIST virtualenv GOTO DIRNOTEXISTS
:DIREXISTS
call virtualenv\scripts\activate
pip install --use-mirrors argparse coverage doxypy lockfile mock pyserial unittest-xml-reporting
GOTO DONE
:DIRNOTEXISTS
python virtualenv.py virtualenv
GOTO DIREXISTS
:DONE
|
Add a small script for debugging on windows | @echo off
if "%OS%" == "Windows_NT" setlocal
if NOT DEFINED JAVA_HOME goto :err
REM Ensure that any user defined CLASSPATH variables are not used on startup
set CLASSPATH=
REM For each jar in the lib directory call append to build the CLASSPATH variable.
for %%i in ("..\output\jardist\*.jar") do call :append "%%i"
goto okClasspath
:append
set CLASSPATH=%CLASSPATH%;%1
goto :eof
:okClasspath
REM Include the \classes directory so it works in development
set PLAYORM_CLASSPATH="..\bin";%CLASSPATH%;
SET A_PORT=8000
SET A_DBG=-Xdebug -Xrunjdwp:transport=dt_socket,address=127.0.0.1:8000,suspend=y
goto runCli
:runCli
"%JAVA_HOME%\bin\java" %A_DBG% -cp %PLAYORM_CLASSPATH% com.alvazan.ssql.cmdline.PlayOrm %*
goto finally
:err
echo The JAVA_HOME environment variable must be set to run this program!
pause
:finally
ENDLOCAL
| |
Correct environment variable in build script | xcopy ..\icons\favicon.ico ..\Web /Y
mkdir ..\Web\Examples
xcopy ..\documentation\images\series ..\Web\Examples /Y
..\Tools\Lynx\FtpUpload.exe %OXYPLOT_FTP_SERVER% %OXYPLOT_FTP_USER% %OXYPLOT_FTP_PASSWORD% ..\Web\*.* %OXYPLOT_FTP_FOLDER% /t=1 | xcopy ..\icons\favicon.ico ..\Web /Y
mkdir ..\Web\Examples
xcopy ..\documentation\images\series ..\Web\Examples /Y
..\Tools\Lynx\FtpUpload.exe ftp.oxyplot.org %OXYPLOT_FTP_USER% %OXYPLOT_FTP_PWD% ..\Web\*.* %OXYPLOT_FTP_FOLDER% /t=1 |
Update Windows build to deal with newline issue | mkdir build
cd build
:: Configure.
cmake -G "NMake Makefiles" -D CMAKE_INSTALL_PREFIX=%LIBRARY_PREFIX% \
.
if errorlevel 1 exit 1
:: Build.
nmake
if errorlevel 1 exit 1
:: Install.
nmake install
if errorlevel 1 exit 1
| mkdir build
cd build
:: Configure.
cmake -G "NMake Makefiles" -D CMAKE_INSTALL_PREFIX=%PREFIX% .
if errorlevel 1 exit 1
:: Build.
nmake
if errorlevel 1 exit 1
:: Install.
nmake install
if errorlevel 1 exit 1
|
Remove unbuilt tests on Windows CE. | set QT=%1
set CETEST=%QT%\bin\cetest.exe
set CETEST_ARGS=-cache %QT%\.qmake.cache -libpath \Windows -f
%CETEST% %CETEST_ARGS% tests\auto\qvaluespace\qvaluespace.pro
%CETEST% %CETEST_ARGS% tests\auto\qvaluespaceprovider\qvaluespaceprovider.pro
%CETEST% %CETEST_ARGS% tests\auto\qvaluespacesubscriber\tst_qvaluespacesubscriber\tst_qvaluespacesubscriber.pro
%CETEST% %CETEST_ARGS% tests\auto\qvaluespacesubscriber\tst_qvaluespacesubscriber_oop\tst_qvaluespacesubscriber_oop.pro
%CETEST% %CETEST_ARGS% tests\auto\qsystemreadwritelock\qsystemreadwritelock\test\test.pro
%CETEST% %CETEST_ARGS% tests\auto\qsystemreadwritelock_oop\qsystemreadwritelock_oop\test\test.pro
%CETEST% %CETEST_ARGS% tests\auto\qcrmlparser\qcrmlparser.pro
| set QT=%1
set CETEST=%QT%\bin\cetest.exe
set CETEST_ARGS=-cache %QT%\.qmake.cache -libpath \Windows -f
%CETEST% %CETEST_ARGS% tests\auto\qvaluespace\qvaluespace.pro
%CETEST% %CETEST_ARGS% tests\auto\qvaluespaceprovider\qvaluespaceprovider.pro
%CETEST% %CETEST_ARGS% tests\auto\qvaluespacesubscriber\tst_qvaluespacesubscriber\tst_qvaluespacesubscriber.pro
%CETEST% %CETEST_ARGS% tests\auto\qvaluespacesubscriber\tst_qvaluespacesubscriber_oop\tst_qvaluespacesubscriber_oop.pro
|
Revert script pollution that was accidentally pushed | call "%VS%\VC\vcvarsall.bat" x86
@echo on
cov-build --dir cov_dir msbuild.exe /m:1 /p:Configuration="%CONFIGURATION%" /p:Platform="%PLATFORM%" /t:"%TARGET%" %EXTRA% %FILE%
if errorlevel 1 goto error
cov-analyze --dir cov_dir -j auto --aggressiveness-level high --security --concurrency --preview --all --rule --enable-fnptr --strip-path c:\git\xenbus
cov-commit-defects --dir cov_dir --host dagu-4.uk.xensource.com --port 8080 --user windows --password coverity --stream %PLATFORM%
exit 0
:error
exit 1
| call "%VS%\VC\vcvarsall.bat" x86
@echo on
msbuild.exe /m:1 /p:Configuration="%CONFIGURATION%" /p:Platform="%PLATFORM%" /t:"%TARGET%" %EXTRA% %FILE%
if errorlevel 1 goto error
exit 0
:error
exit 1
|
Stop doing "Test" builds for now | @echo off
rem =======================================================
rem Settings
rem =======================================================
set Platform=Win64
set BuildMode=Test
set SessioName=Release
set SessionOwner=AutoBuild
rem =======================================================
rem Release variables
rem =======================================================
set VersionName=%1
set InputProject=%2
set OutputDir=%3
set UAT=%4
rem =======================================================
rem Run UAT
rem =======================================================
%UAT% -ScriptsForProject=%InputProject% BuildCookRun -project=%InputProject% -noP4 -clientconfig=%BuildMode% -serverconfig=%BuildMode% -ue4exe=UE4Editor-Cmd.exe -utf8output -platform=%Platform% -targetplatform=%Platform% -build -cook -allmaps -unversionedcookedcontent -pak -prereqs -createreleaseversion=%VersionName% -distribution -nodebuginfo -compressed -stage -package -stagingdirectory=%OutputDir% -cmdline=" -Messaging" -addcmdline="-SessionOwner='%SessionOwner%' -SessionName='%SessioName%'"
| @echo off
rem =======================================================
rem Settings
rem =======================================================
set Platform=Win64
set BuildMode=Development
set SessioName=Release
set SessionOwner=AutoBuild
rem =======================================================
rem Release variables
rem =======================================================
set VersionName=%1
set InputProject=%2
set OutputDir=%3
set UAT=%4
rem =======================================================
rem Run UAT
rem =======================================================
%UAT% -ScriptsForProject=%InputProject% BuildCookRun -project=%InputProject% -noP4 -clientconfig=%BuildMode% -serverconfig=%BuildMode% -ue4exe=UE4Editor-Cmd.exe -utf8output -platform=%Platform% -targetplatform=%Platform% -build -cook -allmaps -unversionedcookedcontent -pak -prereqs -createreleaseversion=%VersionName% -distribution -nodebuginfo -compressed -stage -package -stagingdirectory=%OutputDir% -cmdline=" -Messaging" -addcmdline="-SessionOwner='%SessionOwner%' -SessionName='%SessioName%'"
|
Update a build script for Windows | @echo off
set BIN_NAME=sqlitebiter
pip install --upgrade pip
pip install --upgrade .[build]
echo "----- start build -----"
pyinstaller cli.py --onefile --name %BIN_NAME% --clean --noconfirm --specpath build
echo "----- complete build -----"
echo "----- start compress -----"
set DIST_DIR_NAME=dist
set BIN_PATH=%DIST_DIR_NAME%/%BIN_NAME%
set ARCHIVE_PATH=%DIST_DIR_NAME%/%BIN_NAME%_win_x64
powershell compress-archive -Force %BIN_PATH%.exe %ARCHIVE_PATH%.zip
echo "----- complete compress -----"
pause
| @echo off
set BIN_NAME=sqlitebiter
pip install --upgrade pip
pip install --upgrade .[build]
echo "----- start build -----"
pyinstaller cli.py --onefile --name %BIN_NAME% --clean --noconfirm --specpath build
echo "----- complete build -----"
echo "----- start compress -----"
set DIST_DIR_NAME=dist
set BIN_PATH=%DIST_DIR_NAME%/%BIN_NAME%.exe
set ARCHIVE_PATH=%DIST_DIR_NAME%/%BIN_NAME%_win_x64.zip
echo %ARCHIVE_PATH%
powershell compress-archive -Force %BIN_PATH% %ARCHIVE_PATH%
echo "----- complete compress -----"
|
Add a batch file to build for Unity (release 2.0, with alternate output directories) | setlocal
pushd %~dp0
set msBuildDir=%WINDIR%\Microsoft.NET\Framework\v4.0.30319
call %msBuildDir%\msbuild.exe ClientKit\ClientKit.csproj /p:Configuration=Release20 /p:OutputPath=..\Managed-OSVR-Unity /p:NativeOutputSuffix32=x86 /p:NativeOutputSuffix64=x86_64%*
endlocal
| |
Add windows ssh wrapper batch file | @echo off
set opts="-oStrictHostKeyChecking=no -oPasswordAuthentication=no -oKbdInteractiveAuthentication=no -oChallengeResponseAuthentication=no"
if "%GIT_IDENTITY%" == "" goto NOIDENT
set opts="%opts% -i %GIT_IDENTITY%"
:NOIDENT
%GIT_SSH% %opts% %*
| |
Add pause to golang bat for testing | pushd ..
if [%1] == [] (
rem === BUILDING GolangSDK ===
node generate.js golangSDK=..\sdks\GolangSDK -apiSpecPath
) else (
rem === BUILDING GolangSDK with params %* ===
node generate.js golangSDK=..\sdks\GolangSDK %*
)
popd
| pushd ..
if [%1] == [] (
rem === BUILDING GolangSDK ===
node generate.js golangSDK=..\sdks\GolangSDK -apiSpecPath
) else (
rem === BUILDING GolangSDK with params %* ===
node generate.js golangSDK=..\sdks\GolangSDK %*
)
popd
pause |
Revert "Fix error propagation in T4 batch script" | @echo off
pushd "%~dp0"
for /f "tokens=*" %%f in ('dir /s /b *.tt') do (
echo>&2 dotnet t4 "%%f"
dotnet t4 "%%f" || goto :end
)
:end
popd
exit /b %ERRORLEVEL%
| @echo off
pushd "%~dp0"
for /f "tokens=*" %%f in ('dir /s /b *.tt') do (
echo>&2 dotnet t4 "%%f"
dotnet t4 "%%f" || goto :end
)
:end
popd
|
Remove pause in dfu bat file | Library\DFU-programmer\DFU\dfu-programmer at32uc3c1512 erase
Library\DFU-programmer\DFU\dfu-programmer at32uc3c1512 get
Library\DFU-programmer\DFU\dfu-programmer at32uc3c1512 flash Debug\MegaFly2.hex --suppress-bootloader-mem
Library\DFU-programmer\DFU\dfu-programmer at32uc3c1512 reset
pause | Library\DFU-programmer\DFU\dfu-programmer at32uc3c1512 erase
Library\DFU-programmer\DFU\dfu-programmer at32uc3c1512 get
Library\DFU-programmer\DFU\dfu-programmer at32uc3c1512 flash Debug\MegaFly2.hex --suppress-bootloader-mem
Library\DFU-programmer\DFU\dfu-programmer at32uc3c1512 reset
REM pause |
Remove code for legacy OSes | setlocal
call clean.bat
call ..\Tools\SetVsEnv x86
mkdir Install\rhel
copy qemupciserial.* .\Install\
inf2cat /driver:Install /uselocaltime /os:XP_X86,Server2003_X86,XP_X64,Server2003_X64,Vista_X86,Server2008_X86,Vista_X64,Server2008_X64,7_X86,7_X64,Server2008R2_X64,8_X86,8_X64,Server8_X64,6_3_X86,6_3_X64,Server6_3_X64,10_X86,10_X64,Server10_X64
copy rhel\qemupciserial.* .\Install\rhel
inf2cat /driver:Install\rhel /uselocaltime /os:XP_X86,Server2003_X86,XP_X64,Server2003_X64,Vista_X86,Server2008_X86,Vista_X64,Server2008_X64,7_X86,7_X64,Server2008R2_X64,8_X86,8_X64,Server8_X64,6_3_X86,6_3_X64,Server6_3_X64,10_X86,10_X64,Server10_X64
endlocal
| setlocal
call clean.bat
call ..\Tools\SetVsEnv x86
mkdir Install\rhel
copy qemupciserial.* .\Install\
inf2cat /driver:Install /uselocaltime /os:8_X86,8_X64,Server8_X64,6_3_X86,6_3_X64,Server6_3_X64,10_X86,10_X64,Server10_X64
copy rhel\qemupciserial.* .\Install\rhel
inf2cat /driver:Install\rhel /uselocaltime /os:8_X86,8_X64,Server8_X64,6_3_X86,6_3_X64,Server6_3_X64,10_X86,10_X64,Server10_X64
endlocal
|
Change npm install api for installing azure-cli as the tarball api seems to be broken. | @echo off
setlocal enabledelayedexpansion
pushd %1
set attempts=5
set counter=0
:retry
set /a counter+=1
echo Attempt %counter% out of %attempts%
if exist node_modules\azure-cli\bin\azure (
cmd /c npm update https://github.com/amitapl/azure-sdk-tools-xplat/tarball/kudu_s21_5
) else (
cmd /c npm install https://github.com/amitapl/azure-sdk-tools-xplat/tarball/kudu_s21_5
)
IF %ERRORLEVEL% NEQ 0 goto error
pushd node_modules
for /r %%X IN (test) DO (
rmdir /s /q %%X 2>nul
)
popd
goto end
:error
if %counter% GEQ %attempts% goto :lastError
goto retry
:lastError
popd
echo An error has occured during npm install.
exit /b 1
:end
popd
echo Finished successfully.
exit /b 0
| @echo off
setlocal enabledelayedexpansion
pushd %1
set attempts=5
set counter=0
:retry
set /a counter+=1
echo Attempt %counter% out of %attempts%
if exist node_modules\azure-cli\bin\azure (
cmd /c npm update git://github.com/amitapl/azure-sdk-tools-xplat.git#kudu_s21_5
) else (
cmd /c npm install git://github.com/amitapl/azure-sdk-tools-xplat.git#kudu_s21_5
)
IF %ERRORLEVEL% NEQ 0 goto error
pushd node_modules
for /r %%X IN (test) DO (
rmdir /s /q %%X 2>nul
)
popd
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
|
Remove ctest that doesn't do anything | mkdir build
cd build
cmake -G "NMake Makefiles" ^
-DCMAKE_INSTALL_PREFIX="%PREFIX%" ^
-DCMAKE_BUILD_TYPE=Release ^
%SRC_DIR%
if errorlevel 1 exit 1
:: Build.
nmake
if errorlevel 1 exit 1
:: Test.
ctest
if errorlevel 1 exit 1
:: Install.
nmake install
if errorlevel 1 exit 1
| mkdir build
cd build
cmake -G "NMake Makefiles" ^
-DCMAKE_INSTALL_PREFIX="%PREFIX%" ^
-DCMAKE_BUILD_TYPE=Release ^
%SRC_DIR%
if errorlevel 1 exit 1
:: Build.
nmake
if errorlevel 1 exit 1
:: Install.
nmake install
if errorlevel 1 exit 1
|
Add cURL to the path for windows32 CATS tests | git submodule update --init
SET CLIPATH=c:\jenkins\workspace\go-cli-tests-windows32Bit
SET GOPATH=%CLIPATH%
c:\Go\bin\go build -v -o cf-windows-386.exe main
SET GOPATH=c:\Users\Administrator\go
SET CATSPATH=%GOPATH%\src\github.com\cloudfoundry\cf-acceptance-tests
copy %CLIPATH%\cf-windows-386.exe %CATSPATH%\gcf.exe /Y
SET PATH=%PATH%;%CATSPATH%
call %environment.bat
cd %CATSPATH%
SET CONFIG=%CATSPATH%\config.json
%GOPATH%\bin\ginkgo -r -v -slowSpecThreshold=300 -skip="admin buildpack"
| git submodule update --init
SET CLIPATH=c:\jenkins\workspace\go-cli-tests-windows32Bit
SET GOPATH=%CLIPATH%
c:\Go\bin\go build -v -o cf-windows-386.exe main
SET GOPATH=c:\Users\Administrator\go
SET CATSPATH=%GOPATH%\src\github.com\cloudfoundry\cf-acceptance-tests
copy %CLIPATH%\cf-windows-386.exe %CATSPATH%\gcf.exe /Y
SET PATH=%PATH%;%CATSPATH%;C:\Program Files\cURL\bin
call %environment.bat
cd %CATSPATH%
SET CONFIG=%CATSPATH%\config.json
%GOPATH%\bin\ginkgo -r -v -slowSpecThreshold=300 -skip="admin buildpack"
|
Update PATH before calling build command. | @echo off
git rev-parse HEAD > version.txt
bundle exec middleman build %*
| @echo off
SET PATH=%PATH%;D:\home\site\deployments\tools\r\ruby-2.2.2-x64-mingw32\bin
git rev-parse HEAD > version.txt
bundle exec middleman build %*
|
Add third-party add-on creation and management infrastructure | @echo off
if not "%ROO_CLASSPATH_FILE%" == "" goto ok
echo Must set ROO_CLASSPATH_FILE to X:\checkout\spring-roo\bootstrap\target\roo_classpath.txt
exit /b
:ok
rem echo Using Roo classpath file [%ROO_CLASSPATH_FILE%]
rem Will be only one line, but the following obvious form doesn't work
rem set /p ROO_CP=< %ROO_CLASSPATH_FILE%
for /f "tokens=* delims= " %%a in (%ROO_CLASSPATH_FILE%) do (
set ROO_CP=%%a
)
if not "%ROO_ADDON_CLASSPATH_FILE%" == "" goto run
for /f "tokens=* delims= " %%a in (%ROO_ADDON_CLASSPATH_FILE%) do (
set EXTENDED_CP=%%a
)
set ROO_CP=%ROO_CP%;%EXTENDED_CP%
:run
rem Escape in case of long file names
set ROO_CP="%ROO_CP%"
rem echo Using Roo classpath [%ROO_CP%]
:launch
java -DdevelopmentMode=true -Droo.home="%USERPROFILE%\roo-dev" -cp %ROO_CP% -Djava.ext.dirs="%USERPROFILE%\roo-dev\work" org.springframework.roo.bootstrap.Bootstrap "classpath:/roo-bootstrap.xml" %*
if "%errorlevel%" == "999" goto launch
| @echo off
if not "%ROO_CLASSPATH_FILE%" == "" goto ok
echo Must set ROO_CLASSPATH_FILE to X:\checkout\spring-roo\bootstrap\target\roo_classpath.txt
exit /b
:ok
rem echo Using Roo classpath file [%ROO_CLASSPATH_FILE%]
rem Will be only one line, but the following obvious form doesn't work
rem set /p ROO_CP=< %ROO_CLASSPATH_FILE%
for /f "tokens=* delims= " %%a in (%ROO_CLASSPATH_FILE%) do (
set ROO_CP=%%a
)
if not "%ROO_ADDON_CLASSPATH_FILE%" == "" goto run
for /f "tokens=* delims= " %%a in (%ROO_ADDON_CLASSPATH_FILE%) do (
set EXTENDED_CP=%%a
)
set ROO_CP=%ROO_CP%;%EXTENDED_CP%
:run
rem Escape in case of long file names
set ROO_CP="%ROO_CP%"
rem echo Using Roo classpath [%ROO_CP%]
:launch
java -DdevelopmentMode=true -Droo.home="%USERPROFILE%\roo-dev" -cp %ROO_CP% -Djava.ext.dirs="%USERPROFILE%\roo-dev\work" org.springframework.roo.bootstrap.Bootstrap "classpath:/roo-bootstrap.xml" %*
if "%errorlevel%" == "100" goto launch
|
Remove wildcard from del statement | 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 ..
| 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 ..
|
Remove run E2E tests options from Windows C build | @REM Copyright (c) Microsoft. All rights reserved.
@REM Licensed under the MIT license. See LICENSE file in the project root for full license information.
setlocal
set build-root=%~dp0..
rem // resolve to fully qualified path
for %%i in ("%build-root%") do set build-root=%%~fi
REM -- C --
cd %build-root%\c\build_all\windows
call build.cmd --run-e2e-tests
if errorlevel 1 goto :eof
cd %build-root%
| @REM Copyright (c) Microsoft. All rights reserved.
@REM Licensed under the MIT license. See LICENSE file in the project root for full license information.
setlocal
set build-root=%~dp0..
rem // resolve to fully qualified path
for %%i in ("%build-root%") do set build-root=%%~fi
REM -- C --
cd %build-root%\c\build_all\windows
call build.cmd
if errorlevel 1 goto :eof
cd %build-root%
|
Kill server on build failure too. | call "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" x86
msbuild /v:m /m BuildAndTest.proj /p:CIBuild=true
if ERRORLEVEL 1 (
echo Build failed
exit /b 1
)
REM Kill any instances of VBCSCompiler.exe to release locked files;
REM otherwise future CI runs may fail while trying to delete those files.
taskkill /F /IM vbcscompiler.exe
REM It is okay and expected for taskkill to fail (it's a cleanup routine). Ensure
REM caller sees successful exit.
exit /b 0
| call "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" x86
msbuild /v:m /m BuildAndTest.proj /p:CIBuild=true
if ERRORLEVEL 1 (
taskkill /F /IM vbcscompiler.exe
echo Build failed
exit /b 1
)
REM Kill any instances of VBCSCompiler.exe to release locked files;
REM otherwise future CI runs may fail while trying to delete those files.
taskkill /F /IM vbcscompiler.exe
REM It is okay and expected for taskkill to fail (it's a cleanup routine). Ensure
REM caller sees successful exit.
exit /b 0
|
Patch for version 0.74 update | @echo off
cls
:start
echo Starting server...
"Nomad Server\NomadServer.exe" -name "My Oxide Server" -port 5127 -slots 10 -clientVersion "0.73" -password "" -tcpLobby "149.202.51.185" 25565
echo.
echo Restarting server...
echo.
goto start
| @echo off
cls
:start
echo Starting server...
"Nomad Server\NomadServer.exe" -name "My Oxide Server" -port 5127 -slots 10 -clientVersion "0.74" -password "" -tcpLobby "149.202.51.185" 25565
echo.
echo Restarting server...
echo.
goto start
|
Fix build script for MS Windows x86 | set project=clibudp
rem //expected build dir structure
set buildexp=build\\Visual_Studio_12_2013\\x86
set currentdir=%cd%
set builddir=.\\%buildexp%
mkdir %builddir%
rem //get path to clibcdc libs
set clibcdc=..\\..\\clibcdc\\%buildexp%
pushd %clibcdc%
set clibcdc=%cd%
popd
rem //launch cmake to generate build environment
pushd %builddir%
cmake -G "Visual Studio 12 2013" -Dclibcdc_DIR:PATH=%clibcdc% %currentdir%
popd
rem //build from generated build environment
cmake --build %builddir%
| set project=clibudp
rem //expected build dir structure
set buildexp=build\\Visual_Studio_12_2013\\x86
set currentdir=%cd%
set builddir=.\\%buildexp%
set libsdir=..\\libs
mkdir %builddir%
rem //get path to clibcdc libs
set clibcdc=%libsdir%\\clibcdc\\%buildexp%
pushd %clibcdc%
set clibcdc=%cd%
popd
rem //get path to clibspi libs
set clibspi=%libsdir%\\clibspi\\%buildexp%
pushd %clibspi%
set clibspi=%cd%
popd
rem //get path to clibdpa libs
set clibdpa=%libsdir%\\clibdpa\\%buildexp%
pushd %clibdpa%
set clibdpa=%cd%
popd
rem //get path to cutils libs
set cutils=%libsdir%\\cutils\\%buildexp%
pushd %cutils%
set cutils=%cd%
popd
rem //launch cmake to generate build environment
pushd %builddir%
cmake -G "Visual Studio 12 2013" -Dclibdpa_DIR:PATH=%clibdpa% -Dcutils_DIR:PATH=%cutils% -Dclibcdc_DIR:PATH=%clibcdc% -Dclibspi_DIR:PATH=%clibspi% %currentdir%
popd
rem //build from generated build environment
cmake --build %builddir%
|
Set default port in .bat to what it should be | @echo off
cls
:start
echo Starting server...
TheForest -batchmode -nographics -ip 0.0.0.0 -port 27000 -maxplayers 10 -hostname "My Oxide Server" -friendsonly 0
echo.
echo Restarting server...
echo.
goto start
| @echo off
cls
:start
echo Starting server...
TheForest -batchmode -nographics -ip 0.0.0.0 -port 27016 -maxplayers 10 -hostname "My Oxide Server" -friendsonly 0
echo.
echo Restarting server...
echo.
goto start
|
Replace absolute path of python | @echo off
set PYTHONPATH=%CD%
C:\Python27\python.exe reader_browser\reader_browser.py %*
| @echo off
set PYTHONPATH=%CD%
python reader_browser\reader_browser.py %*
|
Use velocity and jdom that was copied from jakarta-site2 | @echo off
echo.
echo James Build System
echo -------------------
set ANT_HOME=tools
set CLASSPATH=lib\xerces.jar
%ANT_HOME%\bin\ant.bat -emacs %1 %2 %3 %4 %5 %6 %7 %8
goto cleanup
:cleanup
set ANT_HOME=
| @echo off
echo.
echo James Build System
echo -------------------
set ANT_HOME=tools
set CLASSPATH=lib\xerces-1.4.3.jar;tools\lib\velocity-1.3-dev.jar;tools\lib\jdom-b7.jar
%ANT_HOME%\bin\ant.bat -emacs %1 %2 %3 %4 %5 %6 %7 %8
goto cleanup
:cleanup
set ANT_HOME=
|
Use powershell instead of bitsadmin for download genie.exe | @echo off
if not exist "genie.exe" (
echo Downloading genie...
bitsadmin /transfer "genie" "https://github.com/bkaradzic/bx/raw/master/tools/bin/windows/genie.exe" "%~dp0\genie.exe"
)
IF "%1"=="" (
echo No argument set
echo Exemple : build.bat vs2015
exit 1
)
genie.exe %*
| @echo off
if not exist "genie.exe" (
echo Downloading genie...
rem bitsadmin /transfer "genie" "https://github.com/bkaradzic/bx/raw/master/tools/bin/windows/genie.exe" "%~dp0\genie.exe"
powershell Invoke-WebRequest -Uri "https://github.com/bkaradzic/bx/raw/master/tools/bin/windows/genie.exe" -OutFile "%~dp0\genie.exe"
)
IF "%1"=="" (
echo No argument set
echo Exemple : build.bat vs2015
exit 1
)
genie.exe %*
|
Patch for version 0.92 update | @echo off
cls
:start
echo Starting server...
"Nomad Server\NomadServer.exe" -name "My Oxide Server" -port 5127 -slots 10 -clientVersion "0.91" -password "" -tcpLobby "149.202.51.185" 25565
echo.
echo Restarting server...
echo.
goto start
| @echo off
cls
:start
echo Starting server...
"Nomad Server\NomadServer.exe" -name "My Oxide Server" -port 5127 -slots 10 -clientVersion "0.92" -password "" -tcpLobby "149.202.51.185" 25565
echo.
echo Restarting server...
echo.
goto start
|
Fix error propagation in T4 batch script | @echo off
pushd "%~dp0"
for /f "tokens=*" %%f in ('dir /s /b *.tt') do (
echo>&2 dotnet t4 "%%f"
dotnet t4 "%%f" || goto :end
)
:end
popd
| @echo off
pushd "%~dp0"
for /f "tokens=*" %%f in ('dir /s /b *.tt') do (
echo>&2 dotnet t4 "%%f"
dotnet t4 "%%f" || goto :end
)
:end
popd
exit /b %ERRORLEVEL%
|
Use pushd instead of cd | git flow version > NUL
if %ERRORLEVEL% GEQ 1 (
copy gitflow-windows-dependencies\* "C:\Program Files (x86)\Git\bin"
cd gitflow
contrib\msysgit-install.cmd "C:\Program Files (x86)\Git"
)
echo "Installing..."
copy git-release "C:\Program Files (x86)\Git\bin"
echo "Done!"
| git flow version > NUL
if %ERRORLEVEL% GEQ 1 (
copy gitflow-windows-dependencies\* "C:\Program Files (x86)\Git\bin"
pushd gitflow
contrib\msysgit-install.cmd "C:\Program Files (x86)\Git"
popd
)
echo "Installing..."
copy git-release "C:\Program Files (x86)\Git\bin"
echo "Done!"
|
Build script: Better error handling if cannot locate Visual Studio. | @REM Starts Visual Studio Developer Command Prompt.
@IF DEFINED VisualStudioVersion EXIT /B 0
@REM https://developercommunity.visualstudio.com/content/problem/26780/vsdevcmdbat-changes-the-current-working-directory.html
SET "VSCMD_START_DIR=%CD%"
@REM VS2017 uses vswhere.exe for locating the installation.
FOR /f "usebackq delims=" %%i in (`"%ProgramFiles(x86)%\Microsoft Visual Studio\Installer\vswhere.exe" -prerelease -latest -property installationPath`) do (
IF EXIST "%%i\Common7\Tools\VsDevCmd.bat" (CALL "%%i\Common7\Tools\VsDevCmd.bat" && GOTO OkRestoreEcho || GOTO Error)
)
@REM VS2015 uses %VS140COMNTOOLS% for locating the installation.
IF "%VS140COMNTOOLS%" NEQ "" (CALL "%VS140COMNTOOLS%VsDevCmd.bat" x86 && GOTO OkRestoreEcho || GOTO Error)
:Error
@ECHO ERROR: Cannot find Visual Studio.
@EXIT /B 1
:OkRestoreEcho
@ECHO ON
@ECHO %~nx0 SUCCESSFULLY COMPLETED.
| @REM Starts Visual Studio Developer Command Prompt.
@IF DEFINED VisualStudioVersion EXIT /B 0
@REM https://developercommunity.visualstudio.com/content/problem/26780/vsdevcmdbat-changes-the-current-working-directory.html
SET "VSCMD_START_DIR=%CD%"
@REM VS2017 uses vswhere.exe for locating the installation.
FOR /f "usebackq delims=" %%i in (`"%ProgramFiles(x86)%\Microsoft Visual Studio\Installer\vswhere.exe" -prerelease -latest -property installationPath`) do (
IF EXIST "%%i\Common7\Tools\VsDevCmd.bat" (CALL "%%i\Common7\Tools\VsDevCmd.bat" && GOTO OkRestoreEcho || GOTO Error)
)
@REM VS2015 uses %VS140COMNTOOLS% for locating the installation.
IF "%VS140COMNTOOLS%" NEQ "" (
IF EXIST "%VS140COMNTOOLS%VsDevCmd.bat" (
CALL "%VS140COMNTOOLS%VsDevCmd.bat" x86 && GOTO OkRestoreEcho || GOTO Error
)
)
:Error
@ECHO ERROR: Cannot find Visual Studio.
@EXIT /B 1
:OkRestoreEcho
@ECHO ON
@ECHO %~nx0 SUCCESSFULLY COMPLETED.
|
Patch for version 0.93 update | @echo off
cls
:start
echo Starting server...
"Nomad Server\NomadServer.exe" -name "My Oxide Server" -port 5127 -slots 10 -clientVersion "0.92" -password "" -tcpLobby "149.202.51.185" 25565
echo.
echo Restarting server...
timeout /t 10
echo.
goto start
| @echo off
cls
:start
echo Starting server...
"Nomad Server\NomadServer.exe" -name "My Oxide Server" -port 5127 -slots 10 -clientVersion "0.93" -password "" -tcpLobby "149.202.51.185" 25565
echo.
echo Restarting server...
timeout /t 10
echo.
goto start
|
Add a script to generate MDB files: those are needed for Windows-compiled Sharpmake to run on Linux | :: Script that generates Mono MDB files from Windows/.NET PDB files.
@echo off
setlocal enabledelayedexpansion
set CONFIGURATIONS=
if "%~1" equ "" (
set CONFIGURATIONS=Debug Release
) else if /i "%~1" equ "debug" (
set CONFIGURATIONS=Debug
) else if /i "%~1" equ "release" (
set CONFIGURATIONS=Release
) else (
echo.
echo [%~nx0] ERROR: Unknown configuration type: %1^^!
exit /b 1
)
pushd "%~dp0"
:: pdb2mdb.exe was originally taken from https://gist.github.com/jbevain/ba23149da8369e4a966f
:: as that version:
:: 1) Handles the VS2015+ PDB format, and
:: 2) Can be launched using .NET (i.e. does not need to run within Mono)
:: We now use another executable (still compliant with the said criteria), fetched with NuGet:
nuget install Mono.Unofficial.pdb2mdb
:: Look for pdb2mdb.exe. Its root directory has an undetermined name, because it contains a version
:: e.g. Mono.Unofficial.pdb2mdb.4.2.3.4.
set PDB2MDB_EXE=
for /f %%A in ('dir /b /s pdb2mdb.exe') do (
set PDB2MDB_EXE=%%A
)
if not defined PDB2MDB_EXE (
echo.
echo [%~nx0] ERROR: Could not find pdb2mdb.exe^^!
exit /b 1
)
:: For each specified configuration
for %%c in (%CONFIGURATIONS%) do (
:: For each subdirectory...
for /R "." /D %%d in (*) do (
:: ...that matches the current configuration
if /i "%%~nxd" equ "%%c" (
:: For each EXE and DLL file
for %%f in (%%d\*.exe %%d\*.dll) do (
call :PROCESS_BIN_FILE %%f
)
)
)
)
exit /b 0
:PROCESS_BIN_FILE
:: If this binary file does not have an associated PDB file, skip it!
if not exist %~dpn1.pdb (
goto :EOF
)
set FILENAME=%~1
echo *** Generating MDB file for "!FILENAME:%CD%\=!"... ***
%PDB2MDB_EXE% %1
if not exist "%~1.mdb" (
echo ERROR: "%~1.mdb" was NOT generated^^!
)
| |
Make sure the Python from the build environment is used when building dynd.nd. | cd %RECIPE_DIR%
cd ..\..\
python setup.py install --target=nd --single-version-externally-managed --record=record.txt || exit 1
rd /s /q %SP_DIR%\__pycache__
rd /s /q %SP_DIR%\numpy
rd /s /q %SP_DIR%\Cython
| cd %RECIPE_DIR%
cd ..\..\
%PYTHON% setup.py install --target=nd --single-version-externally-managed --record=record.txt || exit 1
rd /s /q %SP_DIR%\__pycache__
rd /s /q %SP_DIR%\numpy
rd /s /q %SP_DIR%\Cython
|
Validate if the folder passed in is a git repo and terminate if not. | @echo OFF
setlocal ENABLEDELAYEDEXPANSION
IF [%1]==[] GOTO :USAGE
set MKREPO_PATH=%1
SET MKREPO_PATH=%MKREPO_PATH:/=\%
REM Check if its fully qualified.
echo %MKREPO_PATH% | findstr /b ^\\\\ >nul
IF ERRORLEVEL 1 (
echo ERROR: "%MKREPO_PATH%" is not a fully qualified UNC share name.
exit /b 1
)
REM FIX up path separators
SET MKREPO_NIX_PATH=%MKREPO_PATH:\=/%
ECHO Going to initialize a git repo in %MKREPO_PATH%
:INITIALIZE_REPO
If EXIST %MKREPO_PATH% ( echo Directory %MKREPO_PATH% already exists.
GOTO :END
)
git init --bare %MKREPO_NIX_PATH%
if NOT ERRORLEVEL 1 (
echo -------- CREATED REMOTE REPO -----------
GOTO :END
)
exit /b 1
:USAGE
echo makeremoterepo.cmd {UNC SHARE}
exit /b 1
:END
endlocal&SET MKREPO_PATH=%MKREPO_NIX_PATH% | @echo OFF
setlocal ENABLEDELAYEDEXPANSION
IF [%1]==[] GOTO :USAGE
set MKREPO_PATH=%1
SET MKREPO_PATH=%MKREPO_PATH:/=\%
REM Check if its fully qualified.
echo %MKREPO_PATH% | findstr /b ^\\\\ >nul
IF ERRORLEVEL 1 (
echo ERROR: "%MKREPO_PATH%" is not a fully qualified UNC share name.
exit /b 1
)
REM FIX up path separators
SET MKREPO_NIX_PATH=%MKREPO_PATH:\=/%
ECHO Going to initialize a git repo in %MKREPO_PATH%
:INITIALIZE_REPO
If EXIST %MKREPO_PATH% ( echo Directory %MKREPO_PATH% already exists.
pushd %MKREPO_PATH%
git rev-parse
IF ERRORLEVEL 1 exit /b 1
popd
GOTO :END
)
git init --bare %MKREPO_NIX_PATH%
if NOT ERRORLEVEL 1 (
echo -------- CREATED REMOTE REPO -----------
GOTO :END
)
exit /b 1
:USAGE
echo makeremoterepo.cmd {UNC SHARE}
exit /b 1
:END
endlocal&SET MKREPO_PATH=%MKREPO_NIX_PATH% |
Revert "Add an additional Cygwin package repo with patched ninja" | set CACHE=C:\cache
set CYGWIN_MIRROR="http://cygwin.mirror.constant.com"
set CYGWIN_ADDITIONAL_REPO="http://www.dronecode.org.uk/cygwin/"
set CYGWIN_ADDITIONAL_REPO_KEY="http://www.dronecode.org.uk/cygwin/dronecode.gpg"
if _%arch%_ == _x64_ set SETUP=setup-x86_64.exe && set CYGWIN_ROOT=C:\cygwin64
if _%arch%_ == _x86_ set SETUP=setup-x86.exe && set CYGWIN_ROOT=C:\cygwin
if not exist %CACHE% mkdir %CACHE%
echo Updating Cygwin and installing ninja and test prerequisites
%CYGWIN_ROOT%\%SETUP% -qnNdO -R "%CYGWIN_ROOT%" -s "%CYGWIN_MIRROR%" -s "%CYGWIN_ADDITIONAL_REPO%" -K "%CYGWIN_ADDITIONAL_REPO_KEY%" -l "%CACHE%" -g -P "ninja,gcc-objc,gcc-objc++,libglib2.0-devel,zlib-devel,python3-pip"
echo Install done
| set CACHE=C:\cache
set CYGWIN_MIRROR="http://cygwin.mirror.constant.com"
if _%arch%_ == _x64_ set SETUP=setup-x86_64.exe && set CYGWIN_ROOT=C:\cygwin64
if _%arch%_ == _x86_ set SETUP=setup-x86.exe && set CYGWIN_ROOT=C:\cygwin
if not exist %CACHE% mkdir %CACHE%
echo Updating Cygwin and installing ninja and test prerequisites
%CYGWIN_ROOT%\%SETUP% -qnNdO -R "%CYGWIN_ROOT%" -s "%CYGWIN_MIRROR%" -l "%CACHE%" -g -P "ninja,gcc-objc,gcc-objc++,libglib2.0-devel,zlib-devel,python3-pip"
echo Install done
|
Remove quotes from path variable definition | set SOURCE_DIR=%CD%
set BUILD_DIR="../build-sqlitewrapper"
set CMAKE_COMMAND=cmake.exe
set MAKE_COMMAND=C:\Qt\Tools\QtCreator\bin\jom.exe /J 2
call "C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\Tools\VsDevCmd.bat"
python projectfiles_unchanged.py
if %ERRORLEVEL% NEQ 0 (
RMDIR /S /Q "%BUILD_DIR%"
)
if not exist "%BUILD_DIR%" mkdir "%BUILD_DIR%"
cd "%BUILD_DIR%" || goto error
%CMAKE_COMMAND% -DCMAKE_BUILD_TYPE=Release -G "NMake Makefiles" "%SOURCE_DIR%" || goto error
%MAKE_COMMAND% || goto error
cd "%SOURCE_DIR%"
exit /b 0
:error
cd "%SOURCE_DIR%"
exit /b 1
| set SOURCE_DIR=%CD%
set BUILD_DIR=../build-sqlitewrapper
set CMAKE_COMMAND=cmake.exe
set MAKE_COMMAND=C:\Qt\Tools\QtCreator\bin\jom.exe /J 2
call "C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\Tools\VsDevCmd.bat"
python projectfiles_unchanged.py
if %ERRORLEVEL% NEQ 0 (
RMDIR /S /Q "%BUILD_DIR%"
)
if not exist "%BUILD_DIR%" mkdir "%BUILD_DIR%"
cd "%BUILD_DIR%" || goto error
%CMAKE_COMMAND% -DCMAKE_BUILD_TYPE=Release -G "NMake Makefiles" "%SOURCE_DIR%" || goto error
%MAKE_COMMAND% || goto error
cd "%SOURCE_DIR%"
exit /b 0
:error
cd "%SOURCE_DIR%"
exit /b 1
|
Build using xbuild on Windows for mono | @@@ setlocal
@@@ for /f %%i in ('dir /b /ad /on "%windir%\Microsoft.NET\Framework\v*"') do @if exist "%windir%\Microsoft.NET\Framework\%%i\msbuild".exe set msbuild=%windir%\Microsoft.NET\Framework\%%i\msbuild.exe
@@@ if not defined msbuild (echo MSBuild.exe not found>&2 & exit /b 42)
@@@ if defined msbuild "%msbuild%" NUnitFramework.msbuild %* | @echo off
setlocal
for %%a in (%*) do echo "%%a" | findstr /C:"mono">nul && set buildtool=xbuild.bat
if not defined buildtool for /f %%i in ('dir /b /ad /on "%windir%\Microsoft.NET\Framework\v*"') do @if exist "%windir%\Microsoft.NET\Framework\%%i\msbuild".exe set buildtool=%windir%\Microsoft.NET\Framework\%%i\msbuild.exe
if not defined buildtool (echo no MSBuild.exe or xbuild was found>&2 & exit /b 42)
if defined buildtool "%buildtool%" %~dp0NUnitFramework.msbuild %* |
Remove what we don't need | @echo off
REM Ensure we've set things up properly
if [%1] == [] goto Fail
REM Get authentication information
set connection=%1
REM Convert the working directory to something scp can use
REM First grab the invocation directory (/bin)
set cwd=%~dp0
REM Replace \ slashes with / slashes
set cwd=%cwd:\=/%
REM Replace c: with /c so we have a UNIX-style drive reference
set cwd=%cwd:c:=/c%
echo Copying provision scripts to the remote host: %host%
REM Copy both the provision directory and the bin directory to the remote server
scp -r %cwd%../provision/ %connection%:provision
scp -r %cwd% %connection%:scripts
echo Invoking scripts on the remote host.
REM Install dos2unix so we can fix line endings
ssh -t %connection% 'sudo apt-get install dos2unix -y'
REM Convert line endings of the deploy script
ssh -t %connection% 'dos2unix scripts/remote-provision.sh'
REM Fire the provision script so we can build the server
ssh -t %connection% 'sudo scripts/remote-provision.sh'
goto End
:Fail
echo Invalid invocation. Please specify a username (with sudo rights) and hostname.
:End | @echo off
REM Ensure we've set things up properly
if [%1] == [] goto Fail
REM Get authentication information
set connection=%1
REM Convert the working directory to something scp can use
REM First grab the invocation directory (/bin)
set cwd=%~dp0
REM Replace \ slashes with / slashes
set cwd=%cwd:\=/%
REM Replace c: with /c so we have a UNIX-style drive reference
set cwd=%cwd:c:=/c%
echo Copying provision scripts to the remote host: %host%
REM Copy both the provision directory and the bin directory to the remote server
scp -r %cwd%../provision/ %connection%:provision
scp -r %cwd% %connection%:scripts
echo Invoking scripts on the remote host.
REM Install dos2unix so we can fix line endings
ssh -t %connection% 'sudo apt-get install dos2unix -y'
REM Convert line endings of the deploy script
ssh -t %connection% 'dos2unix scripts/remote-provision.sh'
REM Fire the provision script so we can build the server
ssh -t %connection% 'sudo scripts/remote-provision.sh'
REM Remove remote execution scripts
ssh -t %connection% 'rm -rf provision scripts'
goto End
:Fail
echo Invalid invocation. Please specify a username (with sudo rights) and hostname.
:End |
Build script: Run MSBuild multi-threaded | @echo off
::Compiles the Visual Studio solution.
pushd "%~dp0"
rem Project settings
set SOLUTION_FILE=NanoByte.Common.sln
rem Determine VS version
if defined VS140COMNTOOLS (
::Visual Studio 2015
call "%VS140COMNTOOLS%vsvars32.bat"
goto vs_ok
)
echo ERROR: No Visual Studio installation found. >&2
exit /b 1
:vs_ok
set config=%1
if "%config%"=="" set config=Debug
echo Restoring NuGet packages...
.nuget\NuGet.exe restore %SOLUTION_FILE% -Verbosity quiet
if errorlevel 1 exit /b %errorlevel%
echo Compiling Visual Studio solution (%config%)...
if exist ..\build\%config% rd /s /q ..\build\%config%
msbuild %SOLUTION_FILE% /nologo /v:q /t:Rebuild /p:Configuration=%config%
if errorlevel 1 exit /b %errorlevel%
popd | @echo off
::Compiles the Visual Studio solution.
pushd "%~dp0"
rem Project settings
set SOLUTION_FILE=NanoByte.Common.sln
rem Determine VS version
if defined VS140COMNTOOLS (
::Visual Studio 2015
call "%VS140COMNTOOLS%vsvars32.bat"
goto vs_ok
)
echo ERROR: No Visual Studio installation found. >&2
exit /b 1
:vs_ok
set config=%1
if "%config%"=="" set config=Debug
echo Restoring NuGet packages...
.nuget\NuGet.exe restore %SOLUTION_FILE% -Verbosity quiet
if errorlevel 1 exit /b %errorlevel%
echo Compiling Visual Studio solution (%config%)...
if exist ..\build\%config% rd /s /q ..\build\%config%
msbuild %SOLUTION_FILE% /nologo /v:q /m /t:Rebuild /p:Configuration=%config%
if errorlevel 1 exit /b %errorlevel%
popd |
Fix comments on .bat file | /**
* Copyright (c) 2015-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*/
| :: Copyright (c) 2015-present, Facebook, Inc.
:: All rights reserved.
::
:: This source code is licensed under the BSD-style license found in the
:: LICENSE file in the root directory of this source tree. An additional grant
:: of patent rights can be found in the PATENTS file in the same directory.
|
Add jenkins build batch file. |
md build
cd build
cmake -DLIBWS_WITH_AUTOBAHN=ON ..
cmake --build .
ctest
bin\Debug\autobahntest.exe --config ..\test\autobahn\libws.cfg
| |
Update 7zip to version 9.20 | if %sentinel% NEQ __sentinel__ exit
call %tmp%\wget_and_install.bat http://downloads.sourceforge.net/sevenzip 7z465.msi %base_dir%\7z
| if %sentinel% NEQ __sentinel__ exit
call %tmp%\wget_and_install.bat http://downloads.sourceforge.net/sevenzip 7z920.msi %base_dir%\7z
|
Add a helper script to test MinGW builds locally (to help debugging the build server) | @rem MinGW build test - used to test MinGW builds locally
@rem Adapt path/versions before use
@rem This batch file must be used from the repository root
@if exist mingw.bat cd ..
@set PATH=%ProgramFiles%\mingw-w64\i686-4.9.2-win32-dwarf-rt_v3-rev1\mingw32\bin;%PATH%
@set PATH=%ProgramFiles%\GnuWin32\bin;%PATH%
@rem Alternative ways to use mingw
@rem make CC=gcc CFLAGS=-w CFLAGS+=-Iinclude/ CFLAGS+=-lws2_32 CFLAGS+=-liphlpapi
@rem gcc src\civetweb.c src\main.c -Iinclude\ -lws2_32 -lpthread -lcomdlg32 -w
make build CC=gcc WITH_LUA=1 WITH_WEBSOCKET=1
| |
Change the don’t sign message log. | @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 Don't sign the Windows installer.
:END | @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 |
Fix path to SharpDX.build for certification tests. | @echo off
setlocal
set PATH=C:\Program Files (x86)\Git\bin\;%PATH%
call "C:\Program Files (x86)\Microsoft Visual Studio 12.0\vc\vcvarsall.bat" x86
msbuild /tv:12.0 /p:BuildSignedSharpDX=false /t:RunCertificationTests /verbosity:quiet /clp:ErrorsOnly /fl /flp:Summary;Verbosity=minimal;logfile=BuildErrors.log;Append=true %* d:\Artiom\Projects\SharpDX\SharpDX.build
| @echo off
setlocal
set PATH=C:\Program Files (x86)\Git\bin\;%PATH%
call "C:\Program Files (x86)\Microsoft Visual Studio 12.0\vc\vcvarsall.bat" x86
msbuild /tv:12.0 /p:BuildSignedSharpDX=false /t:RunCertificationTests /verbosity:quiet /clp:ErrorsOnly /fl /flp:Summary;Verbosity=minimal;logfile=BuildErrors.log;Append=true %* SharpDX.build
|
Allow more arguments to fake | REM If GitVersion is not available then run
REM cinst GitVersion.Portable
REM to install it
GitVersion.exe /output buildserver /exec scripts\lib\FAKE\tools\Fake.exe /execArgs "scripts\build.fsx %1" /l console
| REM If GitVersion is not available then run
REM cinst GitVersion.Portable
REM to install it
GitVersion.exe /output buildserver /exec scripts\lib\FAKE\tools\Fake.exe /execArgs "scripts\build.fsx %1 %2 %3 %4 %5 %6 %7 %8 %9 " /l console
|
Build script should fail for problems | @echo Off
pushd %~dp0
setlocal
:Build
call npm install
call npm run check
call npm run build
call npm run lint
call npm run coverage:teamcity
call npm run integration-test
call npm run integration-test-stdin-windows
if %ERRORLEVEL% neq 0 goto BuildFail
goto BuildSuccess
:BuildFail
echo.
echo *** BUILD FAILED ***
goto End
:BuildSuccess
echo.
echo *** BUILD SUCCEEDED ***
goto End
:End
echo.
popd
exit /B %ERRORLEVEL%
| @echo Off
pushd %~dp0
setlocal
:Build
call npm install
if %ERRORLEVEL% neq 0 goto BuildFail
call npm run check
if %ERRORLEVEL% neq 0 goto BuildFail
call npm run build
if %ERRORLEVEL% neq 0 goto BuildFail
call npm run lint
if %ERRORLEVEL% neq 0 goto BuildFail
call npm run coverage:teamcity
if %ERRORLEVEL% neq 0 goto BuildFail
call npm run integration-test
if %ERRORLEVEL% neq 0 goto BuildFail
call npm run integration-test-stdin-windows
if %ERRORLEVEL% neq 0 goto BuildFail
goto BuildSuccess
:BuildFail
echo.
echo *** BUILD FAILED ***
goto End
:BuildSuccess
echo.
echo *** BUILD SUCCEEDED ***
goto End
:End
echo.
popd
exit /B %ERRORLEVEL%
|
Reorder build script to work around unexplained error | @echo on
git submodule update --init --recursive
cd Agiil.Web
npm install
cd ..
nuget restore Agiil.sln | @echo on
git submodule update --init --recursive
nuget restore Agiil.sln
cd Agiil.Web
REM It's very strange but this has to be the last line of the script.
REM As soon as it completes, this script is terminated and nothing afterwards
REM is executed.
npm install
|
Set --silent to reduce android sdk logs (hopefully). | echo y | "%ANDROID_HOME%/tools/android.bat" update sdk --no-ui --all --filter android-10,android-23,platform-tools,tools,build-tools-23.0.3
| echo y | "%ANDROID_HOME%/tools/android.bat" --silent update sdk --no-ui --all --filter android-10,android-23,platform-tools,tools,build-tools-23.0.3
|
Enable logging in installer on Windows | set "ROBOZONKY_EXECUTABLE=${com.github.robozonky.distribution.jar}"
set "HERE=%~dp0%"
echo Will run %ROBOZONKY_EXECUTABLE% from '%HERE%'.
rem Use Java runtime bundled with RoboZonky, if available.
set "CUSTOM_JRE_LOCATION=%HERE%runtime\"
set "JAVA_EXECUTABLE=java.exe"
IF EXIST %CUSTOM_JRE_LOCATION%bin\%JAVA_EXECUTABLE% (
set "JAVA_EXECUTABLE=%CUSTOM_JRE_LOCATION%bin\%JAVA_EXECUTABLE%"
set "JAVA_HOME=%CUSTOM_JRE_LOCATION%"
)
echo Will use '%JAVA_EXECUTABLE%' as the Java executable.
echo JAVA_HOME set to '%JAVA_HOME%'.
rem TODO Don't open java.util when Yasson can be upgraded to 1.0.8+, removing the warning.
set "ROBOZONKY_OPTS=%JAVA_OPTS% --add-opens java.base/java.util=ALL-UNNAMED -XX:+ExitOnOutOfMemoryError -Djava.util.logging.manager=org.apache.logging.log4j.jul.LogManager -Dfile.encoding=UTF-8 -Djava.net.preferIPv4Stack=true"
%JAVA_EXECUTABLE% %ROBOZONKY_OPTS% -jar %HERE%%ROBOZONKY_EXECUTABLE% %*
rem Don't let the window close if something went wrong.
pause
| set "ROBOZONKY_EXECUTABLE=${com.github.robozonky.distribution.jar}"
set "HERE=%~dp0%"
echo Will run %ROBOZONKY_EXECUTABLE% from '%HERE%'.
rem Use Java runtime bundled with RoboZonky, if available.
set "CUSTOM_JRE_LOCATION=%HERE%runtime\"
set "JAVA_EXECUTABLE=java.exe"
IF EXIST %CUSTOM_JRE_LOCATION%bin\%JAVA_EXECUTABLE% (
set "JAVA_EXECUTABLE=%CUSTOM_JRE_LOCATION%bin\%JAVA_EXECUTABLE%"
set "JAVA_HOME=%CUSTOM_JRE_LOCATION%"
)
echo Will use '%JAVA_EXECUTABLE%' as the Java executable.
echo JAVA_HOME set to '%JAVA_HOME%'.
rem TODO Don't open java.util when Yasson can be upgraded to 1.0.8+, removing the warning.
set "ROBOZONKY_OPTS=%JAVA_OPTS% --add-opens java.base/java.util=ALL-UNNAMED -XX:+ExitOnOutOfMemoryError -Dlog4j.configurationFile=log4j2.xml -Djava.util.logging.manager=org.apache.logging.log4j.jul.LogManager -Dfile.encoding=UTF-8 -Djava.net.preferIPv4Stack=true"
%JAVA_EXECUTABLE% %ROBOZONKY_OPTS% -jar %HERE%%ROBOZONKY_EXECUTABLE% %*
rem Don't let the window close if something went wrong.
pause
|
Allow spaces in directory paths of output dir | @echo off
for /f "delims=" %%i in ('npm config get prefix') do set output=%%i
@node %output%/node_modules/gogo/gg.js %*
echo on | @echo off
for /f "delims=" %%i in ('npm config get prefix') do set output=%%i
@node "%output%/node_modules/gogo/gg.js" %*
echo on
|
Use absolute path to conda.bat in windows image | @echo off
setlocal EnableDelayedExpansion
SET VERSIONS=2.7 3.5 3.6 3.7 3.8
SET SOURCEDIR=%cd%
REM Build packages
for %%v in (%VERSIONS%) do (
SET ENV_NAME=py%%v
REM Create and activate environment
cd %ROOT_DIR%
CALL conda create -y -n py%%v python=%%v
if !ERRORLEVEL! NEQ 0 (EXIT !ERRORLEVEL!)
CALL conda activate py%%v
if !ERRORLEVEL! NEQ 0 (EXIT !ERRORLEVEL!)
pip install --no-cache-dir setuptools wheel pytest
if !ERRORLEVEL! NEQ 0 (EXIT !ERRORLEVEL!)
REM Build and package
python setup.py build_ext bdist_wheel
if !ERRORLEVEL! NEQ 0 (EXIT !ERRORLEVEL!)
REM Cleanup
CALL conda deactivate
rmdir /S /Q build python\opencc\clib OpenCC.egg-info
)
REM Upload to PyPI
REM conda activate py3.8
REM python -m pip install twine
REM python -m twine upload dist/*
| @echo off
setlocal EnableDelayedExpansion
REM Initialize conda
C:\Miniconda/condabin/conda.bat init powershell
SET VERSIONS=2.7 3.5 3.6 3.7 3.8
SET SOURCEDIR=%cd%
REM Build packages
for %%v in (%VERSIONS%) do (
SET ENV_NAME=py%%v
REM Create and activate environment
cd %ROOT_DIR%
CALL C:\Miniconda/condabin/conda.bat create -y -n py%%v python=%%v
if !ERRORLEVEL! NEQ 0 (EXIT !ERRORLEVEL!)
CALL C:\Miniconda/condabin/conda.bat activate py%%v
if !ERRORLEVEL! NEQ 0 (EXIT !ERRORLEVEL!)
pip install --no-cache-dir setuptools wheel pytest
if !ERRORLEVEL! NEQ 0 (EXIT !ERRORLEVEL!)
REM Build and package
python setup.py build_ext bdist_wheel
if !ERRORLEVEL! NEQ 0 (EXIT !ERRORLEVEL!)
REM Cleanup
CALL C:\Miniconda/condabin/conda.bat deactivate
rmdir /S /Q build python\opencc\clib OpenCC.egg-info
)
REM Upload to PyPI
REM C:\Miniconda/condabin/conda.bat activate py3.8
REM python -m pip install twine
REM python -m twine upload dist/*
|
Revert "Install Visual C++ 2008 SP1 Redistributables" | powershell -Command "(New-Object Net.WebClient).DownloadFile('https://download.microsoft.com/download/d/d/9/dd9a82d0-52ef-40db-8dab-795376989c03/vcredist_x86.exe', 'vcredist_x86.exe')"
if errorlevel 1 exit 1
powershell -Command "(New-Object Net.WebClient).DownloadFile('https://download.microsoft.com/download/2/d/6/2d61c766-107b-409d-8fba-c39e61ca08e8/vcredist_x64.exe', 'vcredist_x64.exe')"
if errorlevel 1 exit 1
vcredist_x86.exe /qb!
if errorlevel 1 exit 1
vcredist_x64.exe /qb!
if errorlevel 1 exit 1
for %%F in ("." "bin") do (
cmake -G "%CMAKE_GENERATOR%" ^
-DCMAKE_INSTALL_PREFIX:PATH="%LIBRARY_PREFIX%" ^
-DCMAKE_INSTALL_DEBUG_LIBRARIES:BOOL="OFF" ^
-DCMAKE_INSTALL_DEBUG_LIBRARIES_ONLY:BOOL="OFF" ^
-DCMAKE_INSTALL_OPENMP_LIBRARIES:BOOL="ON" ^
-DCMAKE_INSTALL_SYSTEM_RUNTIME_DESTINATION:STRING=%%F ^
"%RECIPE_DIR%"
if errorlevel 1 exit 1
cmake --build "%SRC_DIR%" ^
--target INSTALL ^
--config Release
if errorlevel 1 exit 1
)
| for %%F in ("." "bin") do (
cmake -G "%CMAKE_GENERATOR%" ^
-DCMAKE_INSTALL_PREFIX:PATH="%LIBRARY_PREFIX%" ^
-DCMAKE_INSTALL_DEBUG_LIBRARIES:BOOL="OFF" ^
-DCMAKE_INSTALL_DEBUG_LIBRARIES_ONLY:BOOL="OFF" ^
-DCMAKE_INSTALL_OPENMP_LIBRARIES:BOOL="ON" ^
-DCMAKE_INSTALL_SYSTEM_RUNTIME_DESTINATION:STRING=%%F ^
"%RECIPE_DIR%"
if errorlevel 1 exit 1
cmake --build "%SRC_DIR%" ^
--target INSTALL ^
--config Release
if errorlevel 1 exit 1
)
|
Add wrapper batch file for Jenkins to build | mkdir ..\libm2dec\Release
mkdir ..\libm2dec\Debug
mkdir ..\h264dec\Release
mkdir ..\h264dec\Debug
mkdir ..\m2dec\Release
mkdir ..\m2dec\Debug
"C:\Program Files (x86)\Renesas\Hew\hmake.exe" m2dec.mak > buildlog.txt
find "ERROR" buildlog.txt
if errorlevel 1 exit /b 0
exit /b 1
| |
Install python 2.7 on a separate prefix on Windows | setlocal enableextensions enabledelayedexpansion
git config --system core.longpaths true
set LIBRARY_PATHS=-I %LIBRARY_INC%
pushd %LIBRARY_INC%
for /F "usebackq delims=" %%F in (`dir /b /ad-h`) do (
set LIBRARY_PATHS=!LIBRARY_PATHS! -I %LIBRARY_INC%\%%F
)
popd
endlocal
set PATH=%cd%\jom;%PATH%
SET PATH=%cd%\gnuwin32\gnuwin32\bin;%cd%\gnuwin32\bin;%PATH%
mkdir b
pushd b
where jom
:: Set QMake prefix to LIBRARY_PREFIX
qmake -set prefix %LIBRARY_PREFIX%
qmake QMAKE_LIBDIR=%LIBRARY_LIB% ^
QMAKE_BINDIR=%LIBRARY_BIN% ^
INCLUDEPATH+="%LIBRARY_INC%" ^
..
echo on
jom
jom install
| setlocal enableextensions enabledelayedexpansion
git config --system core.longpaths true
set LIBRARY_PATHS=-I %LIBRARY_INC%
pushd %LIBRARY_INC%
for /F "usebackq delims=" %%F in (`dir /b /ad-h`) do (
set LIBRARY_PATHS=!LIBRARY_PATHS! -I %LIBRARY_INC%\%%F
)
popd
endlocal
:: Chromium requires Python 2.7 to generate compilation outputs.
conda create -y --prefix "%SRC_DIR%\win_python" python=2.7 -c conda-forge
set PATH=%SRC_DIR%\win_python;%PATH%
set PATH=%cd%\jom;%PATH%
SET PATH=%cd%\gnuwin32\gnuwin32\bin;%cd%\gnuwin32\bin;%PATH%
mkdir b
pushd b
where jom
:: Set QMake prefix to LIBRARY_PREFIX
qmake -set prefix %LIBRARY_PREFIX%
qmake QMAKE_LIBDIR=%LIBRARY_LIB% ^
QMAKE_BINDIR=%LIBRARY_BIN% ^
INCLUDEPATH+="%LIBRARY_INC%" ^
..
echo on
jom
jom install
|
Change PHPUnit script to use channel pear.symfony.com instead of pear.symfony-project.com | @ECHO OFF
ECHO Press enter to install PHPUnit for PHP
PAUSE
cmd /C pear update-channels
cmd /C pear upgrade
cmd /C pear channel-discover pear.phpunit.de
cmd /C pear channel-discover pear.symfony-project.com
cmd /C pear clear-cache
cmd /C pear install --alldeps phpunit/PHPUnit
ECHO Installation complete
PAUSE | @ECHO OFF
ECHO Press enter to install PHPUnit for PHP
PAUSE
cmd /C pear update-channels
cmd /C pear upgrade
cmd /C pear channel-discover pear.phpunit.de
cmd /C pear channel-discover pear.symfony.com
cmd /C pear clear-cache
cmd /C pear install --alldeps phpunit/PHPUnit
ECHO Installation complete
PAUSE |
Put bin and share in same place | @echo off
copy /y bin\*.dll %PREFIX%\ > nul
copy /y bin\cmake.exe %PREFIX%\ > nul
xcopy share %PREFIX%\share /E /I > nul
| @echo off
xcopy bin %LIBRARY_BIN%\bin /E /I > nul
xcopy share %LIBRARY_BIN%\share /E /I > nul
|
Call node on the folder rather than on DrathybotAlpha | call npm install
@echo off
@echo if "%%~1"=="-FIXED_CTRL_C" ( > s.bat
@echo shift >> s.bat
@echo ) else ( >> s.bat
@echo call ^<NUL %%0 -FIXED_CTRL_C %%* >> s.bat
@echo goto :EOF >> s.bat
@echo ) >> s.bat
@echo cd database >> s.bat
@echo i.vbs "start /WAIT restart.bat" >> s.bat
@echo cd .. >> s.bat
@echo start "Drathybot" node ../DrathybotAlpha >> s.bat
@echo CreateObject("Wscript.Shell").Run "s.bat", 0, True > Drathybot.vbs
mkdir database
cd database
@echo CreateObject("Wscript.Shell").Run "" ^& WScript.Arguments(0) ^& "", 0, False > i.vbs
@echo del db.log > start.bat
@echo "C:/Program Files/MongoDB/Server/3.0/bin/mongod.exe" --dbpath %%~dp0 --logpath db.log >> start.bat
@echo "C:/Program Files/MongoDB/Server/3.0/bin/mongo.exe" localhost:27017 --eval "db.adminCommand({shutdown : 1})" > stop.bat
@echo call stop.bat > restart.bat
@echo timeout 1 >> restart.bat
@echo wscript.exe i.vbs "start.bat" >> restart.bat
@echo exit >> restart.bat
cd ..
timeout 5 | call npm install
@echo off
@echo if "%%~1"=="-FIXED_CTRL_C" ( > s.bat
@echo shift >> s.bat
@echo ) else ( >> s.bat
@echo call ^<NUL %%0 -FIXED_CTRL_C %%* >> s.bat
@echo goto :EOF >> s.bat
@echo ) >> s.bat
@echo cd database >> s.bat
@echo i.vbs "start /WAIT restart.bat" >> s.bat
@echo cd .. >> s.bat
@echo start "Drathybot" node %~dp0 >> s.bat
@echo CreateObject("Wscript.Shell").Run "s.bat", 0, True > Drathybot.vbs
mkdir database
cd database
@echo CreateObject("Wscript.Shell").Run "" ^& WScript.Arguments(0) ^& "", 0, False > i.vbs
@echo del db.log > start.bat
@echo "C:/Program Files/MongoDB/Server/3.0/bin/mongod.exe" --dbpath %%~dp0 --logpath db.log >> start.bat
@echo "C:/Program Files/MongoDB/Server/3.0/bin/mongo.exe" localhost:27017 --eval "db.adminCommand({shutdown : 1})" > stop.bat
@echo call stop.bat > restart.bat
@echo timeout 1 >> restart.bat
@echo wscript.exe i.vbs "start.bat" >> restart.bat
@echo exit >> restart.bat
cd ..
timeout 5 |
Change GUID for python 2.7.12 | @echo off
:: uninstall Python 2.7 64bit
MsiExec.exe /X {16E52445-1392-469F-9ADB-FC03AF00CD62} /QN
:: wipe the Python directory
:: DOS hack first create dir because Windows cannot test not existing without error message
md c:\Python27 1>nul 2>nul
rd /s /q c:\Python27 || echo Failure: c:\Python27 still exists, please find out why and repeat.
| @echo off
:: uninstall Python 2.7.12 64bit
MsiExec.exe /X {9DA28CE5-0AA5-429E-86D8-686ED898C666} /QN
:: wipe the Python directory
:: DOS hack first create dir because Windows cannot test not existing without error message
md c:\Python27 1>nul 2>nul
rd /s /q c:\Python27 || echo Failure: c:\Python27 still exists, please find out why and repeat.
|
Add a easy rununitests script for WinCE | set DEPOT="%CD%"
IF NOT EXIST sfw.pro GOTO NOSOURCE
set CETESTCOMMAND=cetest -cache %QTDIR%\.qmake.cache -libpath \Windows
cd %DEPOT%\..\..\qa-dungeon\mainline\tests\wince\deploy\
call %CETESTCOMMAND%
cd %DEPOT%\tests\auto\servicemetadata
call %CETESTCOMMAND%
cd %DEPOT%\tests\auto\servicedatabase
call %CETESTCOMMAND%
cd %DEPOT%\tests\auto\databasemanager
call %CETESTCOMMAND%
cd %DEPOT%\tests\auto\qservicemanager"
call %CETESTCOMMAND%
cd %DEPOT%\tests\auto\qservicefilter
call %CETESTCOMMAND%
cd %DEPOT%\tests\auto\qserviceinterfacedescriptor
call %CETESTCOMMAND%
cd %DEPOT%\tests\auto\qabstractsecuritysession
call %CETESTCOMMAND%
GOTO EOF
:NOSOURCE
echo "Unable to find sfw.pro check current directory is serviceframework source"
GOTO EOF
:EOF
cd %DEPOT%
| |
Add a rununittests script for WinCE | set DEPOT="%CD%"
IF NOT EXIST bearermanagement.pro GOTO NOSOURCE
set CETESTCOMMAND=cetest -cache %QTDIR%\.qmake.cache -libpath \Windows
IF NOT EXIST %DEPOT%\..\..\qa-dungeon\mainline\tests\wince\deploy\ GOTO SKIPDEPLOY
cd %DEPOT%\..\..\qa-dungeon\mainline\tests\wince\deploy\
call %CETESTCOMMAND%
:SKIPDEPLOY
cd %DEPOT%\..\..\qa-dungeon\mainline\tests\wince\deploy\
call %CETESTCOMMAND%
cd %DEPOT%\tests\auto\qnetworkconfiguration
call %CETESTCOMMAND%
cd %DEPOT%\tests\auto\qnetworkconfigmanager
call %CETESTCOMMAND%
cd %DEPOT%\tests\auto\qnetworksession
GOTO EOF
:NOSOURCE
echo "Unable to find bearermanagement.pro check current directory is bearermanagment source"
GOTO EOF
:EOF
cd %DEPOT%
| |
Create new ref with ref count. | @ECHO OFF
:USAGE
:START
:INITIALIZE
SETLOCAL ENABLEDELAYEDEXPANSION
SET BASE_DIR=%~DP0
SET IN_VAR_NAME=%1
SET IN_VALUE=%2
SET OUT_VAR_NAME=%1
:CODE
SET GLOBALS_FILE=%BASE_DIR%\globals.txt
SET REFERENCE_COUNT=1
SET VALUE=
:WHILE_REF_EXISTS
CALL GEN-REF REFERENCE
CALL GET-GLOBAL %GLOBALS_FILE% REFERENCE VALUE
IF NOT %VALUE% == "" GOTO :WHILE_REF_EXISTS
CALL SET-GLOBAL %GLOBALS_FILE% REFERENCE %IN_VALUE%
CALL SET-GLOBAL %GLOBALS_FILE% REFERENCE_COUNT[%REFERENCE%] %REFERENCE_COUNT%
:RETURN
ENDLOCAL & (
SET %OUT_VAR_NAME%=%REFERENCE%
)
:EOF
@ECHO ON
| |
Add proper error code handling | : REM BAT-file name pk2cc5x.bat
: REM %1=C:\PK2proj\ path to the tool-chain
: REM %2=PIC16f690 pic device name
: REM %3=C:\PK2proj\Work\ path to work directory
: REM %4=hello_blink.c File name
: REM %5=hello_blink File name without extension
@ECHO.
@ECHO -NOW COMPILING WITH CC5X
"%~1Cc5x\Cc5x.exe" "%~3%~4" -I"%~1Cc5x" -O%3 -a
@ECHO.
@ECHO -NOW DOWNLOADING CODE WITH PK2CMD
"%~1PK2Cmd\pk2cmd" -b"%~1PK2Cmd" -p%2 -f"%~3%~5.hex" -a4.5 -m -r -t -jn
| : REM BAT-file name pk2cc5x.bat
: REM %1=C:\PK2proj\ path to the tool-chain
: REM %2=PIC16f690 pic device name
: REM %3=C:\PK2proj\Work\ path to work directory
: REM %4=hello_blink.c File name
: REM %5=hello_blink File name without extension
@ECHO.
@ECHO -NOW COMPILING WITH CC5X
"%~1Cc5x\Cc5x.exe" "%~3%~4" -I"%~1Cc5x" -O%3 -a
@ECHO OFF
IF errorlevel 1 (
exit %errorlevel%
)
@ECHO ON
@ECHO.
@ECHO -NOW DOWNLOADING CODE WITH PK2CMD
"%~1PK2Cmd\pk2cmd" -b"%~1PK2Cmd" -p%2 -f"%~3%~5.hex" -a4.5 -m -r -t -jn
@ECHO OFF
IF errorlevel 1 (
exit %errorlevel%
)
@ECHO ON
|
Add Program Files\7-Zip to path | 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 ..
| PATH=C:\python26;C:\progra~1\7-zip;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 ..
|
Add batch file to test if imports from packages work with package restore | rmdir /S /Q %~dp0packages
msbuild %~dp0src\PaketTestApp\PaketTestApp.csproj
@rem If the assembly is signed then the targets file from the StrongNamer package was included correctly
sn -T %~dp0src\PaketTestApp\bin\Debug\Octokit.dll | |
Use RUN_TESTS target with Visual Studio generator | :<<"::CMDLITERAL"
@echo off
goto :CMDSCRIPT
::CMDLITERAL
#!/bin/bash
set -euo pipefail
IFS=$$'\n\t'
script_dir=$$(cd $$(dirname $$0); pwd -P)
repo_dir=$$(dirname $$script_dir)
build_dir=$$repo_dir/_build
cmake --build $$build_dir --target test
exit $$?
:CMDSCRIPT
@echo off
setlocal
call :Main "%~f0" "%~dp0" "%~dp0.."
goto :eof
:Main
set script_path=%~f1
set script_dir=%~f2
set repo_dir=%~f3
set build_dir=%repo_dir%\_build
cmake --build "%build_dir%" --target test
| :<<"::CMDLITERAL"
@echo off
goto :CMDSCRIPT
::CMDLITERAL
#!/bin/bash
set -euo pipefail
IFS=$$'\n\t'
script_dir=$$(cd $$(dirname $$0); pwd -P)
repo_dir=$$(dirname $$script_dir)
build_dir=$$repo_dir/_build
cmake --build $$build_dir --target test
exit $$?
:CMDSCRIPT
@echo off
setlocal
call :Main "%~f0" "%~dp0" "%~dp0.."
goto :eof
:Main
set script_path=%~f1
set script_dir=%~f2
set repo_dir=%~f3
set build_dir=%repo_dir%\_build
cmake --build "%build_dir%" --target RUN_TESTS
|
Add upgrade script for windows | echo "Upgrading Codebrag 1.2 to 2.0"
java -Dconfig.file=codebrag.conf -cp codebrag.jar com.softwaremill.codebrag.dao.sql.MigrateV1_2ToV2_0 | |
Use tdm-gcc symlink instead of tdm-gcc-4.9.2. | @rem This file is part of C++-Builtem <http://github.com/ufal/cpp_builtem/>.
@rem
@rem Copyright 2014 Institute of Formal and Applied Linguistics, Faculty of
@rem Mathematics and Physics, Charles University in Prague, Czech Republic.
@rem
@rem This Source Code Form is subject to the terms of the Mozilla Public
@rem License, v. 2.0. If a copy of the MPL was not distributed with this
@rem file, You can obtain one at http://mozilla.org/MPL/2.0/.
@set PATH=%~dp0tdm-gcc-4.9.2\bin;%PATH%
@%~dp0mingw32-make\mingw32-make.exe %*
| @rem This file is part of C++-Builtem <http://github.com/ufal/cpp_builtem/>.
@rem
@rem Copyright 2014 Institute of Formal and Applied Linguistics, Faculty of
@rem Mathematics and Physics, Charles University in Prague, Czech Republic.
@rem
@rem This Source Code Form is subject to the terms of the Mozilla Public
@rem License, v. 2.0. If a copy of the MPL was not distributed with this
@rem file, You can obtain one at http://mozilla.org/MPL/2.0/.
@set PATH=%~dp0tdm-gcc\bin;%PATH%
@%~dp0mingw32-make\mingw32-make.exe %*
|
Add database dump script to master branch | :: Start Emotion in Motion in Windows Machine
:: Imports latest dataBase dump (mongod needs to be running)
mongodump --port 27017 -d emotion-in-motion-dev --out ./mongodb-dump
mongodump --port 27017 -d emotion-in-motion-test --out ./mongodb-dump
mongodump --port 27017 -d emotion-in-motion-production --out ./mongodb-dump
:: Start Node (not necessary in EiM terminals)
:: node server.js
pause
| |
Make .bat file work with powershell as well as cmd | @rem = '--*-Perl-*--
@echo off
if "%OS%" == "Windows_NT" goto WinNT
perl6 "%~dp0\%0" %1 %2 %3 %4 %5 %6 %7 %8 %9
goto endofperl
:WinNT
perl6 "%~dp0\%0" %*
if NOT "%COMSPEC%" == "%SystemRoot%\system32\cmd.exe" goto endofperl
if %errorlevel% == 9009 echo You do not have Perl in your PATH.
if errorlevel 1 goto script_failed_so_exit_with_non_zero_val 2>nul
goto endofperl
@rem ';
__END__
:endofperl
| @rem = '--*-Perl-*--
@echo off
if "%OS%" == "Windows_NT" goto WinNT
perl6 "%~dp0\%0" %1 %2 %3 %4 %5 %6 %7 %8 %9
goto endofperl
:WinNT
perl6 "%~dp0\%~n0" %*
if NOT "%COMSPEC%" == "%SystemRoot%\system32\cmd.exe" goto endofperl
if %errorlevel% == 9009 echo You do not have Perl in your PATH.
if errorlevel 1 goto script_failed_so_exit_with_non_zero_val 2>nul
goto endofperl
@rem ';
__END__
:endofperl
|
Remove needless echo; correct directory validation when space present in path | @echo off
setlocal enabledelayedexpansion
set sourcetreepath=SourceTree\SourceTree.exe
if exist "%programfiles%\Atlassian\%sourcetreepath%" (
set sourcetreepath=%programfiles%\Atlassian\%sourcetreepath%
) else if exist "%programfiles(x86)%\Atlassian\%sourcetreepath%" (
set "sourcetreepath=%programfiles(x86)%\Atlassian\%sourcetreepath%"
) else if exist "%localappdata%\%sourcetreepath%" (
set sourcetreepath=%localappdata%\%sourcetreepath%
) else (
echo [Error]: Could not find SourceTree.exe - is it installed? 1>&2
goto :eof
)
set directory=%~f1
if "%directory%" == "" set directory=%CD%
echo %directory%
if exist "%directory%\NUL" (
set directory=%directory%
) else (
set directory=%~dp1
)
pushd %directory%
for /f "delims=" %%i in ('git rev-parse --show-toplevel') do set directory=%%i
git rev-parse --show-toplevel 1> nul 2> nul
if %errorlevel% EQU 0 (
start "" "%sourcetreepath%" -f "%directory:/=\%" log
)
popd
endlocal
| @echo off
setlocal enabledelayedexpansion
set sourcetreepath=SourceTree\SourceTree.exe
if exist "%programfiles%\Atlassian\%sourcetreepath%" (
set sourcetreepath=%programfiles%\Atlassian\%sourcetreepath%
) else if exist "%programfiles(x86)%\Atlassian\%sourcetreepath%" (
set "sourcetreepath=%programfiles(x86)%\Atlassian\%sourcetreepath%"
) else if exist "%localappdata%\%sourcetreepath%" (
set sourcetreepath=%localappdata%\%sourcetreepath%
) else (
echo [Error]: Could not find SourceTree.exe - is it installed? 1>&2
goto :eof
)
set directory=%~f1
if "%directory%" == "" set directory=%CD%
if exist "%directory%\" (
set directory=%directory%
) else (
set directory=%~dp1
)
pushd "%directory%"
for /f "delims=" %%i in ('git rev-parse --show-toplevel') do set directory=%%i
git rev-parse --show-toplevel 1> nul 2> nul
if %errorlevel% EQU 0 (
start "" "%sourcetreepath%" -f "%directory:/=\%"
)
popd
endlocal
|
Add one more simple test | del log.txt
for %%i in (CalcEBNF, ComplexRightNull, EpsilonCycle, ManyAndOne, ManyAndOpt, RightNull, SimpleEpsilon, SimpleOpt, SimpleRightNull, SimpleSome, StackingConflict, TwoEpsilonsMiddle) do (
echo . >> log.txt
echo %%i >> log.txt
..\..\Bin\Release\v40\YC.YaccConstructor.exe -i %%i.yrd -c ExpandMeta ^
-g "RNGLR.EBNF.DFAGenerator -pos int -token int -module RNGLR.EBNF.DFAParser%%i -translate true -table LR -o %%i.yrd.fs" >> log.txt
) | del log.txt
for %%i in (CalcEBNF, Choice, ComplexRightNull, EpsilonCycle, ManyAndOne, ManyAndOpt, RightNull, SimpleEpsilon, SimpleOpt, SimpleRightNull, SimpleSome, StackingConflict, TwoEpsilonsMiddle) do (
echo . >> log.txt
echo %%i >> log.txt
..\..\Bin\Release\v40\YC.YaccConstructor.exe -i %%i.yrd -c ExpandMeta ^
-g "RNGLR.EBNF.DFAGenerator -pos int -token int -module RNGLR.EBNF.DFAParser%%i -translate true -table LR -o %%i.yrd.fs" >> log.txt
) |
Check Windows version is Vista+ on build. | @rem Open "Visual Studio .NET Command Prompt" to run this script
@setlocal
@set LUA=../../luajit-2.0
@set LSCOMPILE=cl /nologo /c /LD /MD /O2 /W3 /D_CRT_SECURE_NO_DEPRECATE /I%LUA%/src
@set LSLINK=link /nologo
%LSCOMPILE% /DLUA_BUILD_AS_DLL /DWIN32_VISTA_ luasys.c sock/sys_sock.c isa/isapi/isapi_dll.c
@if errorlevel 1 goto :END
%LSLINK% /DLL /OUT:sys.dll /DEF:isa/isapi/isapi_dll.def *.obj %LUA%/src/lua*.lib kernel32.lib user32.lib winmm.lib shell32.lib advapi32.lib ws2_32.lib
@if errorlevel 1 goto :END
@del *.obj *.manifest *.lib *.exp
:END
| @rem Open "Visual Studio .NET Command Prompt" to run this script
@setlocal
@set LUA=../../luajit-2.0
@set LSCOMPILE=cl /nologo /c /LD /MD /O2 /W3 /D_CRT_SECURE_NO_DEPRECATE /I%LUA%/src
@set LSLINK=link /nologo
@rem Check Windows Version is Vista+
@ver | findstr /i "Version 6\." > NUL
@IF %ERRORLEVEL% NEQ 0 goto END_VERSION
@set WIN32_VERSION=WIN32_VISTA
@goto END_VERSION
@set WIN32_VERSION=WIN32_COMMON
:END_VERSION
%LSCOMPILE% /DLUA_BUILD_AS_DLL /D%WIN32_VERSION% luasys.c sock/sys_sock.c isa/isapi/isapi_dll.c
@if errorlevel 1 goto :END
%LSLINK% /DLL /OUT:sys.dll /DEF:isa/isapi/isapi_dll.def *.obj %LUA%/src/lua*.lib kernel32.lib user32.lib winmm.lib shell32.lib advapi32.lib ws2_32.lib
@if errorlevel 1 goto :END
@del *.obj *.manifest *.lib *.exp
:END
|
Fix to log the test results by AppVeyor | set CONFIGURATION=%1
set OUTPUT=%2
set OPENCOVER=".\packages\OpenCover.4.6.519\tools\OpenCover.Console.exe"
set TARGET="%VSINSTALLDIR%\Common7\IDE\CommonExtensions\Microsoft\TestWindow\vstest.console.exe"
set TARGET_ARGS=".\ThScoreFileConverterTests\bin\%CONFIGURATION%\ThScoreFileConverterTests.dll"
set FILTER="+[*]* -[ThScoreFileConverterTests]*"
%OPENCOVER% ^
-register:user ^
-target:%TARGET% ^
-targetargs:%TARGET_ARGS% ^
-filter:%FILTER% ^
-output:%OUTPUT%
| set CONFIGURATION=%1
set OUTPUT=%2
set OPENCOVER=.\packages\OpenCover.4.6.519\tools\OpenCover.Console.exe
set TARGET=%VSINSTALLDIR%\Common7\IDE\CommonExtensions\Microsoft\TestWindow\vstest.console.exe
set TARGET_ARGS=.\ThScoreFileConverterTests\bin\%CONFIGURATION%\ThScoreFileConverterTests.dll
set FILTER=+[*]* -[ThScoreFileConverterTests]*
if /i "%APPVEYOR%" == "true" (
set TARGET_ARGS=/logger:Appveyor %TARGET_ARGS%
)
%OPENCOVER% ^
-register:user ^
-target:"%TARGET%" ^
-targetargs:"%TARGET_ARGS%" ^
-filter:"%FILTER%" ^
-output:"%OUTPUT%"
|
Add a win32 env script to run before building so paths are set correctly | set PYTHONPATH=%cd%\inst\lib\python3.4\site-packages
set DXSDK_DIR=C:\Program Files\Microsoft DirectX SDK (June 2010)\
set PATH=%cd%\inst\bin;%PATH% | |
Make batch file exit at the end | SET PATH=C:\Program Files (x86)\Google\Cloud SDK\google-cloud-sdk\bin;%PATH%;
CALL "C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\Tools\VsDevCmd.bat"
git pull --recurse-submodules
git submodule update
msbuild /p:Configuration=Normal
CALL gsutil cp Normal/engine/engine.exe gs://grit-engine/
CALL gsutil cp Normal/launcher/launcher.exe gs://grit-engine/
CALL gsutil cp Normal/extract/extract.exe gs://grit-engine/
CALL gsutil cp Normal/GritXMLConverter/GritXMLConverter.exe gs://grit-engine/
| SET PATH=C:\Program Files (x86)\Google\Cloud SDK\google-cloud-sdk\bin;%PATH%;
CALL "C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\Tools\VsDevCmd.bat"
git pull --recurse-submodules
git submodule update
msbuild /p:Configuration=Normal
CALL gsutil cp Normal/engine/engine.exe gs://grit-engine/
CALL gsutil cp Normal/launcher/launcher.exe gs://grit-engine/
CALL gsutil cp Normal/extract/extract.exe gs://grit-engine/
CALL gsutil cp Normal/GritXMLConverter/GritXMLConverter.exe gs://grit-engine/
exit
|
Fix VS path issue on appveyor | @call "C:\Program Files\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvars64.bat"
SET PATH=%PROJECT_PATH%\3rdparty\bin;%MYSQL_CONNECTOR_PATH%\lib;%MYSQL_PATH%\bin;%PYTHON_PATH%\Scripts;C:\OpenSSL-v111-Win64\bin;C:\Libraries\boost_1_67_0;%PATH%
cp "%MYSQL_CONNECTOR_PATH%\lib\libmysql.dll" "%PROJECT_PATH%\build\bin\"
cmake -GNinja -DCMAKE_BUILD_TYPE=%CONFIGURATION% ..
cmake --build . --config %CONFIGURATION%
| @call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvars64.bat"
SET PATH=%PROJECT_PATH%\3rdparty\bin;%MYSQL_CONNECTOR_PATH%\lib;%MYSQL_PATH%\bin;%PYTHON_PATH%\Scripts;C:\OpenSSL-v111-Win64\bin;C:\Libraries\boost_1_67_0;%PATH%
cp "%MYSQL_CONNECTOR_PATH%\lib\libmysql.dll" "%PROJECT_PATH%\build\bin\"
cmake -GNinja -DCMAKE_BUILD_TYPE=%CONFIGURATION% ..
cmake --build . --config %CONFIGURATION%
|
Remove old Py2/3 setup flag Added copying of examples from SVN source, and cleanup any pycs that might by lying around | set MAKING_PYPARSING_RELEASE=1
copy ..\sourceforge\svn\trunk\src\CHANGES .
copy ..\sourceforge\svn\trunk\src\setup.py .
copy ..\sourceforge\svn\trunk\src\pyparsing.py .
copy ..\sourceforge\svn\trunk\src\MANIFEST.in_bdist .
copy ..\sourceforge\svn\trunk\src\MANIFEST.in_src .
rmdir build
rmdir dist
copy/y MANIFEST.in_src MANIFEST.in
if exist MANIFEST del MANIFEST
python setup.py sdist --formats=gztar,zip
copy/y MANIFEST.in_bdist MANIFEST.in
if exist MANIFEST del MANIFEST
python setup.py bdist_wininst --target-version=2.6 --plat-name=win32
python setup.py bdist_wininst --target-version=2.7 --plat-name=win32
python setup.py bdist_wininst --target-version=3.0 --plat-name=win32
python setup.py bdist_wininst --target-version=3.1 --plat-name=win32
python setup.py bdist_wininst --target-version=3.2 --plat-name=win32
python setup.py bdist_wininst --target-version=3.3 --plat-name=win32
set MAKING_PYPARSING_RELEASE=
| copy ..\sourceforge\svn\trunk\src\CHANGES .
copy ..\sourceforge\svn\trunk\src\setup.py .
copy ..\sourceforge\svn\trunk\src\pyparsing.py .
copy ..\sourceforge\svn\trunk\src\MANIFEST.in_bdist .
copy ..\sourceforge\svn\trunk\src\MANIFEST.in_src .
copy ..\sourceforge\svn\trunk\src\examples\* .\examples\
del .\examples\*.pyc
rmdir build
rmdir dist
copy/y MANIFEST.in_src MANIFEST.in
if exist MANIFEST del MANIFEST
python setup.py sdist --formats=gztar,zip
copy/y MANIFEST.in_bdist MANIFEST.in
if exist MANIFEST del MANIFEST
python setup.py bdist_wininst --target-version=2.6 --plat-name=win32
python setup.py bdist_wininst --target-version=2.7 --plat-name=win32
python setup.py bdist_wininst --target-version=3.0 --plat-name=win32
python setup.py bdist_wininst --target-version=3.1 --plat-name=win32
python setup.py bdist_wininst --target-version=3.2 --plat-name=win32
python setup.py bdist_wininst --target-version=3.3 --plat-name=win32
|
Add batch file for running subset of tests on JDK 1.1 | ' Batch file for running tests on JDK 1.1
'
SET CLASSPATH=\java\junit3.8.1\junit.jar;\java\crimson-1.1.3\crimson.jar;\java\jakarta-oro-2.0.8\jakarta-oro-2.0.8.jar;..\dist\classes;classes;resources
java junit.textui.TestRunner org.apache.log4j.CoreTestSuite
java junit.textui.TestRunner org.apache.log4j.MinimumTestCase
java junit.textui.TestRunner org.apache.log4j.LoggerTestCase
java junit.textui.TestRunner org.apache.log4j.xml.DOMTestCase
java junit.textui.TestRunner org.apache.log4j.xml.CustomLevelTestCase
java junit.textui.TestRunner org.apache.log4j.customLogger.XLoggerTestCase
del classes\log4j.xml
del classes\log4j.properties
java junit.textui.TestRunner org.apache.log4j.defaultInit.TestCase1
copy input\xml\defaultInit.xml classes\log4j.xml
java junit.textui.TestRunner org.apache.log4j.defaultInit.TestCase2
del classes\log4j.xml
copy input\xml\defaultInit.xml classes\log4j.xml
java -Dlog4j.defaultInitOverride=true junit.textui.TestRunner org.apache.log4j.defaultInit.TestCase1
del classes\log4j.xml
copy input\defaultInit3.properties classes\log4j.properties
java junit.textui.TestRunner org.apache.log4j.defaultInit.TestCase3
del classes\log4j.properties
copy input\xml\defaultInit.xml classes\log4j.xml
copy input\defaultInit3.properties classes\log4j.properties
java junit.textui.TestRunner org.apache.log4j.defaultInit.TestCase4
del classes\log4j.xml
del classes\log4j.properties
java junit.textui.TestRunner org.apache.log4j.xml.XMLLayoutTestCase
java junit.textui.TestRunner org.apache.log4j.AsyncAppenderTestCase
java junit.textui.TestRunner org.apache.log4j.helpers.OptionConverterTestCase
java junit.textui.TestRunner org.apache.log4j.helpers.BoundedFIFOTestCase
java junit.textui.TestRunner org.apache.log4j.helpers.CyclicBufferTestCase
java junit.textui.TestRunner org.apache.log4j.or.ORTestCase
java junit.textui.TestRunner org.apache.log4j.varia.LevelMatchFilterTestCase
java junit.textui.TestRunner org.apache.log4j.helpers.PatternParserTestCase
java junit.textui.TestRunner org.apache.log4j.PatternLayoutTestCase
java junit.textui.TestRunner org.apache.log4j.DRFATestCase
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.