text
stringlengths
0
834k
:: Check dependencies
docker version > NUL 2>&1
IF %ERRORLEVEL% NEQ 0 GOTO MISSING_DOCKER
git version > NUL 2>&1
IF %ERRORLEVEL% NEQ 0 GOTO MISSING_GIT
:: Build the container image
git log --pretty=format:%%H -n 1 > tmpfile.tmp
SET /P COMMIT=<tmpfile.tmp
DEL tmpfile.tmp
SET DOCKER_LABEL2=Commit=%COMMIT%
rmdir /s /q out\docker
mkdir out\docker\src
mkdir out\docker\build
xcopy /s src\* out\docker\src\
xcopy /s public\* out\docker\public\
copy package.json out\docker\
copy scripts\docker\.dockerignore out\docker\
copy scripts\docker\Dockerfile out\docker\
copy scripts\docker\content\run.sh out\docker\
copy scripts\docker\content\nginx.conf out\docker\
cd out\docker\
docker build --squash --compress --tag %DOCKER_TAG% --label ""%DOCKER_LABEL2%"" .
IF %ERRORLEVEL% NEQ 0 GOTO FAIL
:: - - - - - - - - - - - - - -
goto :END
:MISSING_DOCKER
echo ERROR: 'docker' command not found.
echo Install Docker and make sure the 'docker' command is in the PATH.
echo Docker installation: https://www.docker.com/community-edition#/download
exit /B 1
:MISSING_GIT
echo ERROR: 'git' command not found.
echo Install Git and make sure the 'git' command is in the PATH.
echo Git installation: https://git-scm.com
exit /B 1
:FAIL
echo Command failed
endlocal
exit /B 1
:END
endlocal
",27.3731343284,86,0.6613958561
219391,d2e2949b24b428dc2c4229f1db1d710b5e6d0339,28,bat,Batchfile,Run.bat,NicoM1/BookScrape,05fb5ca935a7b905096dd32d09f96cec1675f706,['Unlicense' 'MIT'],1.0,2021-02-17T12:09:35.000Z,2021-02-17T12:09:35.000Z,Run.bat,NicoM1/BookScrape,05fb5ca935a7b905096dd32d09f96cec1675f706,['Unlicense' 'MIT'],,,,Run.bat,NicoM1/BookScrape,05fb5ca935a7b905096dd32d09f96cec1675f706,['Unlicense' 'MIT'],,,,"@echo off
bin\Main.exe
pause",9.3333333333,12,0.7857142857
219392,d2e2ac75d7f8caa67d159d7a8916d5fe3e8bc21b,512,bat,Batchfile,deploy.bat,linuxgurugamer/PAPIPlugin,280b9939f114ae64b1492d79cb9af581ce5e9b18,['MIT'],,,,deploy.bat,linuxgurugamer/PAPIPlugin,280b9939f114ae64b1492d79cb9af581ce5e9b18,['MIT'],1.0,2020-03-06T11:51:09.000Z,2020-03-06T12:20:11.000Z,deploy.bat,linuxgurugamer/PAPIPlugin,280b9939f114ae64b1492d79cb9af581ce5e9b18,['MIT'],,,,"
@echo off
rem H is the destination game folder
rem GAMEDIR is the name of the mod folder (usually the mod name)
rem GAMEDATA is the name of the local GameData
rem VERSIONFILE is the name of the version file, usually the same as GAMEDATA,
rem but not always
set H=%KSPDIR%
set GAMEDIR=PAPIPlugin
set GAMEDATA=""GameData""
set VERSIONFILE=%GAMEDIR%.version
copy /Y ""%1%2"" ""%GAMEDATA%\%GAMEDIR%\Plugins""
copy /Y %VERSIONFILE% %GAMEDATA%\%GAMEDIR%
xcopy /y /s /I %GAMEDATA%\%GAMEDIR% ""%H%\GameData\%GAMEDIR%""
",25.6,78,0.740234375
219393,d2e2df8d776b8f76f950de9573c005785903e850,234,bat,Batchfile,installer/version.bat,inria-muse/hostview-win,db890b83956081d98e64005873eb2e7e4c6891e6,['MIT'],1.0,2018-07-22T16:39:08.000Z,2018-07-22T16:39:08.000Z,installer/version.bat,inria-muse/hostview-win,db890b83956081d98e64005873eb2e7e4c6891e6,['MIT'],,,,installer/version.bat,inria-muse/hostview-win,db890b83956081d98e64005873eb2e7e4c6891e6,['MIT'],1.0,2021-03-08T06:59:28.000Z,2021-03-08T06:59:28.000Z,"@echo off
setlocal ENABLEDELAYEDEXPANSION
set l=%1
set c=0
set line=0
for /f ""delims="" %%1 in ('type ..\include\product.h') do (
set /a c+=1
if ""!c!"" equ ""%l%"" set line=%%1%
)
for /f ""tokens=3"" %%G IN (""%line%"") DO echo|set /p=%%G",19.5,58,0.594017094
219394,d2e2e976bd7a14f3c1fd3278011f00e4224ed4b0,66,bat,Batchfile,UVReflectometer.bat,wojczy/UV-Reflectometer,63921688881a867de748cf4c2aafc9dcef956e95,['MIT'],,,,UVReflectometer.bat,wojczy/UV-Reflectometer,63921688881a867de748cf4c2aafc9dcef956e95,['MIT'],,,,UVReflectometer.bat,wojczy/UV-Reflectometer,63921688881a867de748cf4c2aafc9dcef956e95,['MIT'],,,,"""C:\Program Files\scilab-5.5.2\bin\WScilex"" -f UVReflectometer.sce",66.0,66,0.7727272727
219395,d2e32183f1539d97dbade9b6a05cd5f0ceec8d65,5108,bat,Batchfile,CleanBinaryFiles.bat,Synergex/HarmonyCoreProjectTemplates,c387f97e44234e3d0ea8e6a6a535e95248fd2853,['BSD-2-Clause'],,,,CleanBinaryFiles.bat,Synergex/HarmonyCoreProjectTemplates,c387f97e44234e3d0ea8e6a6a535e95248fd2853,['BSD-2-Clause'],2.0,2020-04-29T19:24:09.000Z,2020-07-22T22:01:54.000Z,CleanBinaryFiles.bat,Synergex/HarmonyCoreProjectTemplates,c387f97e44234e3d0ea8e6a6a535e95248fd2853,['BSD-2-Clause'],2.0,2019-02-25T21:53:12.000Z,2020-06-02T23:45:29.000Z,"@echo off
pushd %~dp0
pushd ProjectTemplates\dotnet-new-efprovider-synergy
if exist obj\. rd /s /q obj
if exist packages\. rd /s /q packages
if exist Repository\bin\. rd /s /q Repository\bin
if exist Repository\obj\. rd /s /q Repository\obj
if exist SynergyEfProvider\.intellisense\. rd /s /q SynergyEfProvider\.intellisense