text stringlengths 0 834k |
|---|
rem We don't even bother with UNC paths. |
set JAVA_FRIENDLY_HOME_1=/!ACTIVATOR_HOME:\=/! |
set JAVA_FRIENDLY_HOME=/!JAVA_FRIENDLY_HOME_1: =%%20! |
rem Checks if the command contains spaces to know if it should be wrapped in quotes or not |
set NON_SPACED_CMD=%_JAVACMD: =% |
if ""%_JAVACMD%""==""%NON_SPACED_CMD%"" %_JAVACMD% %DEBUG_OPTS% %MEM_OPTS% %ACTIVATOR_OPTS% %SBT_OPTS% %_JAVA_OPTS% ""-Dactivator.home=%JAVA_FRIENDLY_HOME%"" -jar ""%ACTIVATOR_HOME%\libexec\%ACTIVATOR_LAUNCH_JAR%"" %CMDS% |
if NOT ""%_JAVACMD%""==""%NON_SPACED_CMD%"" ""%_JAVACMD%"" %DEBUG_OPTS% %MEM_OPTS% %ACTIVATOR_OPTS% %SBT_OPTS% %_JAVA_OPTS% ""-Dactivator.home=%JAVA_FRIENDLY_HOME%"" -jar ""%ACTIVATOR_HOME%\libexec\%ACTIVATOR_LAUNCH_JAR%"" %CMDS% |
if ERRORLEVEL 1 goto error |
goto end |
:error |
set ERROR_CODE=1 |
:end |
@endlocal |
exit /B %ERROR_CODE% |
",32.3734939759,219,0.6924699169 |
8,d0011e1fda3c55282b523a67c32b93585280386f,498,bat,Batchfile,087_vox_paging/build.bat,capnramses/gfx_expmts,f32f6f50a832383f24eccc43918069e51e6382b5,['Apache-2.0'],46.0,2019-10-23T01:44:21.000Z,2021-06-28T07:48:57.000Z,087_vox_paging/build.bat,capnramses/gfx_expmts,f32f6f50a832383f24eccc43918069e51e6382b5,['Apache-2.0'],,,,087_vox_paging/build.bat,capnramses/gfx_expmts,f32f6f50a832383f24eccc43918069e51e6382b5,['Apache-2.0'],2.0,2020-06-01T02:12:41.000Z,2021-04-13T16:53:47.000Z,"REM Compile GLEW with fewer warnings |
gcc -Wno-attributes -g -o glew.o -c ..\common\src\GL\glew.c -I ..\common\include\ -DGLEW_STATIC |
REM Compile main program with strict warnings |
gcc -g -Wfatal-errors -Wall -Wextra -pedantic -DGLEW_STATIC ^ |
main.c voxels.c apg_ply.c apg_pixfont.c gl_utils.c input.c camera.c diamond_square.c ^ |
-I ..\common\include\ -I ..\common\include\stb\ -L ..\common\win64_gcc\ ^ |
glew.o ..\common\win64_gcc\libglfw3dll.a ^ |
-lm -lOpenGL32 |
copy ..\common\win64_gcc\glfw3.dll .\",49.8,95,0.7389558233 |
9,d0012f6d24e6643bc659a52f6f579cda16b998ad,1240,bat,Batchfile,pipeIf.bat,NKLSoft-PC/Scriptings,0249cbed58e8b235b1c60842f64e9053291621ad,['MIT'],,,,pipeIf.bat,NKLSoft-PC/Scriptings,0249cbed58e8b235b1c60842f64e9053291621ad,['MIT'],,,,pipeIf.bat,NKLSoft-PC/Scriptings,0249cbed58e8b235b1c60842f64e9053291621ad,['MIT'],,,,":: http://www.dostips.com/forum/viewtopic.php?f=3&t=5539 |
:: |
:: when something is piped to IF command the spaces before first operand are eaten (check the link above) |
:: While I've only found the problem - the root cause and the solution were found by jeb |
@echo off |
rem prints 1 is geq than 1 |
echo.|if defined 1 geq 1 echo 1 is geq than 1 |
rem prints 2 is gtr than 100 |
echo.|if defined 2 gtr 100 echo 2 is gtr than 100 |
rem prints 1 is gteater than 100 |
echo.|if 1 gtr gtr 100 echo 1 is gteater than 100 |
rem prints 100 is gteater and the same time less than 100 |
echo.|if 100 lss gtr 100 echo 100 is gteater and the same time less than 100 |
:: the root cause is visible by executing the following line in command prompt (found by jeb): |
::C:\>echo pipe | if defined X lss Y echo %^cmdcmdline% |
:: In both cases - befora and after swalowing of the spaces syntax errors are detected (that's why the examples above works |
:: - a second comparison operator is added) |
:: the solution (proposed by jeb): |
@echo off |
set ""myLine=if 1 lss 2 more"" |
echo pipe | ( %%myLine%%) |
:: If command dows now swallow the pipe and passed string can be used both in IF and ELSE commands. |
",36.4705882353,124,0.6927419355 |
10,d0013e0f21b5b0f5920cea4f3b296695c324fa9f,148,cmd,Batchfile,ProcessesApi/build.cmd,LBHackney-IT/processes-api,6809af698fce0aee9887c2bae5c457cc4ee53898,['MIT'],,,,ProcessesApi/build.cmd,LBHackney-IT/processes-api,6809af698fce0aee9887c2bae5c457cc4ee53898,['MIT'],2.0,2021-12-20T11:15:33.000Z,2022-03-21T12:22:18.000Z,ProcessesApi/build.cmd,LBHackney-IT/processes-api,6809af698fce0aee9887c2bae5c457cc4ee53898,['MIT'],,,,"dotnet restore |
dotnet lambda package --configuration release --framework netcoreapp3.1 --output-package bin/release/netcoreapp3.1/processes-api.zip |
",49.3333333333,132,0.8310810811 |
11,d001594098d6a6fbeec014bbb7bdaf68b6ec8301,11743,cmd,Batchfile,release/src-rt/linux/linux-2.6/lib/.ts_bm.o.cmd,ECRS/Asus-RT-N16,11d24474c7decf50a1c8b1111c5d2fed818e2dab,['FSFAP'],,,,release/src-rt/linux/linux-2.6/lib/.ts_bm.o.cmd,ECRS/Asus-RT-N16,11d24474c7decf50a1c8b1111c5d2fed818e2dab,['FSFAP'],1.0,2018-08-21T03:43:31.000Z,2018-08-21T03:43:31.000Z,release/src-rt/linux/linux-2.6/lib/.ts_bm.o.cmd,ECRS/Asus-RT-N16,11d24474c7decf50a1c8b1111c5d2fed818e2dab,['FSFAP'],1.0,2020-03-08T12:52:49.000Z,2020-03-08T12:52:49.000Z,"cmd_lib/ts_bm.o := mipsel-uclibc-gcc -Wp,-MD,lib/.ts_bm.o.d -nostdinc -isystem /home/astclair/AsusRT-N16/trunk/tomato/tools/brcm/K26/hndtools-mipsel-uclibc-4.2.4/bin/../lib/gcc/mipsel-linux-uclibc/4.2.4/include -D__KERNEL__ -Iinclude -include include/linux/autoconf.h -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Wno-format-security -fno-delete-null-pointer-checks -I/home/astclair/AsusRT-N16/trunk/tomato/release/src-rt/include -DBCMDRIVER -Dlinux -O2 -ffunction-sections -mno-check-zero-division -mabi=32 -G 0 -mno-abicalls -fno-pic -pipe -msoft-float -ggdb -ffreestanding -march=mips32r2 -Wa,-mips32r2 -Wa,--trap -Iinclude/asm-mips/mach-generic -fomit-frame-pointer -fno-stack-protector -funit-at-a-time -Wdeclaration-after-statement -Wno-pointer-sign -fno-strict-overflow -DHNDCTF -DCTFPOOL -DMODULE -mlong-calls -fno-common -D""KBUILD_STR(s)=\#s"" -D""KBUILD_BASENAME=KBUILD_STR(ts_bm)"" -D""KBUILD_MODNAME=KBUILD_STR(ts_bm)"" -c -o lib/ts_bm.o lib/ts_bm.c |
deps_lib/ts_bm.o := \ |
lib/ts_bm.c \ |
include/linux/kernel.h \ |
$(wildcard include/config/preempt/voluntary.h) \ |
$(wildcard include/config/debug/spinlock/sleep.h) \ |
$(wildcard include/config/printk.h) \ |
$(wildcard include/config/numa.h) \ |
/home/astclair/AsusRT-N16/trunk/tomato/tools/brcm/K26/hndtools-mipsel-uclibc-4.2.4/bin/../lib/gcc/mipsel-linux-uclibc/4.2.4/include/stdarg.h \ |
include/linux/linkage.h \ |
include/asm/linkage.h \ |
include/linux/stddef.h \ |
include/linux/compiler.h \ |
$(wildcard include/config/enable/must/check.h) \ |
include/linux/compiler-gcc4.h \ |
$(wildcard include/config/forced/inlining.h) \ |
include/linux/compiler-gcc.h \ |
include/linux/types.h \ |
$(wildcard include/config/uid16.h) \ |
$(wildcard include/config/lbd.h) \ |
$(wildcard include/config/lsf.h) \ |
$(wildcard include/config/resources/64bit.h) \ |
include/linux/posix_types.h \ |
include/asm/posix_types.h \ |
include/asm/sgidefs.h \ |
include/asm/types.h \ |
$(wildcard include/config/highmem.h) \ |
$(wildcard include/config/64bit/phys/addr.h) \ |
$(wildcard include/config/64bit.h) \ |
include/linux/bitops.h \ |
include/asm/bitops.h \ |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.