code
stringlengths 3
1.03M
| repo_name
stringlengths 5
84
| path
stringlengths 4
233
| language
stringclasses 1
value | license
stringclasses 15
values | size
int32 3
1.03M
|
---|---|---|---|---|---|
@echo off
if "%OS%" == "Windows_NT" setlocal
rem ---------------------------------------------------------------------------
rem Entry point of ${project.artifactId}
rem
rem Environment Variable Prequisites ${undefined}
rem
rem
rem ${project.scriptName}_OPTS (Optional) Java runtime options used when
rem command is executed.
rem
rem JAVA_HOME Must point at your Java Development Kit installation
rem or your Java Runtime Environment installation
rem
rem
rem ---------------------------------------------------------------------------
rem Identification of installation directory
set ${project.scriptName}_HOME=%~dp0.\..
rem Get standard environment variables
if exist "%${project.scriptName}_HOME%\bin\setenv.bat" call "%${project.scriptName}_HOME%\bin\setenv.bat"
rem Make sure prerequisite environment variables are set
if not "%JAVA_EXEC%" == "" goto run
if not "%JAVA_HOME%" == "" goto gotJavaHome
set JAVA_EXEC=java
goto run
:gotJavaHome
set JAVA_EXEC="%JAVA_HOME%\bin\java"
goto run
:run
%JAVA_EXEC% %${project.scriptName}_OPTS% -jar "%${project.scriptName}_HOME%\${project.build.jar-path}\${project.groupId}\${project.build.finalName.proc}.jar" %*
if errorlevel 1 pause
if "%OS%" == "Windows_NT" endlocal | mypsycho/JDeployer | org.mypsycho.rrun/assembly/target/assembly-runtime/tmp/main/templates/bin/rproc.bat | bat | lgpl-2.1 | 1,306 |
del addfunction.lrs
..\..\..\..\..\..\tools\lazres.exe addfunction.res TlrAddFunctionLibrary.xpm
| michalgw/LazReportPS | source/addons/addfunction/images/mk_res.bat | bat | lgpl-2.1 | 97 |
@ECHO OFF
TITLE LessUACRunner Admin
COLOR 47
REM BatchGotAdmin: https://searchcode.com/codesearch/view/45808546/
REM Check for permissions
>nul 2>&1 "%SYSTEMROOT%\system32\cacls.exe" "%SYSTEMROOT%\system32\config\system"
IF '%ERRORLEVEL%' NEQ '0' (
ECHO Requesting administrative privileges...
GOTO UAC_PROMPT
) else (
GOTO ADMIN
)
:UAC_PROMPT
ECHO Set UAC = CreateObject^("Shell.Application"^) > "%temp%\getadmin.vbs"
ECHO UAC.ShellExecute "%~s0", "", "", "runas", 1 >> "%temp%\getadmin.vbs"
"%TEMP%\getadmin.vbs"
EXIT /B
:ADMIN
pause
IF EXIST "%temp%\getadmin.vbs" ( DEL "%temp%\getadmin.vbs" )
PUSHD "%CD%"
CD /D "%~dp0"
CD %CD%
%COMSPEC% /k "LessUACRunnerConsole.exe" -help
EXIT
:END
| jalvarez54/LessUACRunner | src-rss/LessUACRunnerAdmin.bat | bat | lgpl-3.0 | 720 |
@ECHO OFF
REM Command file for Sphinx documentation
if "%SPHINXBUILD%" == "" (
set SPHINXBUILD=sphinx-build
)
set BUILDDIR=gh_pages_build
set ALLSPHINXOPTS=-d %BUILDDIR%/doctrees %SPHINXOPTS% source
set I18NSPHINXOPTS=%SPHINXOPTS% source
if NOT "%PAPER%" == "" (
set ALLSPHINXOPTS=-D latex_paper_size=%PAPER% %ALLSPHINXOPTS%
set I18NSPHINXOPTS=-D latex_paper_size=%PAPER% %I18NSPHINXOPTS%
)
if "%1" == "" goto help
if "%1" == "help" (
:help
echo.Please use `make ^<target^>` where ^<target^> is one of
echo. html to make standalone HTML files
echo. dirhtml to make HTML files named index.html in directories
echo. singlehtml to make a single large HTML file
echo. pickle to make pickle files
echo. json to make JSON files
echo. htmlhelp to make HTML files and a HTML help project
echo. qthelp to make HTML files and a qthelp project
echo. devhelp to make HTML files and a Devhelp project
echo. epub to make an epub
echo. latex to make LaTeX files, you can set PAPER=a4 or PAPER=letter
echo. text to make text files
echo. man to make manual pages
echo. texinfo to make Texinfo files
echo. gettext to make PO message catalogs
echo. changes to make an overview over all changed/added/deprecated items
echo. linkcheck to check all external links for integrity
echo. doctest to run all doctests embedded in the documentation if enabled
goto end
)
if "%1" == "clean" (
for /d %%i in (%BUILDDIR%\*) do rmdir /q /s %%i
del /q /s %BUILDDIR%\*
goto end
)
if "%1" == "html" (
%SPHINXBUILD% -b html %ALLSPHINXOPTS% %BUILDDIR%/html
if errorlevel 1 exit /b 1
echo.
echo.Build finished. The HTML pages are in %BUILDDIR%/html.
goto end
)
if "%1" == "dirhtml" (
%SPHINXBUILD% -b dirhtml %ALLSPHINXOPTS% %BUILDDIR%/dirhtml
if errorlevel 1 exit /b 1
echo.
echo.Build finished. The HTML pages are in %BUILDDIR%/dirhtml.
goto end
)
if "%1" == "singlehtml" (
%SPHINXBUILD% -b singlehtml %ALLSPHINXOPTS% %BUILDDIR%/singlehtml
if errorlevel 1 exit /b 1
echo.
echo.Build finished. The HTML pages are in %BUILDDIR%/singlehtml.
goto end
)
if "%1" == "pickle" (
%SPHINXBUILD% -b pickle %ALLSPHINXOPTS% %BUILDDIR%/pickle
if errorlevel 1 exit /b 1
echo.
echo.Build finished; now you can process the pickle files.
goto end
)
if "%1" == "json" (
%SPHINXBUILD% -b json %ALLSPHINXOPTS% %BUILDDIR%/json
if errorlevel 1 exit /b 1
echo.
echo.Build finished; now you can process the JSON files.
goto end
)
if "%1" == "htmlhelp" (
%SPHINXBUILD% -b htmlhelp %ALLSPHINXOPTS% %BUILDDIR%/htmlhelp
if errorlevel 1 exit /b 1
echo.
echo.Build finished; now you can run HTML Help Workshop with the ^
.hhp project file in %BUILDDIR%/htmlhelp.
goto end
)
if "%1" == "qthelp" (
%SPHINXBUILD% -b qthelp %ALLSPHINXOPTS% %BUILDDIR%/qthelp
if errorlevel 1 exit /b 1
echo.
echo.Build finished; now you can run "qcollectiongenerator" with the ^
.qhcp project file in %BUILDDIR%/qthelp, like this:
echo.^> qcollectiongenerator %BUILDDIR%\qthelp\RagnarokPy32.qhcp
echo.To view the help file:
echo.^> assistant -collectionFile %BUILDDIR%\qthelp\RagnarokPy32.ghc
goto end
)
if "%1" == "devhelp" (
%SPHINXBUILD% -b devhelp %ALLSPHINXOPTS% %BUILDDIR%/devhelp
if errorlevel 1 exit /b 1
echo.
echo.Build finished.
goto end
)
if "%1" == "epub" (
%SPHINXBUILD% -b epub %ALLSPHINXOPTS% %BUILDDIR%/epub
if errorlevel 1 exit /b 1
echo.
echo.Build finished. The epub file is in %BUILDDIR%/epub.
goto end
)
if "%1" == "latex" (
%SPHINXBUILD% -b latex %ALLSPHINXOPTS% %BUILDDIR%/latex
if errorlevel 1 exit /b 1
echo.
echo.Build finished; the LaTeX files are in %BUILDDIR%/latex.
goto end
)
if "%1" == "text" (
%SPHINXBUILD% -b text %ALLSPHINXOPTS% %BUILDDIR%/text
if errorlevel 1 exit /b 1
echo.
echo.Build finished. The text files are in %BUILDDIR%/text.
goto end
)
if "%1" == "man" (
%SPHINXBUILD% -b man %ALLSPHINXOPTS% %BUILDDIR%/man
if errorlevel 1 exit /b 1
echo.
echo.Build finished. The manual pages are in %BUILDDIR%/man.
goto end
)
if "%1" == "texinfo" (
%SPHINXBUILD% -b texinfo %ALLSPHINXOPTS% %BUILDDIR%/texinfo
if errorlevel 1 exit /b 1
echo.
echo.Build finished. The Texinfo files are in %BUILDDIR%/texinfo.
goto end
)
if "%1" == "gettext" (
%SPHINXBUILD% -b gettext %I18NSPHINXOPTS% %BUILDDIR%/locale
if errorlevel 1 exit /b 1
echo.
echo.Build finished. The message catalogs are in %BUILDDIR%/locale.
goto end
)
if "%1" == "changes" (
%SPHINXBUILD% -b changes %ALLSPHINXOPTS% %BUILDDIR%/changes
if errorlevel 1 exit /b 1
echo.
echo.The overview file is in %BUILDDIR%/changes.
goto end
)
if "%1" == "linkcheck" (
%SPHINXBUILD% -b linkcheck %ALLSPHINXOPTS% %BUILDDIR%/linkcheck
if errorlevel 1 exit /b 1
echo.
echo.Link check complete; look for any errors in the above output ^
or in %BUILDDIR%/linkcheck/output.txt.
goto end
)
if "%1" == "doctest" (
%SPHINXBUILD% -b doctest %ALLSPHINXOPTS% %BUILDDIR%/doctest
if errorlevel 1 exit /b 1
echo.
echo.Testing of doctests in the sources finished, look at the ^
results in %BUILDDIR%/doctest/output.txt.
goto end
)
:end
| Fireforge/RagnarokPy3.2 | sphinx/make.bat | bat | lgpl-3.0 | 5,126 |
echo "Starting Jetty"
echo "Jetty home: %JETTY_HOME%"
echo "Web apps are in: %WEB_APPS%"
IF "%1"=="" GOTO start-jetty
echo "Coping %1 to %WEB_APPS%"
xcopy %1 %WEB_APPS%
:start-jetty
cd %JETTY_HOME%
"%JAVA_HOME%/bin/java" -jar %JETTY_HOME%/start.jar | gamlerhart/jetty-spoon | run-jetty-bat.bat | bat | apache-2.0 | 254 |
@echo off
CALL mklink /H "game.config" "../game.config"
CALL mklink /H "user.config" "../user.config"
CALL mklink /H "default.config" "../default.config"
CALL mklink /J "res" "../res"
CALL mklink /J "lua" "../external/GamePlay-deps/lua-5.2.3/src"
CALL mklink /H "pnglibconf.h" "../external/GamePlay-deps/png-1.6.15/scripts/pnglibconf.h.prebuilt"
CALL mklink /H "zconf.h" "../external/GamePlay-deps/zlib-1.2.8/zconf.h.included"
call :make_links Debug
call :make_links Release
goto :exit
:make_links
set CONFIG_BIN_DIR=bin
mkdir "%CONFIG_BIN_DIR%"
CALL mklink /H "%CONFIG_BIN_DIR%/OpenAL.dll" "../external/GamePlay/bin/windows/OpenAL.dll"
CALL mklink /H "%CONFIG_BIN_DIR%/game.config" "../game.config"
CALL mklink /H "%CONFIG_BIN_DIR%/user.config" "../user.config"
CALL mklink /H "%CONFIG_BIN_DIR%/default.config" "../default.config"
CALL mklink /J "%CONFIG_BIN_DIR%/res" "../res"
goto:eof
:exit
| louis-mclaughlin/platformer | raw/automation/mklink.bat | bat | apache-2.0 | 898 |
@echo off
::Create 3 files. If they already exist, it will delete them and create new empty ones.
copy /y nul "utils\intermediate.py"
copy /y nul "utils\intermediatebis.py"
copy /y nul "utils\intermediateTer.py"
copy /y nul "Readme.txt"
::write a message so that user knows what is going on, until the end of the script.
echo please wait until the brain has been parsed
setlocal
::variables declaration
set /a passivewheel=0
set /a activewheel=0
set /a activewheg=0
set /a parametricbrick=0
set CurrentDir=%CD%
::We need to store what was the previous Type and parameter that has been parsed from finalBestInd_GP.txt
set PreviousType=
set PreviousRadius=
set PreviousLength=
set PreviousInclAngle=
set PreviousRotAngle=
echo sys.path.append("%CurrentDir%\utils\Mod") > utils\intermediateTer.py
::loop for each Lines of the someBody1.txt and get the two first part of that Line to be analysed in 'process' function
for /F "tokens=1-7" %%i in (someBody1.txt) do call :process %%i %%j %%k %%l %%m %%n %%o
::show numbers of each Parametric Part, in Readme.txt file. we may add Parameters for each part in the future...
echo Readme file >> Readme.txt
echo Here we parse the someBody1.txt file to get the values of each parametric part >> Readme.txt
::Test whether there are some passivewheel
if "%passivewheel%"=="0" (
echo There is No passivewheel >> Readme.txt
) else (
echo There is/are %passivewheel% passiveWheels >> Readme.txt )
::Test whether there are some activewheel
if "%passivewheel%"=="0" (
echo There is No activewheel >> Readme.txt
) else (
echo There is/are %activewheel% activeWheels >> Readme.txt )
::Test whether there are some activewheg
if "%activewheg%"=="0" (
echo There is No activewheg >> Readme.txt
) else (
echo There is/are %activewheg% activeWHEG >> Readme.txt )
::Test whether there are some parametricbrick
if "%parametricbrick%"=="0" (
echo There is No parametricbrick >> Readme.txt
) else (
echo There is/are %parametricbrick% parametricBRICK >> Readme.txt )
endlocal
:process
set VAR1=%1
set VAR2=%2
set VAR5=%5
set VAR6=%6
set VAR7=%7
::Counter number of passivewheels, activewheels, activewhegs and parametricbricks
if "%VAR2%"=="PassiveWheel" (
set /a passivewheel=%passivewheel%+1
set PreviousType=%VAR2:~0,1%
set PreviousRadius=%VAR5%
) else if "%VAR2%"=="ActiveWheel" (
set /a activewheel=%activewheel%+1
set PreviousType=%VAR2:~0,1%
set PreviousRadius=%VAR5%
) else if "%VAR2%"=="ActiveWheg" (
set /a activewheg=%activewheg%+1
set PreviousType=%VAR2:~0,1%
set PreviousRadius=%VAR5%
) else if "%VAR2%"=="ParametricJoint" (
set /a parametricbrick=%parametricbrick%+1
set PreviousType=%VAR2:~0,1%
set PreviousLength=%VAR5%
set PreviousInclAngle=%VAR6%
set PreviousRotAngle=%VAR7%
)
::Produce the scripts for each Parametric Part
if "%PreviousType%"=="PassiveWheel" (
::Fill the parameter value needed in python script to be executed in FreeCAD
copy /y nul "FreeCAD_Modules\CallPassiveWheel%passivewheel%.py"
echo radiusExtern = %PreviousRadius% > utils\intermediate.py
echo Path="%CurrentDir%\..\PassiveWheel%passivewheel%.stl" >> utils\intermediate.py
copy utils\Header.py+utils\intermediateTer.py+utils\CallWheelPart1.py+utils\intermediate.py+utils\CallWheelPart2.py FreeCAD_Modules\CallPassiveWheel%passivewheel%.py
) else if "%PreviousType%"=="ActiveWheel" (
::Fill the parameter value needed in python script to be executed in FreeCAD
copy /y nul "FreeCAD_Modules\CallActiveWheel%activewheel%.py"
echo radiusExtern = %PreviousRadius% > utils\intermediate.py
echo Path="%CurrentDir%\..\ActiveWheel%activewheel%.stl" >> utils\intermediate.py
copy utils\Header.py+utils\intermediateTer.py+utils\CallWheelPart1.py+utils\intermediate.py+utils\CallWheelPart2.py FreeCAD_Modules\CallActiveWheel%activewheel%.py
) else if "%PreviousType%"=="ActiveWheg" (
::Fill the parameter value needed in python script to be executed in FreeCAD
copy /y nul "FreeCAD_Modules\CallWheg%activewheg%.py"
::concatenate CallWhegPART1.py+utils\intermediate.py+CallWhegPART2.py in one file : the CallWheg python script which will be executed by FreeCAD to generate Paramteric Parts
echo radiusExtern = %PreviousRadius% > utils\intermediate.py
echo Path="%CurrentDir%\..\ActiveWheg%activewheg%.stl" >> utils\intermediate.py
copy utils\Header.py+utils\intermediateTer.py+utils\CallWhegPart1.py+utils\intermediate.py+utils\CallWhegPart2.py FreeCAD_Modules\CallWheg%activewheg%.py
) else if "%PreviousType%"=="ParametricJoint" (
::Fill the parameter value needed in python script to be executed in FreeCAD
echo heightJoin = %PreviousLength% > utils\intermediate.py
::Fill the parameter value needed in python script to be executed in FreeCAD
echo inclAngle = %PreviousInclAngle% > utils\intermediatebis.py
echo Path="%CurrentDir%\..\ParametricJoinPartB%parametricbrick%.stl" >> utils\intermediatebis.py
copy /y nul "FreeCAD_Modules\CallJoinB%parametricbrick%.py"
::concatenate CallWhegPART1.py+utils\intermediate.py+CallWhegPART2.py in one file : the CallParametricJointPartA python script which will be executed by FreeCAD to generate Paramteric Parts
copy utils\Header.py+utils\intermediateTer.py+utils\CallJoinBPart1.py+utils\intermediatebis.py+utils\CallJoinBPart2.py FreeCAD_Modules\CallJoinB%parametricbrick%.py
::Fill the parameter value needed in python script to be executed in FreeCAD
echo angle = %PreviousRotAngle% >> utils\intermediate.py
echo Path="%CurrentDir%\..\ParametricJoinPartA%parametricbrick%.stl" >> utils\intermediate.py
copy /y nul "FreeCAD_Modules\CallJoinA%parametricbrick%.py"
::concatenate CallWhegPART1.py+utils\intermediate.py+CallWhegPART2.py in one file : the CallParametricJointPartB python script which will be executed by FreeCAD to generate Paramteric Parts
copy utils\Header.py+utils\intermediateTer.py+utils\CallJoinAPart1.py+utils\intermediate.py+utils\CallJoinAPart2.py FreeCAD_Modules\CallJoinA%parametricbrick%.py
)
goto :EOF
| jauerb/robogen | printing-3D/getParametricValues_WINDOWS.bat | bat | gpl-3.0 | 5,960 |
@echo off
set REGSQL="C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\aspnet_regsql.exe"
set DSN=Data Source=(local); Database=EventsBanner; Integrated Security=true;
rem Help?
rem %REGSQL% -?
rem REGSQL = %REGSQL%
rem DSN = %DSN%
%REGSQL% -C "%DSN%" -A all
pause
| smallsharptools/SmallSharpToolsDotNet | EventsBanner/Add Providers.cmd | bat | apache-2.0 | 282 |
@echo off
cls
.nuget\nuget.exe install FAKE -OutputDirectory packages -ExcludeVersion
.nuget\nuget.exe install SourceLink.Fake -OutputDirectory packages -ExcludeVersion
.nuget\nuget.exe install FSharp.Formatting -OutputDirectory packages -ExcludeVersion
SET TARGET="All"
IF NOT [%1]==[] (set TARGET="%1")
"packages\FAKE\tools\FAKE.exe" "build.fsx" "target=%TARGET%" | yukitos/FsCheck | build.cmd | bat | bsd-3-clause | 370 |
"%VS110COMNTOOLS%..\IDE\CommonExtensions\Microsoft\TestWindow\vstest.console.exe" "..\..\Bin\RDP_ClientTestSuite.dll" /Settings:..\..\Bin\ClientLocal.TestSettings /Tests:S1_ConnectionTest_ChannelConnection_NegativeTest_MCSAttachUserConfirm_InitiatorNotPresent /Logger:trx
pause
| dongruiqing/WindowsProtocolTestSuites | TestSuites/RDP/src/Batch/RDPBCGR/S1_ConnectionTest_ChannelConnection_NegativeTest_MCSAttachUserConfirm_InitiatorNotPresent.cmd | bat | mit | 278 |
cmd_net/ipv4/netfilter/nf_nat.o := arm-linux-androideabi-ld -EL -r -o net/ipv4/netfilter/nf_nat.o net/ipv4/netfilter/nf_nat_core.o net/ipv4/netfilter/nf_nat_helper.o net/ipv4/netfilter/nf_nat_proto_unknown.o net/ipv4/netfilter/nf_nat_proto_common.o net/ipv4/netfilter/nf_nat_proto_tcp.o net/ipv4/netfilter/nf_nat_proto_udp.o net/ipv4/netfilter/nf_nat_proto_icmp.o
| tenorntex/lhbalanced | net/ipv4/netfilter/.nf_nat.o.cmd | bat | gpl-2.0 | 368 |
@ECHO OFF
CALL %~dp0scripts\genericmake Tests %*
| agarny/opencor | maketests.bat | bat | gpl-3.0 | 50 |
/******************************************************************************
*
* usb_dev_msc_ccs.cmd - CCS linker configuration file for usb_dev_msc.
*
* Copyright (c) 2012-2017 Texas Instruments Incorporated. All rights reserved.
* Software License Agreement
*
* Texas Instruments (TI) is supplying this software for use solely and
* exclusively on TI's microcontroller products. The software is owned by
* TI and/or its suppliers, and is protected under applicable copyright
* laws. You may not combine this software with "viral" open-source
* software in order to form a larger program.
*
* THIS SOFTWARE IS PROVIDED "AS IS" AND WITH ALL FAULTS.
* NO WARRANTIES, WHETHER EXPRESS, IMPLIED OR STATUTORY, INCLUDING, BUT
* NOT LIMITED TO, IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
* A PARTICULAR PURPOSE APPLY TO THIS SOFTWARE. TI SHALL NOT, UNDER ANY
* CIRCUMSTANCES, BE LIABLE FOR SPECIAL, INCIDENTAL, OR CONSEQUENTIAL
* DAMAGES, FOR ANY REASON WHATSOEVER.
*
* This is part of revision 2.1.4.178 of the EK-LM4F232 Firmware Package.
*
*****************************************************************************/
--retain=g_pfnVectors
/* The following command line options are set as part of the CCS project. */
/* If you are building using the command line, or for some reason want to */
/* define them here, you can uncomment and modify these lines as needed. */
/* If you are using CCS for building, it is probably better to make any such */
/* modifications in your CCS project and leave this file alone. */
/* */
/* --heap_size=0 */
/* --stack_size=256 */
/* --library=rtsv7M3_T_le_eabi.lib */
/* The starting address of the application. Normally the interrupt vectors */
/* must be located at the beginning of the application. */
#define APP_BASE 0x00000000
#define RAM_BASE 0x20000000
/* System memory map */
MEMORY
{
/* Application stored in and executes from internal flash */
FLASH (RX) : origin = APP_BASE, length = 0x00040000
/* Application uses internal RAM for data */
SRAM (RWX) : origin = 0x20000000, length = 0x00008000
}
/* Section allocation in memory */
SECTIONS
{
.intvecs: > APP_BASE
.text : > FLASH
.const : > FLASH
.cinit : > FLASH
.pinit : > FLASH
.init_array : > FLASH
.vtable : > RAM_BASE
.data : > SRAM
.bss : > SRAM
.sysmem : > SRAM
.stack : > SRAM
}
__STACK_TOP = __stack + 1024;
| jhnphm/xbs_xbd | platforms/ek-tm4c129exl_16mhz/hal/tivaware/examples/boards/ek-lm4f232/usb_dev_msc/usb_dev_msc_ccs.cmd | bat | gpl-3.0 | 2,801 |
@echo off
rem
rem Lithium: the most rad php framework
rem
rem @copyright Copyright 2015, Union of RAD (http://union-of-rad.org)
rem @license http://opensource.org/licenses/bsd-license.php The BSD License
rem
php -f "%~dp0lithium.php" %*
| wbeater/lithium | console/li3.bat | bat | bsd-3-clause | 247 |
@echo off
REM ---------------------------------------------------------------------------
REM Copyright (c) 2015, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
REM
REM Licensed under the Apache License, Version 2.0 (the "License");
REM you may not use this file except in compliance with the License.
REM You may obtain a copy of the License at
REM
REM http://www.apache.org/licenses/LICENSE-2.0
REM
REM Unless required by applicable law or agreed to in writing, software
REM distributed under the License is distributed on an "AS IS" BASIS,
REM WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
REM See the License for the specific language governing permissions and
REM limitations under the License.
rem ----- if JAVA_HOME is not set we're not happy ------------------------------
:checkJava
if "%JAVA_HOME%" == "" goto noJavaHome
if not exist "%JAVA_HOME%\bin\java.exe" goto noJavaHome
goto checkServer
:noJavaHome
echo "You must set the JAVA_HOME variable before running CARBON."
goto end
rem ----- Only set CARBON_HOME if not already set ----------------------------
:checkServer
rem %~sdp0 is expanded pathname of the current script under NT with spaces in the path removed
if "%CARBON_HOME%"=="" set CARBON_HOME=%~sdp0..
SET curDrive=%cd:~0,1%
SET wsasDrive=%CARBON_HOME:~0,1%
if not "%curDrive%" == "%wsasDrive%" %wsasDrive%:
rem find CARBON_HOME if it does not exist due to either an invalid value passed
rem by the user or the %0 problem on Windows 9x
if not exist "%CARBON_HOME%\bin\kernel-version.txt" goto noServerHome
goto commandLifecycle
:noServerHome
echo CARBON_HOME is set incorrectly or CARBON could not be located. Please set CARBON_HOME.
goto end
:commandLifecycle
goto findJdk
:findJdk
set CMD=RUN %*
:checkJdk16
"%JAVA_HOME%\bin\java" -version 2>&1 | findstr /r "1.[8]" >NUL
IF ERRORLEVEL 1 goto unknownJdk
goto jdk16
:unknownJdk
echo Starting WSO2 Carbon (in unsupported JDK)
echo [ERROR] CARBON is supported only on JDK 1.8
goto jdk16
:jdk16
goto runTool
:runTool
set CURRENT_DIR=%cd%
cd %CARBON_HOME%\bin
echo JAVA_HOME environment variable is set to %JAVA_HOME%
echo CARBON_HOME environment variable is set to %CARBON_HOME%
java -cp ".\*;..\bin\tools\*" -Dwso2.carbon.tool="jar-to-bundle-converter" org.wso2.carbon.tools.CarbonToolExecutor "%1" "%2" "%CURRENT_DIR%"
:end
goto endlocal
:endlocal
:END
| jsdjayanga/carbon-kernel | features/org.wso2.carbon.server.feature/resources/bin/jartobundle.bat | bat | apache-2.0 | 2,399 |
@echo off
echo "Setting System paths"
SETX PATH C:/SimpleCV1.3/files/opencv/build/x86/vc10/bin/;C:/Python27/;C:/Python27/Scripts/;C:/OpenCV2.3/opencv/build/x86/vc10/bin/;"%PATH%"
SETX PYTHONPATH C:/SimpleCV1.3/files/opencv/build/python/2.7/;C:/OpenCV2.3/opencv/build/python/2.7/;"%PYTHONPATH%"
SET PATH=C:/SimpleCV1.3/files/opencv/build/x86/vc10/bin/;C:/Python27/;C:/Python27/Scripts/;C:/OpenCV2.3/opencv/build/x86/vc10/bin/;%PATH%
SET PYTHONPATH=C:/SimpleCV1.3/files/opencv/build/python/2.7/;C:/OpenCV2.3/opencv/build/python/2.7/;%PYTHONPATH%
echo "Running System Requirement Installers"
echo "Please click next on each of the additional installers"
echo "unless you don't need that specific library installed,"
echo "then click cancel on that specific installer"
cd "C:\SimpleCV1.3\files"
echo "Installing Python 2.7"
python-2.7.3.msi
echo "Installing Python Setuptools"
setuptools-0.6c11.win32-py2.7.exe
echo "Installing Scipy"
scipy-0.9.0rc5-win32-superpack-python2.7.exe
echo "Installing Numpy"
numpy-1.6.2-win32-superpack-python2.7.exe
echo "Install Pygame"
pygame-1.9.1.win32-py2.7.msi
echo "Installing OpenCV"
OpenCV-2.3.1-win-superpack.exe
easy_install pyreadline
easy_install PIL
easy_install cython
easy_install pip
pip install ipython
pip install https://github.com/sightmachine/SimpleCV/zipball/1.3
echo "The Download path is:"
%1
mkdir C:\Python27\Lib\site-packages\freenect
echo "Copying freenect setup files"
xcopy %1\OpenKinect\precompiled\*.py C:\Python27\Lib\site-packages\freenect /y
xcopy %1\OpenKinect\precompiled\*.dll C:\Python27\DLLs /y
xcopy %1\OpenKinect\precompiled\*.pyd C:\Python27\DLLs /y
echo ""
echo "SimpleCV 1.3 is now installed"
echo ""
echo "This window will autoclose...."
timeout /T 10
| nils-werner/SimpleCV | scripts/install/win/install.bat | bat | bsd-3-clause | 1,728 |
::
:: Microsoft Azure SDK for Net - Generate library code
:: Copyright (C) Microsoft Corporation. All Rights Reserved.
::
@echo off
setlocal
if not "%1" == "" (set specsRepoUser="%1")
if not "%2" == "" (set specsRepoBranch="%2")
if "%specsRepoUser%" == "" (set specsRepoUser="Azure")
if "%specsRepoBranch%" == "" (set specsRepoBranch="current")
set specFile1="https://github.com/%specsRepoUser%/azure-rest-api-specs/blob/%specsRepoBranch%/specification/monitor/resource-manager/readme.md"
set specFile2="https://github.com/%specsRepoUser%/azure-rest-api-specs/blob/%specsRepoBranch%/specification/monitor/data-plane/readme.md"
set sdksRoot=%~dp0..\..
if "%3" == "" (call npm i -g autorest)
@echo on
call autorest %specFile1% --csharp --csharp-sdks-folder=%sdksRoot% --latest --azure-validator
call autorest %specFile2% --csharp --csharp-sdks-folder=%sdksRoot% --latest --azure-validator
endlocal
| ScottHolden/azure-sdk-for-net | src/SDKs/Monitor/Management.Monitor/validate.cmd | bat | mit | 905 |
@echo off
SET HLUAC=java -jar lib/hluac.jar -outext .lua
RD /S/Q luapp51 2> NUL
RD /S/Q luapp50 2> NUL
MD luapp51
MD luapp50
echo ++
%HLUAC% -err -lint -in . -d luapp51
%HLUAC% -err -lua50 -d luapp51 errfmt.hlua
%HLUAC% -err -lua50 -lint -in . -d luapp50 -include lua50-misc/_include.lua
echo ++
echo ' copy files for 51 ...'
copy LICENSE luapp51\ > NUL
copy README luapp51\ > NUL
echo ' copy files for 50 ...'
copy LICENSE luapp50\ > NUL
copy README luapp50\ > NUL
copy lua50-misc\_compat-5.1.lua luapp50\ > NUL
copy lua50-misc\test50.sh luapp50\ > NUL
echo ++
| zoon/luapp | make.cmd | bat | mit | 580 |
@ECHO OFF
REM Command file for Sphinx documentation
if "%SPHINXBUILD%" == "" (
set SPHINXBUILD=sphinx-build
)
set BUILDDIR=_build
set ALLSPHINXOPTS=-d %BUILDDIR%/doctrees %SPHINXOPTS% .
set I18NSPHINXOPTS=%SPHINXOPTS% .
if NOT "%PAPER%" == "" (
set ALLSPHINXOPTS=-D latex_paper_size=%PAPER% %ALLSPHINXOPTS%
set I18NSPHINXOPTS=-D latex_paper_size=%PAPER% %I18NSPHINXOPTS%
)
if "%1" == "" goto help
if "%1" == "help" (
:help
echo.Please use `make ^<target^>` where ^<target^> is one of
echo. html to make standalone HTML files
echo. dirhtml to make HTML files named index.html in directories
echo. singlehtml to make a single large HTML file
echo. pickle to make pickle files
echo. json to make JSON files
echo. htmlhelp to make HTML files and a HTML help project
echo. qthelp to make HTML files and a qthelp project
echo. devhelp to make HTML files and a Devhelp project
echo. epub to make an epub
echo. latex to make LaTeX files, you can set PAPER=a4 or PAPER=letter
echo. text to make text files
echo. man to make manual pages
echo. texinfo to make Texinfo files
echo. gettext to make PO message catalogs
echo. changes to make an overview over all changed/added/deprecated items
echo. linkcheck to check all external links for integrity
echo. doctest to run all doctests embedded in the documentation if enabled
goto end
)
if "%1" == "clean" (
for /d %%i in (%BUILDDIR%\*) do rmdir /q /s %%i
del /q /s %BUILDDIR%\*
goto end
)
if "%1" == "html" (
%SPHINXBUILD% -b html %ALLSPHINXOPTS% %BUILDDIR%/html
if errorlevel 1 exit /b 1
echo.
echo.Build finished. The HTML pages are in %BUILDDIR%/html.
goto end
)
if "%1" == "dirhtml" (
%SPHINXBUILD% -b dirhtml %ALLSPHINXOPTS% %BUILDDIR%/dirhtml
if errorlevel 1 exit /b 1
echo.
echo.Build finished. The HTML pages are in %BUILDDIR%/dirhtml.
goto end
)
if "%1" == "singlehtml" (
%SPHINXBUILD% -b singlehtml %ALLSPHINXOPTS% %BUILDDIR%/singlehtml
if errorlevel 1 exit /b 1
echo.
echo.Build finished. The HTML pages are in %BUILDDIR%/singlehtml.
goto end
)
if "%1" == "pickle" (
%SPHINXBUILD% -b pickle %ALLSPHINXOPTS% %BUILDDIR%/pickle
if errorlevel 1 exit /b 1
echo.
echo.Build finished; now you can process the pickle files.
goto end
)
if "%1" == "json" (
%SPHINXBUILD% -b json %ALLSPHINXOPTS% %BUILDDIR%/json
if errorlevel 1 exit /b 1
echo.
echo.Build finished; now you can process the JSON files.
goto end
)
if "%1" == "htmlhelp" (
%SPHINXBUILD% -b htmlhelp %ALLSPHINXOPTS% %BUILDDIR%/htmlhelp
if errorlevel 1 exit /b 1
echo.
echo.Build finished; now you can run HTML Help Workshop with the ^
.hhp project file in %BUILDDIR%/htmlhelp.
goto end
)
if "%1" == "qthelp" (
%SPHINXBUILD% -b qthelp %ALLSPHINXOPTS% %BUILDDIR%/qthelp
if errorlevel 1 exit /b 1
echo.
echo.Build finished; now you can run "qcollectiongenerator" with the ^
.qhcp project file in %BUILDDIR%/qthelp, like this:
echo.^> qcollectiongenerator %BUILDDIR%\qthelp\healthcare_ASEAN.qhcp
echo.To view the help file:
echo.^> assistant -collectionFile %BUILDDIR%\qthelp\healthcare_ASEAN.ghc
goto end
)
if "%1" == "devhelp" (
%SPHINXBUILD% -b devhelp %ALLSPHINXOPTS% %BUILDDIR%/devhelp
if errorlevel 1 exit /b 1
echo.
echo.Build finished.
goto end
)
if "%1" == "epub" (
%SPHINXBUILD% -b epub %ALLSPHINXOPTS% %BUILDDIR%/epub
if errorlevel 1 exit /b 1
echo.
echo.Build finished. The epub file is in %BUILDDIR%/epub.
goto end
)
if "%1" == "latex" (
%SPHINXBUILD% -b latex %ALLSPHINXOPTS% %BUILDDIR%/latex
if errorlevel 1 exit /b 1
echo.
echo.Build finished; the LaTeX files are in %BUILDDIR%/latex.
goto end
)
if "%1" == "text" (
%SPHINXBUILD% -b text %ALLSPHINXOPTS% %BUILDDIR%/text
if errorlevel 1 exit /b 1
echo.
echo.Build finished. The text files are in %BUILDDIR%/text.
goto end
)
if "%1" == "man" (
%SPHINXBUILD% -b man %ALLSPHINXOPTS% %BUILDDIR%/man
if errorlevel 1 exit /b 1
echo.
echo.Build finished. The manual pages are in %BUILDDIR%/man.
goto end
)
if "%1" == "texinfo" (
%SPHINXBUILD% -b texinfo %ALLSPHINXOPTS% %BUILDDIR%/texinfo
if errorlevel 1 exit /b 1
echo.
echo.Build finished. The Texinfo files are in %BUILDDIR%/texinfo.
goto end
)
if "%1" == "gettext" (
%SPHINXBUILD% -b gettext %I18NSPHINXOPTS% %BUILDDIR%/locale
if errorlevel 1 exit /b 1
echo.
echo.Build finished. The message catalogs are in %BUILDDIR%/locale.
goto end
)
if "%1" == "changes" (
%SPHINXBUILD% -b changes %ALLSPHINXOPTS% %BUILDDIR%/changes
if errorlevel 1 exit /b 1
echo.
echo.The overview file is in %BUILDDIR%/changes.
goto end
)
if "%1" == "linkcheck" (
%SPHINXBUILD% -b linkcheck %ALLSPHINXOPTS% %BUILDDIR%/linkcheck
if errorlevel 1 exit /b 1
echo.
echo.Link check complete; look for any errors in the above output ^
or in %BUILDDIR%/linkcheck/output.txt.
goto end
)
if "%1" == "doctest" (
%SPHINXBUILD% -b doctest %ALLSPHINXOPTS% %BUILDDIR%/doctest
if errorlevel 1 exit /b 1
echo.
echo.Testing of doctests in the sources finished, look at the ^
results in %BUILDDIR%/doctest/output.txt.
goto end
)
:end
| DataKind-SG/healthcare_ASEAN | docs/make.bat | bat | mit | 5,116 |
@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
@echo off
set node-root=%~dp0..
rem // resolve to fully qualified path
for %%i in ("%node-root%") do set node-root=%%~fi
rem ---------------------------------------------------------------------------
rem -- parse script arguments
rem ---------------------------------------------------------------------------
set min-output=0
set integration-tests=0
set e2e-tests=0
:args-loop
if "%1" equ "" goto args-done
if "%1" equ "--min" goto arg-min-output
if "%1" equ "--integration-tests" goto arg-integration-tests
if "%1" equ "--e2e-tests" goto arg-e2e-tests
call :usage && exit /b 1
:arg-min-output
set min-output=1
goto args-continue
:arg-integration-tests
set integration-tests=1
goto args-continue
:arg-e2e-tests
set e2e-tests=1
goto args-continue
:args-continue
shift
goto args-loop
:args-done
if %min-output%==0 if %integration-tests%==0 set "npm-command=npm -s test"
if %min-output%==0 if %integration-tests%==1 set "npm-command=npm -s run lint && npm -s run alltest"
if %min-output%==1 if %integration-tests%==0 set "npm-command=npm -s run lint && npm -s run unittest-min"
if %min-output%==1 if %integration-tests%==1 set "npm-command=npm -s run ci"
rem ---------------------------------------------------------------------------
rem -- create x509 test device
rem ---------------------------------------------------------------------------
set IOTHUB_X509_DEVICE_ID=x509device-node-%RANDOM%
call node %node-root%\build\tools\create_device_certs.js --connectionString %IOTHUB_CONNECTION_STRING% --deviceId %IOTHUB_X509_DEVICE_ID%
set IOTHUB_X509_CERTIFICATE=%node-root%\%IOTHUB_X509_DEVICE_ID%-cert.pem
set IOTHUB_X509_KEY=%node-root%\%IOTHUB_X509_DEVICE_ID%-key.pem
rem ---------------------------------------------------------------------------
rem -- lint and run tests
rem ---------------------------------------------------------------------------
echo.
if %integration-tests%==0 echo -- Linting and running unit tests --
if %integration-tests%==1 echo -- Linting and running unit + integration tests --
echo.
call :lint-and-test %node-root%\common\core
if errorlevel 1 goto :cleanup
call :lint-and-test %node-root%\common\transport\amqp
if errorlevel 1 goto :cleanup
call :lint-and-test %node-root%\common\transport\http
if errorlevel 1 goto :cleanup
call :lint-and-test %node-root%\common\transport\mqtt
if errorlevel 1 goto :cleanup
call :lint-and-test %node-root%\device\core
if errorlevel 1 goto :cleanup
call :lint-and-test %node-root%\device\transport\amqp
if errorlevel 1 goto :cleanup
call :lint-and-test %node-root%\device\transport\amqp-ws
if errorlevel 1 goto :cleanup
call :lint-and-test %node-root%\device\transport\http
if errorlevel 1 goto :cleanup
call :lint-and-test %node-root%\device\transport\mqtt
if errorlevel 1 goto :cleanup
call :lint-and-test %node-root%\service
if errorlevel 1 goto :cleanup
if %e2e-tests%==1 (
call :lint-and-test %node-root%\e2etests
if errorlevel 1 goto :cleanup
)
cd %node-root%\..\tools\iothub-explorer
call npm -s test
if errorlevel 1 goto :cleanup
goto :cleanup
rem ---------------------------------------------------------------------------
rem -- helper subroutines
rem ---------------------------------------------------------------------------
:usage
echo Lint code and run tests.
echo build.cmd [options]
echo options:
echo --min minimize display output
echo --integration-tests run integration tests too (unit tests always run)
echo --e2e-tests run end-to-end tests too (unit tests always run)
goto :eof
:lint-and-test
cd "%1"
echo %cd%
call %npm-command%
goto :eof
:cleanup
set EXITCODE=%ERRORLEVEL%
call node %node-root%\..\tools\iothub-explorer\iothub-explorer.js %IOTHUB_CONNECTION_STRING% delete %IOTHUB_X509_DEVICE_ID%
del %IOTHUB_X509_CERTIFICATE%
del %IOTHUB_X509_KEY%
exit /b %EXITCODE% | kevinledinh/azure-iot-sdks | node/build/build.cmd | bat | mit | 3,993 |
REM this takes forever just manually do it
REM call npm install
REM Change Directory
REM cd $(ProjectDir)\
REM Grab the current build configuration and set a variable we can use
set NODE_ENV=$(ConfigurationName)
REM run gulp
node_modules\.bin\gulp | xlfishbone/Nancy-Marionette-Seed | NancyBackboneSeed/prebuild.bat | bat | mit | 252 |
@echo off
set P4_PORT=ssl:52.17.163.3:1666
set HOME=%HOMEDRIVE%%HOMEPATH%
set HOME=
echo Enter your user folder (the one with Documents in it e.g. C:\Users\USER)
set /p HOME=Document Path :
if exist %HOME% (
echo Directory %HOME% is valid
) else (
echo Directory %HOME% doesn't exist
pause
goto: eof
)
set INSTALLPATH=%HOME%\Documents
set P4CONFIG=.p4config
set P4CONFIGPATH=%INSTALLPATH%\%P4CONFIG%
cd /d %~dp0
Set StartInDirectory= %cd%\..
set CURRENTDIR=%StartInDirectory%
echo %CURRENTDIR%
type NUL > %P4CONFIGPATH%
:: Install P4Python (Maya)
md "%HOME%\maya\scripts"
set A=%CURRENTDIR%\P4API\windows\P4.py
set B=%INSTALLPATH%\maya\scripts\P4.py
echo Linking %A% to %B% ...
mklink /H %B% %A%
set A=%CURRENTDIR%\P4API\windows\P4API.pyd
set B=%INSTALLPATH%\maya\scripts\P4API.pyd
echo Linking %A% to %B% ...
mklink /H %B% %A%
:: Install Maya plugin
md "%HOME%\maya\plug-ins"
set A=%CURRENTDIR%\Plugins\P4Maya.py
set B=%INSTALLPATH%\maya\plug-ins\P4Maya.py
echo Linking %A% to %B% ...
mklink /H %B% %A%
set A=%CURRENTDIR%\Perforce
set B=%INSTALLPATH%\maya\scripts\Perforce
echo Linking %A% to %B% ...
mklink /J /D %B% %A%
:: Install P4Python (Nuke)
::md "%HOME%/.nuke/"
::mklink /H /d "%HOME%\.nuke\P4.py" "%CURRENTDIR%\P4API\windows\P4.py"
::mklink /H /d "%HOME%\.nuke\P4API.pyd" "%CURRENTDIR%\P4API\windows\P4API.pyd"
setx P4CONFIG %P4CONFIGPATH%
::P4CONFIG Setup
echo.P4PORT=%P4_PORT% >> %P4CONFIGPATH%
pause | TomMinor/MayaPerforce | scripts/install_home.cmd | bat | mit | 1,439 |
@ECHO OFF
:start
CLS
ECHO.
ECHO ===Gestionnaire de hotspot wifi Batspot 1.0===
ECHO.
ECHO c. Crer un nouvel hotspot
ECHO d. Supprimer le hotspot
ECHO.
ECHO 1. Dmarrer le hotspot
ECHO 2. Arrter le hotspot
ECHO 3. Status du hotspot
ECHO.
ECHO q. Quitter
ECHO.
ECHO.
set choice=
set /p choice=Entrez votre choix puis appuyez sur entre :
if "%choice%"=="" goto errornothing
if "%choice%"=="c" goto hotspotcreate
if "%choice%"=="d" goto hotspotdeleteprompt
if "%choice%"=="1" goto hotspotstart
if "%choice%"=="2" goto hotspotstop
if "%choice%"=="3" goto hotspotstatus
if "%choice%"=="q" goto end
set choice=
goto error
:error
ECHO.
ECHO "%choice%" n'est pas valide, ressayer
ECHO.
pause
goto start
:errornothing
ECHO.
ECHO Erreur: Veuillez entrer un chiffre pour faire votre choix, ressayer
ECHO.
pause
goto start
:errornothing2
ECHO.
ECHO Erreur: Veuillez entrer un "o" ou "n" pour faire votre choix, ressayer
ECHO.
pause
goto start
:errornothing3
ECHO.
ECHO Erreur: Vous n'avez pas defini de SSID, ressayer
ECHO.
pause
goto hotspotcreate
:errornothing4
ECHO.
ECHO Erreur: Vous n'avez pas defini de cl WPA, ressayer
ECHO.
pause
goto hotspotcreate
:hotspotcreate
CLS
ECHO.
ECHO ===Configuration d'un nouvel hotspot wifi===
ECHO.
ECHO Cet assistant va vous aider a crer un hotspot wifi scuris (WPA/WPA2)
ECHO.
ECHO Pour crer un nouvel hotspot, il faut dfinir son SSID (nom affich) et sa cl WPA (mot de passe)
ECHO.
ECHO La cl WPA doit comporter entre 8 et 63 characteres
ECHO.
set /p ssid=Entrez le SSID :
if "%ssid%"=="" goto errornothing3
set wpa=
set /p wpa=Entrez la cl WPA :
if "%wpa%"=="" goto errornothing4
ECHO.
netsh wlan set hostednetwork mode=allow ssid="%ssid%" key="%wpa%"
ECHO.
ECHO.
ECHO Souhaitez-vous dmarrer le hotspot cr ?
ECHO.
ECHO o. Oui
ECHO n. Non
ECHO.
set choice=
set /p choice=Entrez votre choix puis appuyez sur entre :
if "%choice%"=="" goto errornothing2
if "%choice%"=="o" goto hotspotstart
if "%choice%"=="n" goto start
goto error
:hotspotdeleteprompt
cls
ECHO.
ECHO Souhaitez-vous supprimer la configuration du hotspot ?
ECHO.
ECHO o. Oui
ECHO n. Non
ECHO.
set choice=
set /p choice=Entrez votre choix puis appuyez sur entre :
if "%choice%"=="" goto errornothing2
if "%choice%"=="o" goto hotspotdelete
if "%choice%"=="n" goto start
goto error
:hotspotdelete
ECHO.
netsh wlan set hostednetwork mode=disallow
ECHO.
pause
goto start
:hotspotstart
ECHO.
netsh wlan start hostednetwork
ECHO.
pause
goto start
:hotspotstop
ECHO.
netsh wlan stop hostednetwork
ECHO.
pause
goto start
:hotspotstatus
ECHO.
netsh wlan show hostednetwork
ECHO.
pause
goto start
:end
ECHO.
ECHO Bye !
ECHO.
ECHO --Cr par The Black Hole (@theblackhole08)
ECHO.
timeout /t 5
exit | theblackhole/batspot | batspot.bat | bat | mit | 2,727 |
@ECHO OFF
"C:\Program Files\Atmel\AVR Tools\AvrAssembler2\avrasm2.exe" -S "C:\Documents and Settings\Ondra\Dokumenty\AVR projekty\HAD_leze\labels.tmp" -fI -W+ie -o "C:\Documents and Settings\Ondra\Dokumenty\AVR projekty\HAD_leze\efekty_LED.hex" -d "C:\Documents and Settings\Ondra\Dokumenty\AVR projekty\HAD_leze\efekty_LED.obj" -e "C:\Documents and Settings\Ondra\Dokumenty\AVR projekty\HAD_leze\efekty_LED.eep" -m "C:\Documents and Settings\Ondra\Dokumenty\AVR projekty\HAD_leze\efekty_LED.map" "C:\Documents and Settings\Ondra\Dokumenty\AVR projekty\HAD_leze\efekty_LED.asm"
| MightyPork/avr-projects | archive/000000_asm_old/OBSLUHA_PORTU/m16-HAD_leze/AvrBuild.bat | bat | mit | 580 |
php app/console assetic:dump | tanitsmeg/tanitsmeg | assetic_dump.bat | bat | mit | 28 |
@echo off
nodemon app.js
| bihe/myDMS-node | nodeapp/start.bat | bat | mit | 25 |
@echo off
title Text OS
setlocal enabledelayedexpansion
cd Data
set TextOS.realusername=!username!
if not exist Users (
mkdir Users
cd Users
mkdir Shared
mkdir !username!
cd !username! && echo This is an example file >> Example.txt && cd..
) else (
cd Users
if not exist !username! (
if exist !username!.redirect (
< !TextOS.realusername!.redirect (
set /p username=
)
if not exist !username! mkdir !username!
) else (
mkdir !username!
)
)
if not exist Shared mkdir Shared
cd..
)
if exist tmp del /q tmp
:: Want to see all the TextOS-Specific commands? do "set TextOS" in the devprompt
set TextOS.Version=0.1.067
set TextOS.StandardTitle=Text OS ^| Version: !TextOS.Version!
set TextOS.BootedFromTextOS=1
set TextOS.RandomNumber=%random%
if not defined TextOS.DevMode set TextOS.DevMode=0
set TextOS.UseBooterMsg=Make sure you boot from the booter.
set TextOS.SkipLoad=false
cd..
set TextOS.KernelFolder=%cd%
cd data
set TextOS.HomeFolder=%cd%\Users\!username!
set TextOS.DataFolder=%cd%
if exist installer set TextOS.Installer=true else set TextOS.Installer=false
if defined TextOS_SDK.FinalDebug goto FinalDebug
:: Version
!Download! http://text-os.github.io/fetch/version latestver
< latestver (
set/p fetchedver=
)
del latestver
if !fetchedver! NEQ !TextOS.Version! set TextOS.Message=A new update is out. (!fetchedver!)
:: Errors
if not defined BIOS_ram call error_reporter.bat "Error loading RAM. !TextOS.UseBooterMsg!" "if not defined BIOS_ram"
if not defined BIOS_version call error_reporter.bat "Error loading BIOS version. !TextOS.UseBooterMsg!" "if not defined BIOS_version"
if !BIOSSETUP! NEQ exit call error_reporter.bat "^^!BIOSSETUP^^! is corrupted. !TextOS.UseBooterMsg!" "if !BIOSSETUP! NEQ exit"
if not defined TextOS.BootedFromTextOS call error_reporter.bat "Error loading TextOS.BootedFromTextOS." "if not defined TextOS.BootedFromTextOS"
if not defined Selection set TextOS.VarNotFound=^^!Selection^^! && goto Varcheck
if not defined Download set TextOS.VarNotFound=^^!Downloadt^^! && goto Varcheck
if not defined Timeout set TextOS.VarNotFound=^^!Timeout^^! && goto Varcheck
if not defined Oneup set TextOS.VarNotFound=^^!Oneup^^! && goto Varcheck
if not defined CLR set TextOS.VarNotFound=^^!CLR^^! && goto Varcheck
:Varcheck
if defined TextOS.VarNotFound call error_reporter.bat "The variable !TextOS.VarNotFound! is not defined. !UseBooterMsg!" "if !BIOSSETUP! NEQ exit"
:Password
if exist Users/!username!/pass (
< Users/!username!/pass (
set /p pass=
)
echo This account has a password.
echo Please enter your password.
set /p input_pass=^>
if !pass! NEQ !input_pass! (
echo Wrong password.
echo.
echo Press any key to retry. . .
pause >nul
goto Password
)
)
title !TextOS.StandardTitle!
if !TextOS.SkipLoad! == true goto menu
:Load
cls
echo Loading...
!Timeout! 2
:menu
:: The variable !username! uses your Windows account name.
cls
if defined TextOS.Message (
echo !TextOS.Message!
echo To update, type in "update" in the command prompt.
echo.
)
echo ===============TEXT=OS=MENU==============
echo.
echo Hello !username!. Welcome to the Text-OS menu.
echo You are running Text-OS !TextOS.Version!
echo.
!Selection! "Command Prompt" "Apps" "Settings" "Exit"
if %errorlevel% == 1 goto precmd
if %errorlevel% == 2 goto Apps
if %errorlevel% == 3 goto Settings_Main
if %errorlevel% == 4 exit
goto menu
:: ====================Apps====================
:Apps
cls
set folderset=set TextOS.AppFolder
set fileset=set TextOS.FileToExecute
set go=goto Start
echo ===============APPS==============
echo.
!Selection! "Text-OS Browser" "Calculator" "Guess The Number" "Zombo.com Text Edition" "Back To Menu"
if %errorlevel% == 1 !folderset!=Browser && !fileset!=Browser_Start.bat && !go!
if %errorlevel% == 2 !folderset!=Calculator && !fileset!=Calculator.bat && !go!
if %errorlevel% == 3 !folderset!=GuessTheNumber && !fileset!=GuessTheNumber.bat && !go!
if %errorlevel% == 4 !folderset!=Zombocom_Text_Edition && !fileset!=Start.bat && !go!
if %errorlevel% == 5 goto menu
call :WrongErrorlevel
goto Programs
:Start
cls
cd Apps
cd !TextOS.AppFolder!
if not exist !TextOS.FileToExecute! goto NotFound
call !TextOS.FileToExecute!
title !TextOS.Standardtitle!
cd.. && cd..
goto menu
:: ====================Apps=End===================
:: Generic errors for apps
:NotFound
cls
echo File not found.
echo.
echo Debug info:
echo !TextOS.AppFolder!
echo !TextOS.FileToExecute!
pause >nul
goto menu
:WrongErrorLevel
cls
echo Invalid selection.
pause >nul
goto menu
:: ====================Text=OS=Command=Prompt====================
:precmd
cls
echo ====Text=OS=Command=Prompt====
echo.
echo Type help for a list of commands.
echo.
:cmd
set/p TextOS.CmdPromptInput=^>
call Commands\!TextOS.CmdPromptInput!
goto cmd
:: ====================Text=OS=Command=Prompt=End===================
:: ====================Settings===================
:Settings_Main
cls
echo ===SETTINGS===
echo.
!Selection! "Change username (Restart required)" "Wipe saved colorcode" "Password" "" "Back"
if %errorlevel% == 1 goto Change_Username
if %errorlevel% == 2 goto Wipe_Saved_Colorcode
if %errorlevel% == 3 goto Password_Main
if %errorlevel% == 4 goto Settings_Main
if %errorlevel% == 5 goto menu
goto Settings_Main
:Change_Username
cls
cd !TextOS.DataFolder! && cd Users
set/p TextOS.CU_changeto=Enter username to change to:
if exist !TextOS.realusername!.redirect del !TextOS.realusername!.redirect
echo !TextOS.CU_changeto!>> !TextOS.realusername!.redirect
ren !username! !TextOS.CU_changeto!
cd !TextOS.DataFolder!
goto Settings_Main
:Password_Main
cls
echo ===PASSWORD=SETTINGS==
echo.
if not exist Users/!username!/pass (
!Selection! "Create Password" "Remove Password" "Back"
) else (
!Selection! "Change Password" "Remove Password" "Back"
)
if %errorlevel% == 1 goto Password_check
if %errorlevel% == 2 goto Password_Delete
if %errorlevel% == 3 goto Settings_Main
:Password_check
if not exist Users/!username!/pass (
goto Password_Create
) else (
goto Password_Change
)
:Password_Create
cls
echo Enter the password you want to use.
echo.
set /p input=^>
echo.
echo Please type the password again.
echo.
set /p input2=^>
if !input! == !input2! (
cd !TextOS.DataFolder!
cd Users/!username!
echo !input!>>pass
) else (
echo -------------------------
echo Passwords doesn't match.
echo.
echo Press any key to retry. . .
pause >nul
)
cd !TextOS.DataFolder!
goto Password_Main
:Password_Change
cls
cd !TextOS.DataFolder!
cd Users/!username!
< pass (
set /p pass=
)
echo Enter the current password.
echo.
set /p input=^>
if !input! == !pass! (
del pass
echo Enter the new password.
echo.
set/p input=^>
echo !input!>>pass
) else (
echo That isn't the right password.
echo Press any key to go back. . .
pause >nul
)
cd !TextOS.DataFolder!
goto Password_Main
:Password_Delete
cls
cd !TextOS.DataFolder!
cd Users/!username!
< pass (
set /p pass=
)
echo Enter the current password.
echo.
set /p input=^>
if !input! == !pass! (
del pass
echo Your account's password has been removed.
echo Press any key to go back. . .
pause >nul
) else (
echo That isn't the right password.
echo Press any key to go back. . .
pause >nul
)
cd !TextOS.DataFolder!
goto Password_Main
:Wipe_Saved_Colorcode
cls
if not exist colorcode.dat echo No colorcode found. && pause >nul && goto menu
:: else if it exists, confirm to delete it
echo This will delete the saved colorcode, are you sure?
echo.
!Selection! "Yes" "No"
if %errorlevel% == 1 (
del colorcode.dat
goto Settings_Main
)
if %errorlevel% == 2 goto Settings_Main
goto Settings_Main
:: ====================Settings End===================
:HomeDirectory
cls
echo This is coming soon.
pause >nul
goto menu
:FinalDebug
cls
echo ^^!--DEBUG--^^!
echo.
echo Do you want to do a FinalDebug Test?
!Selection! "Yes" "No"
if %errorlevel% == 1 goto FinalDebug_Start
if %errorlevel% == 2 exit
:FinalDebug_Start
cls
if defined TextOS_SDK.FileToDebug (
call !TextOS_SDK.FileToDebug!
)
set/p TextOS.AppDebugger_Input=Enter File to debug (WITHOUT FILE EXTENSION):
call !TextOS.AppDebugger_Input!.bat
exit
:DevPromptStart
cls
echo Type info for info
:DevPrompt
set/p c=%cd%^>
if !c! == info goto DevInfo
%c%
goto DevPrompt
:DevInfo
echo This is a tool for developers to execute code through a prompt or to check variables.
echo To go back to TextOS, type goto menu
goto DevPrompt
| Text-OS/Text-OS | Kernel.bat | bat | mit | 8,436 |
for /f "tokens=* delims= " %%i in ('dir /b /a-d "%GBE%\%EMUZ%\%FUSN%\Sega*(J*"') do SET SCDJB=%%i
for /f "tokens=* delims= " %%i in ('dir /b /a-d "%GBE%\%EMUZ%\%FUSN%\Sega*(E*"') do SET SCDEB=%%i
for /f "tokens=* delims= " %%i in ('dir /b /a-d "%GBE%\%EMUZ%\%FUSN%\Sega*(U*"') do SET SCDUB=%%i
for /f "tokens=* delims= " %%i in ('dir /b /a-d "%GBE%\%EMUZ%\%FUSN%\jp_*cd*"') do SET SCDJB=%%i
for /f "tokens=* delims= " %%i in ('dir /b /a-d "%GBE%\%EMUZ%\%FUSN%\eu_*cd*"') do SET SCDEB=%%i
for /f "tokens=* delims= " %%i in ('dir /b /a-d "%GBE%\%EMUZ%\%FUSN%\us_*cd*"') do SET SCDUB=%%i
for /f "tokens=* delims= " %%i in ('dir /b /a-d "%GBE%\%EMUZ%\%FUSN%\32X_M*"') do SET 32XM=%%i
for /f "tokens=* delims= " %%i in ('dir /b /a-d "%GBE%\%EMUZ%\%FUSN%\32X_S*"') do SET 32XS=%%i
for /f "tokens=* delims= " %%i in ('dir /b /a-d "%GBE%\%EMUZ%\%FUSN%\32X_G*"') do SET 32XG=%%s
pushd "%GBC%\net\%LNCH%\%SEGAMD%"
if "%GGOFF%"=="1" "%GBC%\fart.exe" "%FUSN%.ini" [ROMPTH] [EMUPTH]
if "%GGOFF%"=="1" "%GBC%\fart.exe" "%FUSN%.ini" ".Mem" --remove
if "%GGOFF%"=="1" "%GBC%\fart.exe" "%FUSN%.ini" ".sstates" --remove
if "%GGOFF%"=="1" "%GBC%\fart.exe" "%FUSN%.ini" ".snaps" --remove
"%GBC%\fart.exe" "%FUSN%.ini" [SCDUB] "%SCDUB%"
"%GBC%\fart.exe" "%FUSN%.ini" [SCDJB] "%SCDJB%"
"%GBC%\fart.exe" "%FUSN%.ini" [SCDEB] "%SCDEB%"
"%GBC%\fart.exe" "%FUSN%.ini" [32XG] "%32XG%"
"%GBC%\fart.exe" "%FUSN%.ini" [32XM] "%32XM%"
"%GBC%\fart.exe" "%FUSN%.ini" [32XS] "%32XS%"
"%GBC%\fart.exe" "%FUSN%.ini" [EMUPTH] "%GBE%\%EMUZ%\%FUSN%"
popd
for /d %%g IN (*) DO (
if "%RECONF%"=="1" copy /Y "%GBC%\net\%LNCH%\%SEGAMD%\%FUSN%.ini" "%%~g"
set CSTM=%%~g
Pushd "%%~g"
call :rominj
if "%RECONF%"=="1" CALL "%GBC%\%SHRTN%inject.bat"
popd
)
exit /b
:rominj
call "%GBC%\CreateGamSubDir.bat"
for /f "tokens=* delims= " %%a in ('dir /s/b/a-d-h "*.bin" "*.gen" "*.md" "*.smd" "*.rom"') do (
SET ROMN=%%~a
SET ROMD=%%~na
set ROME=%%~xa
set ROMF=%%~nxa
CALL :EACHROM
)
exit /b
:EACHROM
if exist "%ROMD%.bat" CALL :ROME
if not exist "%ROMD%.bat" CALL :ROMD
exit /b
:ROMD
if "%RECONF%"=="1" copy "..\zz.bat" "%CD%\%ROMD%.bat"
"%GBC%\fart.exe" "%ROMD%.bat" [ROMNAME] "%ROMN%"
exit /b
:ROME
if "%RECONF%"=="1" copy "..\zz.bat" "%CD%\%ROME%.bat"
"%GBC%\fart.exe" "%ROME%.bat" [ROMNAME] "%ROMN%"
exit /b | HoodlumDTX/rom-jacket | extinjSEGAMD1.bat | bat | gpl-2.0 | 2,319 |
cmd_fs/exportfs/exportfs.ko := ../arm-fsl-linux-gnueabi/bin/arm-fsl-linux-gnueabi-ld -EL -r -T /home/cgil/udoo/kernel_oficial_source/scripts/module-common.lds --build-id -o fs/exportfs/exportfs.ko fs/exportfs/exportfs.o fs/exportfs/exportfs.mod.o
| chrnueve/udooImaxdi | kernel_oficial_source/fs/exportfs/.exportfs.ko.cmd | bat | gpl-2.0 | 249 |
cmd_lib/ctype.o := gcc -Wp,-MD,lib/.ctype.o.d -nostdinc -isystem /usr/lib/gcc/x86_64-redhat-linux/4.8.3/include -I/home/exist/tmp/linux-2.6.35.14/linux-2.6.35/arch/x86/include -Iinclude -include include/generated/autoconf.h -D__KERNEL__ -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Wno-format-security -fno-delete-null-pointer-checks -Os -m64 -mtune=generic -mno-red-zone -mcmodel=kernel -funit-at-a-time -maccumulate-outgoing-args -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -DCONFIG_AS_CFI_SECTIONS=1 -pipe -Wno-sign-compare -fno-asynchronous-unwind-tables -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -Wframe-larger-than=2048 -fno-stack-protector -fno-omit-frame-pointer -fno-optimize-sibling-calls -Wdeclaration-after-statement -Wno-pointer-sign -fno-strict-overflow -fconserve-stack -D"KBUILD_STR(s)=\#s" -D"KBUILD_BASENAME=KBUILD_STR(ctype)" -D"KBUILD_MODNAME=KBUILD_STR(ctype)" -c -o lib/ctype.o lib/ctype.c
deps_lib/ctype.o := \
lib/ctype.c \
include/linux/ctype.h \
include/linux/module.h \
$(wildcard include/config/symbol/prefix.h) \
$(wildcard include/config/modules.h) \
$(wildcard include/config/modversions.h) \
$(wildcard include/config/unused/symbols.h) \
$(wildcard include/config/generic/bug.h) \
$(wildcard include/config/kallsyms.h) \
$(wildcard include/config/smp.h) \
$(wildcard include/config/tracepoints.h) \
$(wildcard include/config/tracing.h) \
$(wildcard include/config/event/tracing.h) \
$(wildcard include/config/ftrace/mcount/record.h) \
$(wildcard include/config/module/unload.h) \
$(wildcard include/config/constructors.h) \
$(wildcard include/config/sysfs.h) \
include/linux/list.h \
$(wildcard include/config/debug/list.h) \
include/linux/stddef.h \
include/linux/compiler.h \
$(wildcard include/config/trace/branch/profiling.h) \
$(wildcard include/config/profile/all/branches.h) \
$(wildcard include/config/enable/must/check.h) \
$(wildcard include/config/enable/warn/deprecated.h) \
include/linux/compiler-gcc.h \
$(wildcard include/config/arch/supports/optimized/inlining.h) \
$(wildcard include/config/optimize/inlining.h) \
include/linux/compiler-gcc4.h \
include/linux/poison.h \
$(wildcard include/config/illegal/pointer/value.h) \
include/linux/prefetch.h \
include/linux/types.h \
$(wildcard include/config/uid16.h) \
$(wildcard include/config/lbdaf.h) \
$(wildcard include/config/phys/addr/t/64bit.h) \
$(wildcard include/config/64bit.h) \
/home/exist/tmp/linux-2.6.35.14/linux-2.6.35/arch/x86/include/asm/types.h \
$(wildcard include/config/x86/64.h) \
$(wildcard include/config/highmem64g.h) \
include/asm-generic/types.h \
include/asm-generic/int-ll64.h \
/home/exist/tmp/linux-2.6.35.14/linux-2.6.35/arch/x86/include/asm/bitsperlong.h \
include/asm-generic/bitsperlong.h \
include/linux/posix_types.h \
/home/exist/tmp/linux-2.6.35.14/linux-2.6.35/arch/x86/include/asm/posix_types.h \
$(wildcard include/config/x86/32.h) \
/home/exist/tmp/linux-2.6.35.14/linux-2.6.35/arch/x86/include/asm/posix_types_64.h \
/home/exist/tmp/linux-2.6.35.14/linux-2.6.35/arch/x86/include/asm/processor.h \
$(wildcard include/config/x86/vsmp.h) \
$(wildcard include/config/cc/stackprotector.h) \
$(wildcard include/config/paravirt.h) \
$(wildcard include/config/m386.h) \
$(wildcard include/config/m486.h) \
$(wildcard include/config/x86/debugctlmsr.h) \
/home/exist/tmp/linux-2.6.35.14/linux-2.6.35/arch/x86/include/asm/processor-flags.h \
$(wildcard include/config/vm86.h) \
/home/exist/tmp/linux-2.6.35.14/linux-2.6.35/arch/x86/include/asm/vm86.h \
/home/exist/tmp/linux-2.6.35.14/linux-2.6.35/arch/x86/include/asm/ptrace.h \
/home/exist/tmp/linux-2.6.35.14/linux-2.6.35/arch/x86/include/asm/ptrace-abi.h \
/home/exist/tmp/linux-2.6.35.14/linux-2.6.35/arch/x86/include/asm/segment.h \
/home/exist/tmp/linux-2.6.35.14/linux-2.6.35/arch/x86/include/asm/cache.h \
$(wildcard include/config/x86/l1/cache/shift.h) \
$(wildcard include/config/x86/internode/cache/shift.h) \
include/linux/linkage.h \
/home/exist/tmp/linux-2.6.35.14/linux-2.6.35/arch/x86/include/asm/linkage.h \
$(wildcard include/config/x86/alignment/16.h) \
include/linux/stringify.h \
/home/exist/tmp/linux-2.6.35.14/linux-2.6.35/arch/x86/include/asm/page_types.h \
include/linux/const.h \
/home/exist/tmp/linux-2.6.35.14/linux-2.6.35/arch/x86/include/asm/page_64_types.h \
$(wildcard include/config/physical/start.h) \
$(wildcard include/config/physical/align.h) \
$(wildcard include/config/flatmem.h) \
include/linux/init.h \
$(wildcard include/config/hotplug.h) \
/home/exist/tmp/linux-2.6.35.14/linux-2.6.35/arch/x86/include/asm/math_emu.h \
/home/exist/tmp/linux-2.6.35.14/linux-2.6.35/arch/x86/include/asm/sigcontext.h \
/home/exist/tmp/linux-2.6.35.14/linux-2.6.35/arch/x86/include/asm/current.h \
/home/exist/tmp/linux-2.6.35.14/linux-2.6.35/arch/x86/include/asm/percpu.h \
$(wildcard include/config/x86/64/smp.h) \
include/linux/kernel.h \
$(wildcard include/config/preempt/voluntary.h) \
$(wildcard include/config/debug/spinlock/sleep.h) \
$(wildcard include/config/prove/locking.h) \
$(wildcard include/config/printk.h) \
$(wildcard include/config/dynamic/debug.h) \
$(wildcard include/config/ring/buffer.h) \
$(wildcard include/config/numa.h) \
/usr/lib/gcc/x86_64-redhat-linux/4.8.3/include/stdarg.h \
include/linux/bitops.h \
$(wildcard include/config/generic/find/first/bit.h) \
$(wildcard include/config/generic/find/last/bit.h) \
$(wildcard include/config/generic/find/next/bit.h) \
/home/exist/tmp/linux-2.6.35.14/linux-2.6.35/arch/x86/include/asm/bitops.h \
$(wildcard include/config/x86/cmov.h) \
/home/exist/tmp/linux-2.6.35.14/linux-2.6.35/arch/x86/include/asm/alternative.h \
/home/exist/tmp/linux-2.6.35.14/linux-2.6.35/arch/x86/include/asm/asm.h \
/home/exist/tmp/linux-2.6.35.14/linux-2.6.35/arch/x86/include/asm/cpufeature.h \
$(wildcard include/config/x86/invlpg.h) \
/home/exist/tmp/linux-2.6.35.14/linux-2.6.35/arch/x86/include/asm/required-features.h \
$(wildcard include/config/x86/minimum/cpu/family.h) \
$(wildcard include/config/math/emulation.h) \
$(wildcard include/config/x86/pae.h) \
$(wildcard include/config/x86/cmpxchg64.h) \
$(wildcard include/config/x86/use/3dnow.h) \
$(wildcard include/config/x86/p6/nop.h) \
include/asm-generic/bitops/sched.h \
/home/exist/tmp/linux-2.6.35.14/linux-2.6.35/arch/x86/include/asm/arch_hweight.h \
include/asm-generic/bitops/const_hweight.h \
include/asm-generic/bitops/fls64.h \
include/asm-generic/bitops/ext2-non-atomic.h \
include/asm-generic/bitops/le.h \
/home/exist/tmp/linux-2.6.35.14/linux-2.6.35/arch/x86/include/asm/byteorder.h \
include/linux/byteorder/little_endian.h \
include/linux/swab.h \
/home/exist/tmp/linux-2.6.35.14/linux-2.6.35/arch/x86/include/asm/swab.h \
$(wildcard include/config/x86/bswap.h) \
include/linux/byteorder/generic.h \
include/asm-generic/bitops/minix.h \
include/linux/log2.h \
$(wildcard include/config/arch/has/ilog2/u32.h) \
$(wildcard include/config/arch/has/ilog2/u64.h) \
include/linux/typecheck.h \
include/linux/dynamic_debug.h \
/home/exist/tmp/linux-2.6.35.14/linux-2.6.35/arch/x86/include/asm/bug.h \
$(wildcard include/config/bug.h) \
$(wildcard include/config/debug/bugverbose.h) \
include/asm-generic/bug.h \
$(wildcard include/config/generic/bug/relative/pointers.h) \
include/asm-generic/percpu.h \
$(wildcard include/config/debug/preempt.h) \
$(wildcard include/config/have/setup/per/cpu/area.h) \
include/linux/threads.h \
$(wildcard include/config/nr/cpus.h) \
$(wildcard include/config/base/small.h) \
include/linux/percpu-defs.h \
$(wildcard include/config/debug/force/weak/per/cpu.h) \
/home/exist/tmp/linux-2.6.35.14/linux-2.6.35/arch/x86/include/asm/system.h \
$(wildcard include/config/ia32/emulation.h) \
$(wildcard include/config/x86/32/lazy/gs.h) \
$(wildcard include/config/x86/ppro/fence.h) \
$(wildcard include/config/x86/oostore.h) \
/home/exist/tmp/linux-2.6.35.14/linux-2.6.35/arch/x86/include/asm/cmpxchg.h \
/home/exist/tmp/linux-2.6.35.14/linux-2.6.35/arch/x86/include/asm/cmpxchg_64.h \
/home/exist/tmp/linux-2.6.35.14/linux-2.6.35/arch/x86/include/asm/nops.h \
$(wildcard include/config/mk7.h) \
include/linux/irqflags.h \
$(wildcard include/config/trace/irqflags.h) \
$(wildcard include/config/irqsoff/tracer.h) \
$(wildcard include/config/preempt/tracer.h) \
$(wildcard include/config/trace/irqflags/support.h) \
/home/exist/tmp/linux-2.6.35.14/linux-2.6.35/arch/x86/include/asm/irqflags.h \
$(wildcard include/config/debug/lock/alloc.h) \
/home/exist/tmp/linux-2.6.35.14/linux-2.6.35/arch/x86/include/asm/page.h \
/home/exist/tmp/linux-2.6.35.14/linux-2.6.35/arch/x86/include/asm/page_64.h \
include/asm-generic/memory_model.h \
$(wildcard include/config/discontigmem.h) \
$(wildcard include/config/sparsemem/vmemmap.h) \
$(wildcard include/config/sparsemem.h) \
include/asm-generic/getorder.h \
/home/exist/tmp/linux-2.6.35.14/linux-2.6.35/arch/x86/include/asm/pgtable_types.h \
$(wildcard include/config/kmemcheck.h) \
$(wildcard include/config/compat/vdso.h) \
$(wildcard include/config/proc/fs.h) \
/home/exist/tmp/linux-2.6.35.14/linux-2.6.35/arch/x86/include/asm/pgtable_64_types.h \
/home/exist/tmp/linux-2.6.35.14/linux-2.6.35/arch/x86/include/asm/msr.h \
/home/exist/tmp/linux-2.6.35.14/linux-2.6.35/arch/x86/include/asm/msr-index.h \
include/linux/ioctl.h \
/home/exist/tmp/linux-2.6.35.14/linux-2.6.35/arch/x86/include/asm/ioctl.h \
include/asm-generic/ioctl.h \
/home/exist/tmp/linux-2.6.35.14/linux-2.6.35/arch/x86/include/asm/errno.h \
include/asm-generic/errno.h \
include/asm-generic/errno-base.h \
/home/exist/tmp/linux-2.6.35.14/linux-2.6.35/arch/x86/include/asm/cpumask.h \
include/linux/cpumask.h \
$(wildcard include/config/cpumask/offstack.h) \
$(wildcard include/config/hotplug/cpu.h) \
$(wildcard include/config/debug/per/cpu/maps.h) \
$(wildcard include/config/disable/obsolete/cpumask/functions.h) \
include/linux/bitmap.h \
include/linux/string.h \
$(wildcard include/config/binary/printf.h) \
/home/exist/tmp/linux-2.6.35.14/linux-2.6.35/arch/x86/include/asm/string.h \
/home/exist/tmp/linux-2.6.35.14/linux-2.6.35/arch/x86/include/asm/string_64.h \
include/linux/errno.h \
/home/exist/tmp/linux-2.6.35.14/linux-2.6.35/arch/x86/include/asm/desc_defs.h \
include/linux/personality.h \
include/linux/cache.h \
$(wildcard include/config/arch/has/cache/line/size.h) \
include/linux/math64.h \
/home/exist/tmp/linux-2.6.35.14/linux-2.6.35/arch/x86/include/asm/div64.h \
include/asm-generic/div64.h \
include/linux/err.h \
include/linux/stat.h \
/home/exist/tmp/linux-2.6.35.14/linux-2.6.35/arch/x86/include/asm/stat.h \
include/linux/time.h \
$(wildcard include/config/arch/uses/gettimeoffset.h) \
include/linux/seqlock.h \
include/linux/spinlock.h \
$(wildcard include/config/debug/spinlock.h) \
$(wildcard include/config/generic/lockbreak.h) \
$(wildcard include/config/preempt.h) \
include/linux/preempt.h \
$(wildcard include/config/preempt/notifiers.h) \
include/linux/thread_info.h \
$(wildcard include/config/compat.h) \
/home/exist/tmp/linux-2.6.35.14/linux-2.6.35/arch/x86/include/asm/thread_info.h \
$(wildcard include/config/debug/stack/usage.h) \
/home/exist/tmp/linux-2.6.35.14/linux-2.6.35/arch/x86/include/asm/ftrace.h \
$(wildcard include/config/function/tracer.h) \
$(wildcard include/config/dynamic/ftrace.h) \
/home/exist/tmp/linux-2.6.35.14/linux-2.6.35/arch/x86/include/asm/atomic.h \
/home/exist/tmp/linux-2.6.35.14/linux-2.6.35/arch/x86/include/asm/atomic64_64.h \
include/asm-generic/atomic-long.h \
include/linux/bottom_half.h \
include/linux/spinlock_types.h \
/home/exist/tmp/linux-2.6.35.14/linux-2.6.35/arch/x86/include/asm/spinlock_types.h \
include/linux/lockdep.h \
$(wildcard include/config/lockdep.h) \
$(wildcard include/config/lock/stat.h) \
$(wildcard include/config/generic/hardirqs.h) \
$(wildcard include/config/prove/rcu.h) \
include/linux/rwlock_types.h \
/home/exist/tmp/linux-2.6.35.14/linux-2.6.35/arch/x86/include/asm/spinlock.h \
$(wildcard include/config/paravirt/spinlocks.h) \
/home/exist/tmp/linux-2.6.35.14/linux-2.6.35/arch/x86/include/asm/rwlock.h \
/home/exist/tmp/linux-2.6.35.14/linux-2.6.35/arch/x86/include/asm/paravirt.h \
include/linux/rwlock.h \
include/linux/spinlock_api_smp.h \
$(wildcard include/config/inline/spin/lock.h) \
$(wildcard include/config/inline/spin/lock/bh.h) \
$(wildcard include/config/inline/spin/lock/irq.h) \
$(wildcard include/config/inline/spin/lock/irqsave.h) \
$(wildcard include/config/inline/spin/trylock.h) \
$(wildcard include/config/inline/spin/trylock/bh.h) \
$(wildcard include/config/inline/spin/unlock.h) \
$(wildcard include/config/inline/spin/unlock/bh.h) \
$(wildcard include/config/inline/spin/unlock/irq.h) \
$(wildcard include/config/inline/spin/unlock/irqrestore.h) \
include/linux/rwlock_api_smp.h \
$(wildcard include/config/inline/read/lock.h) \
$(wildcard include/config/inline/write/lock.h) \
$(wildcard include/config/inline/read/lock/bh.h) \
$(wildcard include/config/inline/write/lock/bh.h) \
$(wildcard include/config/inline/read/lock/irq.h) \
$(wildcard include/config/inline/write/lock/irq.h) \
$(wildcard include/config/inline/read/lock/irqsave.h) \
$(wildcard include/config/inline/write/lock/irqsave.h) \
$(wildcard include/config/inline/read/trylock.h) \
$(wildcard include/config/inline/write/trylock.h) \
$(wildcard include/config/inline/read/unlock.h) \
$(wildcard include/config/inline/write/unlock.h) \
$(wildcard include/config/inline/read/unlock/bh.h) \
$(wildcard include/config/inline/write/unlock/bh.h) \
$(wildcard include/config/inline/read/unlock/irq.h) \
$(wildcard include/config/inline/write/unlock/irq.h) \
$(wildcard include/config/inline/read/unlock/irqrestore.h) \
$(wildcard include/config/inline/write/unlock/irqrestore.h) \
include/linux/kmod.h \
include/linux/gfp.h \
$(wildcard include/config/highmem.h) \
$(wildcard include/config/zone/dma.h) \
$(wildcard include/config/zone/dma32.h) \
$(wildcard include/config/debug/vm.h) \
include/linux/mmzone.h \
$(wildcard include/config/force/max/zoneorder.h) \
$(wildcard include/config/memory/hotplug.h) \
$(wildcard include/config/compaction.h) \
$(wildcard include/config/arch/populates/node/map.h) \
$(wildcard include/config/flat/node/mem/map.h) \
$(wildcard include/config/cgroup/mem/res/ctlr.h) \
$(wildcard include/config/no/bootmem.h) \
$(wildcard include/config/have/memory/present.h) \
$(wildcard include/config/have/memoryless/nodes.h) \
$(wildcard include/config/need/node/memmap/size.h) \
$(wildcard include/config/need/multiple/nodes.h) \
$(wildcard include/config/have/arch/early/pfn/to/nid.h) \
$(wildcard include/config/sparsemem/extreme.h) \
$(wildcard include/config/nodes/span/other/nodes.h) \
$(wildcard include/config/holes/in/zone.h) \
$(wildcard include/config/arch/has/holes/memorymodel.h) \
include/linux/wait.h \
include/linux/numa.h \
$(wildcard include/config/nodes/shift.h) \
include/linux/nodemask.h \
include/linux/pageblock-flags.h \
$(wildcard include/config/hugetlb/page.h) \
$(wildcard include/config/hugetlb/page/size/variable.h) \
include/generated/bounds.h \
include/linux/memory_hotplug.h \
$(wildcard include/config/have/arch/nodedata/extension.h) \
$(wildcard include/config/memory/hotremove.h) \
include/linux/notifier.h \
include/linux/mutex.h \
$(wildcard include/config/debug/mutexes.h) \
include/linux/rwsem.h \
$(wildcard include/config/rwsem/generic/spinlock.h) \
/home/exist/tmp/linux-2.6.35.14/linux-2.6.35/arch/x86/include/asm/rwsem.h \
include/linux/srcu.h \
/home/exist/tmp/linux-2.6.35.14/linux-2.6.35/arch/x86/include/asm/mmzone.h \
/home/exist/tmp/linux-2.6.35.14/linux-2.6.35/arch/x86/include/asm/mmzone_64.h \
include/linux/mmdebug.h \
$(wildcard include/config/debug/virtual.h) \
/home/exist/tmp/linux-2.6.35.14/linux-2.6.35/arch/x86/include/asm/smp.h \
$(wildcard include/config/x86/local/apic.h) \
$(wildcard include/config/x86/io/apic.h) \
$(wildcard include/config/x86/32/smp.h) \
/home/exist/tmp/linux-2.6.35.14/linux-2.6.35/arch/x86/include/asm/mpspec.h \
$(wildcard include/config/x86/numaq.h) \
$(wildcard include/config/mca.h) \
$(wildcard include/config/eisa.h) \
$(wildcard include/config/x86/mpparse.h) \
$(wildcard include/config/acpi.h) \
/home/exist/tmp/linux-2.6.35.14/linux-2.6.35/arch/x86/include/asm/mpspec_def.h \
/home/exist/tmp/linux-2.6.35.14/linux-2.6.35/arch/x86/include/asm/x86_init.h \
/home/exist/tmp/linux-2.6.35.14/linux-2.6.35/arch/x86/include/asm/bootparam.h \
include/linux/screen_info.h \
include/linux/apm_bios.h \
include/linux/edd.h \
/home/exist/tmp/linux-2.6.35.14/linux-2.6.35/arch/x86/include/asm/e820.h \
$(wildcard include/config/efi.h) \
$(wildcard include/config/intel/txt.h) \
$(wildcard include/config/hibernation.h) \
$(wildcard include/config/memtest.h) \
include/linux/early_res.h \
include/linux/range.h \
include/linux/ioport.h \
/home/exist/tmp/linux-2.6.35.14/linux-2.6.35/arch/x86/include/asm/ist.h \
include/video/edid.h \
$(wildcard include/config/x86.h) \
/home/exist/tmp/linux-2.6.35.14/linux-2.6.35/arch/x86/include/asm/apic.h \
$(wildcard include/config/x86/x2apic.h) \
include/linux/delay.h \
/home/exist/tmp/linux-2.6.35.14/linux-2.6.35/arch/x86/include/asm/delay.h \
include/linux/pm.h \
$(wildcard include/config/pm/sleep.h) \
$(wildcard include/config/pm/runtime.h) \
$(wildcard include/config/pm/ops.h) \
include/linux/workqueue.h \
$(wildcard include/config/debug/objects/work.h) \
include/linux/timer.h \
$(wildcard include/config/timer/stats.h) \
$(wildcard include/config/debug/objects/timers.h) \
include/linux/ktime.h \
$(wildcard include/config/ktime/scalar.h) \
include/linux/jiffies.h \
include/linux/timex.h \
include/linux/param.h \
/home/exist/tmp/linux-2.6.35.14/linux-2.6.35/arch/x86/include/asm/param.h \
include/asm-generic/param.h \
$(wildcard include/config/hz.h) \
/home/exist/tmp/linux-2.6.35.14/linux-2.6.35/arch/x86/include/asm/timex.h \
/home/exist/tmp/linux-2.6.35.14/linux-2.6.35/arch/x86/include/asm/tsc.h \
$(wildcard include/config/x86/tsc.h) \
include/linux/debugobjects.h \
$(wildcard include/config/debug/objects.h) \
$(wildcard include/config/debug/objects/free.h) \
include/linux/completion.h \
/home/exist/tmp/linux-2.6.35.14/linux-2.6.35/arch/x86/include/asm/apicdef.h \
/home/exist/tmp/linux-2.6.35.14/linux-2.6.35/arch/x86/include/asm/fixmap.h \
$(wildcard include/config/provide/ohci1394/dma/init.h) \
$(wildcard include/config/x86/visws/apic.h) \
$(wildcard include/config/x86/f00f/bug.h) \
$(wildcard include/config/x86/cyclone/timer.h) \
$(wildcard include/config/pci/mmconfig.h) \
/home/exist/tmp/linux-2.6.35.14/linux-2.6.35/arch/x86/include/asm/acpi.h \
$(wildcard include/config/acpi/numa.h) \
include/acpi/pdc_intel.h \
/home/exist/tmp/linux-2.6.35.14/linux-2.6.35/arch/x86/include/asm/numa.h \
/home/exist/tmp/linux-2.6.35.14/linux-2.6.35/arch/x86/include/asm/numa_64.h \
$(wildcard include/config/numa/emu.h) \
/home/exist/tmp/linux-2.6.35.14/linux-2.6.35/arch/x86/include/asm/mmu.h \
/home/exist/tmp/linux-2.6.35.14/linux-2.6.35/arch/x86/include/asm/vsyscall.h \
$(wildcard include/config/generic/time.h) \
/home/exist/tmp/linux-2.6.35.14/linux-2.6.35/arch/x86/include/asm/io_apic.h \
/home/exist/tmp/linux-2.6.35.14/linux-2.6.35/arch/x86/include/asm/irq_vectors.h \
$(wildcard include/config/sparse/irq.h) \
/home/exist/tmp/linux-2.6.35.14/linux-2.6.35/arch/x86/include/asm/sparsemem.h \
include/linux/topology.h \
$(wildcard include/config/sched/smt.h) \
$(wildcard include/config/sched/mc.h) \
$(wildcard include/config/use/percpu/numa/node/id.h) \
include/linux/smp.h \
$(wildcard include/config/use/generic/smp/helpers.h) \
include/linux/percpu.h \
$(wildcard include/config/need/per/cpu/embed/first/chunk.h) \
$(wildcard include/config/need/per/cpu/page/first/chunk.h) \
include/linux/pfn.h \
/home/exist/tmp/linux-2.6.35.14/linux-2.6.35/arch/x86/include/asm/topology.h \
$(wildcard include/config/x86/ht.h) \
$(wildcard include/config/x86/64/acpi/numa.h) \
include/asm-generic/topology.h \
include/linux/elf.h \
include/linux/elf-em.h \
/home/exist/tmp/linux-2.6.35.14/linux-2.6.35/arch/x86/include/asm/elf.h \
/home/exist/tmp/linux-2.6.35.14/linux-2.6.35/arch/x86/include/asm/user.h \
/home/exist/tmp/linux-2.6.35.14/linux-2.6.35/arch/x86/include/asm/user_64.h \
/home/exist/tmp/linux-2.6.35.14/linux-2.6.35/arch/x86/include/asm/auxvec.h \
/home/exist/tmp/linux-2.6.35.14/linux-2.6.35/arch/x86/include/asm/vdso.h \
include/linux/kobject.h \
include/linux/sysfs.h \
include/linux/kref.h \
include/linux/moduleparam.h \
$(wildcard include/config/alpha.h) \
$(wildcard include/config/ia64.h) \
$(wildcard include/config/ppc64.h) \
include/linux/tracepoint.h \
include/linux/rcupdate.h \
$(wildcard include/config/rcu/torture/test.h) \
$(wildcard include/config/tree/rcu.h) \
$(wildcard include/config/tree/preempt/rcu.h) \
$(wildcard include/config/tiny/rcu.h) \
include/linux/rcutree.h \
$(wildcard include/config/no/hz.h) \
/home/exist/tmp/linux-2.6.35.14/linux-2.6.35/arch/x86/include/asm/module.h \
$(wildcard include/config/m586.h) \
$(wildcard include/config/m586tsc.h) \
$(wildcard include/config/m586mmx.h) \
$(wildcard include/config/mcore2.h) \
$(wildcard include/config/matom.h) \
$(wildcard include/config/m686.h) \
$(wildcard include/config/mpentiumii.h) \
$(wildcard include/config/mpentiumiii.h) \
$(wildcard include/config/mpentiumm.h) \
$(wildcard include/config/mpentium4.h) \
$(wildcard include/config/mk6.h) \
$(wildcard include/config/mk8.h) \
$(wildcard include/config/x86/elan.h) \
$(wildcard include/config/mcrusoe.h) \
$(wildcard include/config/mefficeon.h) \
$(wildcard include/config/mwinchipc6.h) \
$(wildcard include/config/mwinchip3d.h) \
$(wildcard include/config/mcyrixiii.h) \
$(wildcard include/config/mviac3/2.h) \
$(wildcard include/config/mviac7.h) \
$(wildcard include/config/mgeodegx1.h) \
$(wildcard include/config/mgeode/lx.h) \
$(wildcard include/config/4kstacks.h) \
include/asm-generic/module.h \
include/trace/events/module.h \
include/trace/define_trace.h \
lib/ctype.o: $(deps_lib/ctype.o)
$(deps_lib/ctype.o):
| Existed/kernel-2.6.35.14 | lib/.ctype.o.cmd | bat | gpl-2.0 | 23,352 |
cmd_drivers/char/hw_random/rng-core.o := /pub/CIS520/usr/arm/bin/arm-angstrom-linux-gnueabi-ld -EL -r -o drivers/char/hw_random/rng-core.o drivers/char/hw_random/core.o
| mjmccall/Kernel | drivers/char/hw_random/.rng-core.o.cmd | bat | gpl-2.0 | 173 |
cmd_fs/jbd/built-in.o := /home/adam/android/android-ndk-r5b/toolchains/arm-eabi-4.4.0/prebuilt/linux-x86/bin/arm-eabi-ld -EL -r -o fs/jbd/built-in.o fs/jbd/jbd.o
| damageless/linux-kernel-ican-tab | fs/jbd/.built-in.o.cmd | bat | gpl-2.0 | 167 |
cmd_net/sunrpc/built-in.o := /opt/freescale/usr/local/gcc-4.6.2-glibc-2.13-linaro-multilib-2011.12/fsl-linaro-toolchain/bin/arm-none-linux-gnueabi-ld -EL -r -o net/sunrpc/built-in.o net/sunrpc/sunrpc.o net/sunrpc/auth_gss/built-in.o
| FEDEVEL/tmp-imx6-tiny-rex-linux | net/sunrpc/.built-in.o.cmd | bat | gpl-2.0 | 238 |
@%~dp0\busybox.exe sh %*
| witwall/busybox-w32 | sh.bat | bat | gpl-2.0 | 25 |
cmd_drivers/mmc/core/mmc_core.o := /home/leonardo/CodeSourcery/Sourcery_G++_Lite/bin/arm-none-eabi-ld -EL -r -o drivers/mmc/core/mmc_core.o drivers/mmc/core/core.o drivers/mmc/core/bus.o drivers/mmc/core/host.o drivers/mmc/core/mmc.o drivers/mmc/core/mmc_ops.o drivers/mmc/core/sd.o drivers/mmc/core/sd_ops.o drivers/mmc/core/sdio.o drivers/mmc/core/sdio_ops.o drivers/mmc/core/sdio_bus.o drivers/mmc/core/sdio_cis.o drivers/mmc/core/sdio_io.o drivers/mmc/core/sdio_irq.o drivers/mmc/core/debugfs.o
| dalinaum/studyak | drivers/mmc/core/.mmc_core.o.cmd | bat | gpl-2.0 | 503 |
cmd_drivers/net/ethernet/dlink/built-in.o := rm -f drivers/net/ethernet/dlink/built-in.o; /home/livlogik/android/ndk/android-ndk-r10e/toolchains/aarch64-linux-android-4.9/prebuilt/linux-x86_64/bin/aarch64-linux-android-ar rcsD drivers/net/ethernet/dlink/built-in.o
| livlogik/Evil_Yummy_Gumdrop--Tmo-V10-Kernel | drivers/net/ethernet/dlink/.built-in.o.cmd | bat | gpl-2.0 | 266 |
@%~dp0\busybox.exe ln %*
| witwall/busybox-w32 | ln.bat | bat | gpl-2.0 | 25 |
cmd_fs/proc/cmdline.o := arm-none-linux-gnueabi-gcc -Wp,-MD,fs/proc/.cmdline.o.d -nostdinc -isystem /home/stesalit/arm-2009q1/bin/../lib/gcc/arm-none-linux-gnueabi/4.3.3/include -I/root/kernel-dev/linux-2.6.37/arch/arm/include -Iinclude -include include/generated/autoconf.h -D__KERNEL__ -mlittle-endian -Iarch/arm/mach-davinci/include -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Wno-format-security -fno-delete-null-pointer-checks -Os -marm -fno-omit-frame-pointer -mapcs -mno-sched-prolog -mabi=aapcs-linux -mno-thumb-interwork -D__LINUX_ARM_ARCH__=5 -march=armv5te -mtune=arm9tdmi -msoft-float -Uarm -fno-stack-protector -fno-omit-frame-pointer -fno-optimize-sibling-calls -Wdeclaration-after-statement -Wno-pointer-sign -fno-strict-overflow -D"KBUILD_STR(s)=\#s" -D"KBUILD_BASENAME=KBUILD_STR(cmdline)" -D"KBUILD_MODNAME=KBUILD_STR(proc)" -c -o fs/proc/.tmp_cmdline.o fs/proc/cmdline.c
deps_fs/proc/cmdline.o := \
fs/proc/cmdline.c \
include/linux/fs.h \
$(wildcard include/config/sysfs.h) \
$(wildcard include/config/smp.h) \
$(wildcard include/config/quota.h) \
$(wildcard include/config/fsnotify.h) \
$(wildcard include/config/ima.h) \
$(wildcard include/config/security.h) \
$(wildcard include/config/fs/posix/acl.h) \
$(wildcard include/config/preempt.h) \
$(wildcard include/config/epoll.h) \
$(wildcard include/config/debug/writecount.h) \
$(wildcard include/config/file/locking.h) \
$(wildcard include/config/auditsyscall.h) \
$(wildcard include/config/block.h) \
$(wildcard include/config/fs/xip.h) \
$(wildcard include/config/migration.h) \
include/linux/limits.h \
include/linux/ioctl.h \
/root/kernel-dev/linux-2.6.37/arch/arm/include/asm/ioctl.h \
include/asm-generic/ioctl.h \
include/linux/blk_types.h \
$(wildcard include/config/blk/dev/integrity.h) \
include/linux/types.h \
$(wildcard include/config/uid16.h) \
$(wildcard include/config/lbdaf.h) \
$(wildcard include/config/phys/addr/t/64bit.h) \
$(wildcard include/config/64bit.h) \
/root/kernel-dev/linux-2.6.37/arch/arm/include/asm/types.h \
include/asm-generic/int-ll64.h \
include/asm-generic/bitsperlong.h \
include/linux/posix_types.h \
include/linux/stddef.h \
include/linux/compiler.h \
$(wildcard include/config/sparse/rcu/pointer.h) \
$(wildcard include/config/trace/branch/profiling.h) \
$(wildcard include/config/profile/all/branches.h) \
$(wildcard include/config/enable/must/check.h) \
$(wildcard include/config/enable/warn/deprecated.h) \
include/linux/compiler-gcc.h \
$(wildcard include/config/arch/supports/optimized/inlining.h) \
$(wildcard include/config/optimize/inlining.h) \
include/linux/compiler-gcc4.h \
/root/kernel-dev/linux-2.6.37/arch/arm/include/asm/posix_types.h \
include/linux/linkage.h \
/root/kernel-dev/linux-2.6.37/arch/arm/include/asm/linkage.h \
include/linux/wait.h \
$(wildcard include/config/lockdep.h) \
include/linux/list.h \
$(wildcard include/config/debug/list.h) \
include/linux/poison.h \
$(wildcard include/config/illegal/pointer/value.h) \
include/linux/prefetch.h \
/root/kernel-dev/linux-2.6.37/arch/arm/include/asm/processor.h \
$(wildcard include/config/have/hw/breakpoint.h) \
$(wildcard include/config/mmu.h) \
/root/kernel-dev/linux-2.6.37/arch/arm/include/asm/hw_breakpoint.h \
/root/kernel-dev/linux-2.6.37/arch/arm/include/asm/ptrace.h \
$(wildcard include/config/cpu/endian/be8.h) \
$(wildcard include/config/arm/thumb.h) \
/root/kernel-dev/linux-2.6.37/arch/arm/include/asm/hwcap.h \
/root/kernel-dev/linux-2.6.37/arch/arm/include/asm/cache.h \
$(wildcard include/config/arm/l1/cache/shift.h) \
$(wildcard include/config/aeabi.h) \
include/linux/spinlock.h \
$(wildcard include/config/debug/spinlock.h) \
$(wildcard include/config/generic/lockbreak.h) \
$(wildcard include/config/debug/lock/alloc.h) \
include/linux/typecheck.h \
include/linux/preempt.h \
$(wildcard include/config/debug/preempt.h) \
$(wildcard include/config/preempt/tracer.h) \
$(wildcard include/config/preempt/notifiers.h) \
include/linux/thread_info.h \
$(wildcard include/config/compat.h) \
include/linux/bitops.h \
$(wildcard include/config/generic/find/last/bit.h) \
/root/kernel-dev/linux-2.6.37/arch/arm/include/asm/bitops.h \
/root/kernel-dev/linux-2.6.37/arch/arm/include/asm/system.h \
$(wildcard include/config/cpu/xsc3.h) \
$(wildcard include/config/cpu/fa526.h) \
$(wildcard include/config/arch/has/barriers.h) \
$(wildcard include/config/arm/dma/mem/bufferable.h) \
$(wildcard include/config/cpu/sa1100.h) \
$(wildcard include/config/cpu/sa110.h) \
$(wildcard include/config/cpu/32v6k.h) \
include/linux/irqflags.h \
$(wildcard include/config/trace/irqflags.h) \
$(wildcard include/config/irqsoff/tracer.h) \
$(wildcard include/config/trace/irqflags/support.h) \
/root/kernel-dev/linux-2.6.37/arch/arm/include/asm/irqflags.h \
/root/kernel-dev/linux-2.6.37/arch/arm/include/asm/outercache.h \
$(wildcard include/config/outer/cache/sync.h) \
$(wildcard include/config/outer/cache.h) \
/root/kernel-dev/linux-2.6.37/arch/arm/include/asm/memory.h \
$(wildcard include/config/page/offset.h) \
$(wildcard include/config/thumb2/kernel.h) \
$(wildcard include/config/highmem.h) \
$(wildcard include/config/dram/size.h) \
$(wildcard include/config/dram/base.h) \
$(wildcard include/config/have/tcm.h) \
$(wildcard include/config/zone/dma.h) \
include/linux/const.h \
arch/arm/mach-davinci/include/mach/memory.h \
$(wildcard include/config/arch/davinci/da8xx.h) \
$(wildcard include/config/arch/davinci/dmx.h) \
/root/kernel-dev/linux-2.6.37/arch/arm/include/asm/page.h \
$(wildcard include/config/cpu/copy/v3.h) \
$(wildcard include/config/cpu/copy/v4wt.h) \
$(wildcard include/config/cpu/copy/v4wb.h) \
$(wildcard include/config/cpu/copy/feroceon.h) \
$(wildcard include/config/cpu/copy/fa.h) \
$(wildcard include/config/cpu/xscale.h) \
$(wildcard include/config/cpu/copy/v6.h) \
$(wildcard include/config/sparsemem.h) \
/root/kernel-dev/linux-2.6.37/arch/arm/include/asm/glue.h \
$(wildcard include/config/cpu/arm610.h) \
$(wildcard include/config/cpu/arm710.h) \
$(wildcard include/config/cpu/abrt/lv4t.h) \
$(wildcard include/config/cpu/abrt/ev4.h) \
$(wildcard include/config/cpu/abrt/ev4t.h) \
$(wildcard include/config/cpu/abrt/ev5tj.h) \
$(wildcard include/config/cpu/abrt/ev5t.h) \
$(wildcard include/config/cpu/abrt/ev6.h) \
$(wildcard include/config/cpu/abrt/ev7.h) \
$(wildcard include/config/cpu/pabrt/legacy.h) \
$(wildcard include/config/cpu/pabrt/v6.h) \
$(wildcard include/config/cpu/pabrt/v7.h) \
include/asm-generic/getorder.h \
/root/kernel-dev/linux-2.6.37/arch/arm/include/asm/sizes.h \
include/asm-generic/memory_model.h \
$(wildcard include/config/flatmem.h) \
$(wildcard include/config/discontigmem.h) \
$(wildcard include/config/sparsemem/vmemmap.h) \
include/asm-generic/cmpxchg-local.h \
include/asm-generic/cmpxchg.h \
include/asm-generic/bitops/non-atomic.h \
include/asm-generic/bitops/fls64.h \
include/asm-generic/bitops/sched.h \
include/asm-generic/bitops/hweight.h \
include/asm-generic/bitops/arch_hweight.h \
include/asm-generic/bitops/const_hweight.h \
include/asm-generic/bitops/lock.h \
/root/kernel-dev/linux-2.6.37/arch/arm/include/asm/thread_info.h \
$(wildcard include/config/arm/thumbee.h) \
/root/kernel-dev/linux-2.6.37/arch/arm/include/asm/fpstate.h \
$(wildcard include/config/vfpv3.h) \
$(wildcard include/config/iwmmxt.h) \
/root/kernel-dev/linux-2.6.37/arch/arm/include/asm/domain.h \
$(wildcard include/config/io/36.h) \
include/linux/kernel.h \
$(wildcard include/config/preempt/voluntary.h) \
$(wildcard include/config/debug/spinlock/sleep.h) \
$(wildcard include/config/prove/locking.h) \
$(wildcard include/config/ring/buffer.h) \
$(wildcard include/config/tracing.h) \
$(wildcard include/config/numa.h) \
$(wildcard include/config/ftrace/mcount/record.h) \
/home/stesalit/arm-2009q1/bin/../lib/gcc/arm-none-linux-gnueabi/4.3.3/include/stdarg.h \
include/linux/log2.h \
$(wildcard include/config/arch/has/ilog2/u32.h) \
$(wildcard include/config/arch/has/ilog2/u64.h) \
include/linux/printk.h \
$(wildcard include/config/printk.h) \
$(wildcard include/config/dynamic/debug.h) \
include/linux/dynamic_debug.h \
include/linux/jump_label.h \
$(wildcard include/config/jump/label.h) \
/root/kernel-dev/linux-2.6.37/arch/arm/include/asm/byteorder.h \
include/linux/byteorder/little_endian.h \
include/linux/swab.h \
/root/kernel-dev/linux-2.6.37/arch/arm/include/asm/swab.h \
include/linux/byteorder/generic.h \
/root/kernel-dev/linux-2.6.37/arch/arm/include/asm/bug.h \
$(wildcard include/config/bug.h) \
$(wildcard include/config/debug/bugverbose.h) \
include/asm-generic/bug.h \
$(wildcard include/config/generic/bug.h) \
$(wildcard include/config/generic/bug/relative/pointers.h) \
/root/kernel-dev/linux-2.6.37/arch/arm/include/asm/div64.h \
include/linux/stringify.h \
include/linux/bottom_half.h \
include/linux/spinlock_types.h \
include/linux/spinlock_types_up.h \
include/linux/lockdep.h \
$(wildcard include/config/lock/stat.h) \
$(wildcard include/config/prove/rcu.h) \
include/linux/rwlock_types.h \
include/linux/spinlock_up.h \
include/linux/rwlock.h \
include/linux/spinlock_api_up.h \
/root/kernel-dev/linux-2.6.37/arch/arm/include/asm/atomic.h \
$(wildcard include/config/generic/atomic64.h) \
include/asm-generic/atomic64.h \
include/asm-generic/atomic-long.h \
/root/kernel-dev/linux-2.6.37/arch/arm/include/asm/current.h \
include/linux/kdev_t.h \
include/linux/dcache.h \
include/linux/rculist.h \
include/linux/rcupdate.h \
$(wildcard include/config/rcu/torture/test.h) \
$(wildcard include/config/preempt/rcu.h) \
$(wildcard include/config/no/hz.h) \
$(wildcard include/config/tree/rcu.h) \
$(wildcard include/config/tree/preempt/rcu.h) \
$(wildcard include/config/tiny/rcu.h) \
$(wildcard include/config/tiny/preempt/rcu.h) \
$(wildcard include/config/debug/objects/rcu/head.h) \
$(wildcard include/config/preempt/rt.h) \
include/linux/cache.h \
$(wildcard include/config/arch/has/cache/line/size.h) \
include/linux/threads.h \
$(wildcard include/config/nr/cpus.h) \
$(wildcard include/config/base/small.h) \
include/linux/cpumask.h \
$(wildcard include/config/cpumask/offstack.h) \
$(wildcard include/config/hotplug/cpu.h) \
$(wildcard include/config/debug/per/cpu/maps.h) \
$(wildcard include/config/disable/obsolete/cpumask/functions.h) \
include/linux/bitmap.h \
include/linux/string.h \
$(wildcard include/config/binary/printf.h) \
/root/kernel-dev/linux-2.6.37/arch/arm/include/asm/string.h \
include/linux/seqlock.h \
include/linux/completion.h \
include/linux/debugobjects.h \
$(wildcard include/config/debug/objects.h) \
$(wildcard include/config/debug/objects/free.h) \
include/linux/rcutree.h \
include/linux/path.h \
include/linux/stat.h \
/root/kernel-dev/linux-2.6.37/arch/arm/include/asm/stat.h \
include/linux/time.h \
$(wildcard include/config/arch/uses/gettimeoffset.h) \
include/linux/math64.h \
include/linux/radix-tree.h \
include/linux/prio_tree.h \
include/linux/init.h \
$(wildcard include/config/modules.h) \
$(wildcard include/config/hotplug.h) \
include/linux/pid.h \
include/linux/mutex.h \
$(wildcard include/config/debug/mutexes.h) \
include/linux/capability.h \
include/linux/semaphore.h \
include/linux/fiemap.h \
include/linux/quota.h \
$(wildcard include/config/quota/netlink/interface.h) \
include/linux/errno.h \
/root/kernel-dev/linux-2.6.37/arch/arm/include/asm/errno.h \
include/asm-generic/errno.h \
include/asm-generic/errno-base.h \
include/linux/rwsem.h \
$(wildcard include/config/rwsem/generic/spinlock.h) \
include/linux/rwsem-spinlock.h \
include/linux/percpu_counter.h \
include/linux/smp.h \
$(wildcard include/config/use/generic/smp/helpers.h) \
include/linux/percpu.h \
$(wildcard include/config/need/per/cpu/embed/first/chunk.h) \
$(wildcard include/config/need/per/cpu/page/first/chunk.h) \
$(wildcard include/config/have/setup/per/cpu/area.h) \
include/linux/pfn.h \
/root/kernel-dev/linux-2.6.37/arch/arm/include/asm/percpu.h \
include/asm-generic/percpu.h \
include/linux/percpu-defs.h \
$(wildcard include/config/debug/force/weak/per/cpu.h) \
include/linux/dqblk_xfs.h \
include/linux/dqblk_v1.h \
include/linux/dqblk_v2.h \
include/linux/dqblk_qtree.h \
include/linux/nfs_fs_i.h \
include/linux/nfs.h \
include/linux/sunrpc/msg_prot.h \
include/linux/inet.h \
include/linux/fcntl.h \
/root/kernel-dev/linux-2.6.37/arch/arm/include/asm/fcntl.h \
include/asm-generic/fcntl.h \
include/linux/err.h \
include/linux/proc_fs.h \
$(wildcard include/config/proc/fs.h) \
$(wildcard include/config/proc/devicetree.h) \
$(wildcard include/config/proc/kcore.h) \
include/linux/slab.h \
$(wildcard include/config/slab/debug.h) \
$(wildcard include/config/kmemcheck.h) \
$(wildcard include/config/failslab.h) \
$(wildcard include/config/slub.h) \
$(wildcard include/config/slob.h) \
$(wildcard include/config/debug/slab.h) \
$(wildcard include/config/slab.h) \
include/linux/gfp.h \
$(wildcard include/config/zone/dma32.h) \
$(wildcard include/config/debug/vm.h) \
include/linux/mmzone.h \
$(wildcard include/config/force/max/zoneorder.h) \
$(wildcard include/config/memory/hotplug.h) \
$(wildcard include/config/compaction.h) \
$(wildcard include/config/arch/populates/node/map.h) \
$(wildcard include/config/flat/node/mem/map.h) \
$(wildcard include/config/cgroup/mem/res/ctlr.h) \
$(wildcard include/config/no/bootmem.h) \
$(wildcard include/config/have/memory/present.h) \
$(wildcard include/config/have/memoryless/nodes.h) \
$(wildcard include/config/need/node/memmap/size.h) \
$(wildcard include/config/need/multiple/nodes.h) \
$(wildcard include/config/have/arch/early/pfn/to/nid.h) \
$(wildcard include/config/sparsemem/extreme.h) \
$(wildcard include/config/nodes/span/other/nodes.h) \
$(wildcard include/config/holes/in/zone.h) \
$(wildcard include/config/arch/has/holes/memorymodel.h) \
include/linux/numa.h \
$(wildcard include/config/nodes/shift.h) \
include/linux/nodemask.h \
include/linux/pageblock-flags.h \
$(wildcard include/config/hugetlb/page.h) \
$(wildcard include/config/hugetlb/page/size/variable.h) \
include/generated/bounds.h \
include/linux/memory_hotplug.h \
$(wildcard include/config/memory/hotremove.h) \
$(wildcard include/config/have/arch/nodedata/extension.h) \
include/linux/notifier.h \
include/linux/srcu.h \
include/linux/topology.h \
$(wildcard include/config/sched/smt.h) \
$(wildcard include/config/sched/mc.h) \
$(wildcard include/config/sched/book.h) \
$(wildcard include/config/use/percpu/numa/node/id.h) \
/root/kernel-dev/linux-2.6.37/arch/arm/include/asm/topology.h \
include/asm-generic/topology.h \
include/linux/mmdebug.h \
$(wildcard include/config/debug/virtual.h) \
include/linux/slub_def.h \
$(wildcard include/config/slub/stats.h) \
$(wildcard include/config/slub/debug.h) \
include/linux/workqueue.h \
$(wildcard include/config/debug/objects/work.h) \
$(wildcard include/config/freezer.h) \
include/linux/timer.h \
$(wildcard include/config/timer/stats.h) \
$(wildcard include/config/debug/objects/timers.h) \
include/linux/ktime.h \
$(wildcard include/config/ktime/scalar.h) \
include/linux/jiffies.h \
include/linux/timex.h \
include/linux/param.h \
/root/kernel-dev/linux-2.6.37/arch/arm/include/asm/param.h \
$(wildcard include/config/hz.h) \
/root/kernel-dev/linux-2.6.37/arch/arm/include/asm/timex.h \
arch/arm/mach-davinci/include/mach/timex.h \
include/linux/kobject.h \
include/linux/sysfs.h \
include/linux/kobject_ns.h \
include/linux/kref.h \
include/linux/kmemleak.h \
$(wildcard include/config/debug/kmemleak.h) \
include/trace/events/kmem.h \
include/linux/tracepoint.h \
$(wildcard include/config/tracepoints.h) \
include/trace/events/gfpflags.h \
include/trace/define_trace.h \
$(wildcard include/config/event/tracing.h) \
include/linux/magic.h \
include/linux/seq_file.h \
fs/proc/cmdline.o: $(deps_fs/proc/cmdline.o)
$(deps_fs/proc/cmdline.o):
| srinugnt2000/linux-2.6.37 | fs/proc/.cmdline.o.cmd | bat | gpl-2.0 | 16,948 |
cmd_/home/rszuminski/Development/compat-wireless-2011-08-08/net/bluetooth/bnep/bnep.ko := arm-eabi-ld -EL -r -T /home/rszuminski/Development/nitrogen_kernel/linux/scripts/module-common.lds --build-id -o /home/rszuminski/Development/compat-wireless-2011-08-08/net/bluetooth/bnep/bnep.ko /home/rszuminski/Development/compat-wireless-2011-08-08/net/bluetooth/bnep/bnep.o /home/rszuminski/Development/compat-wireless-2011-08-08/net/bluetooth/bnep/bnep.mod.o
| cdmdata/compat-wireless-2011-08-08 | net/bluetooth/bnep/.bnep.ko.cmd | bat | gpl-2.0 | 455 |
tsc @create.min.txt
pause | breathxue/cocos2d-html5-tx | src/samples/tests/create.min.bat | bat | gpl-2.0 | 26 |
cmd_drivers/mmc/card/built-in.o := /home/friedrich420/kernel/sm-arm-eabi-4.10/bin/arm-eabi-ld -EL -r -o drivers/mmc/card/built-in.o drivers/mmc/card/mmc_block.o drivers/mmc/card/mmc_block_test.o
| friedrich420/Note-3-Kernel | drivers/mmc/card/.built-in.o.cmd | bat | gpl-2.0 | 200 |
@echo off
set JAVA_EXE=java
set JAVA_OPTS=-Xmx2024m
rem In case you need to remotely debug CAAS itself
rem set JAVA_OPTS=%JAVA_OPTS% -Xdebug -Xrunjdwp:transport=dt_socket,address=127.0.0.1:9302,server=y,suspend=y
%JAVA_EXE% %JAVA_OPTS% -cp ../classes;../caas.jar org.kisst.cordys.caas.main.CaasMain -c ..\config\caas.conf %*
| MarkHooijkaas/caas-cordys-svn | bin/caas.cmd | bat | gpl-3.0 | 340 |
cmd_dest/include/video/.install := /bin/sh scripts/headers_install.sh dest/include/video ./include/uapi/video edid.h sisfb.h uvesafb.h; /bin/sh scripts/headers_install.sh dest/include/video ./include/video ; /bin/sh scripts/headers_install.sh dest/include/video ./include/generated/uapi/video ; for F in ; do echo "\#include <asm-generic/$$F>" > dest/include/video/$$F; done; touch dest/include/video/.install
| Iotlab-404/LFS | tools/include/video/..install.cmd | bat | gpl-3.0 | 410 |
del filename.lst
rd /q /s fore
rd /q /s outline
rd /q /s shadow11
rd /q /s shadow21
| YorkJong/pyFontMaker | bin/clean.bat | bat | lgpl-3.0 | 93 |
java -XX:PermSize=128m -Xmx1G -jar scheduler-starter.jar %* | Deutsche-Digitale-Bibliothek/ddb-backend | JobSchedulerServer/scheduler-start.bat | bat | apache-2.0 | 59 |
@ECHO OFF
REM Command file for Sphinx documentation
if "%SPHINXBUILD%" == "" (
set SPHINXBUILD=sphinx-build
)
set BUILDDIR=build
set ALLSPHINXOPTS=-d %BUILDDIR%/doctrees %SPHINXOPTS% source
set I18NSPHINXOPTS=%SPHINXOPTS% source
if NOT "%PAPER%" == "" (
set ALLSPHINXOPTS=-D latex_paper_size=%PAPER% %ALLSPHINXOPTS%
set I18NSPHINXOPTS=-D latex_paper_size=%PAPER% %I18NSPHINXOPTS%
)
if "%1" == "" goto help
if "%1" == "help" (
:help
echo.Please use `make ^<target^>` where ^<target^> is one of
echo. html to make standalone HTML files
echo. dirhtml to make HTML files named index.html in directories
echo. singlehtml to make a single large HTML file
echo. pickle to make pickle files
echo. json to make JSON files
echo. htmlhelp to make HTML files and a HTML help project
echo. qthelp to make HTML files and a qthelp project
echo. devhelp to make HTML files and a Devhelp project
echo. epub to make an epub
echo. epub3 to make an epub3
echo. latex to make LaTeX files, you can set PAPER=a4 or PAPER=letter
echo. text to make text files
echo. man to make manual pages
echo. texinfo to make Texinfo files
echo. gettext to make PO message catalogs
echo. changes to make an overview over all changed/added/deprecated items
echo. xml to make Docutils-native XML files
echo. pseudoxml to make pseudoxml-XML files for display purposes
echo. linkcheck to check all external links for integrity
echo. doctest to run all doctests embedded in the documentation if enabled
echo. coverage to run coverage check of the documentation if enabled
echo. dummy to check syntax errors of document sources
goto end
)
if "%1" == "clean" (
for /d %%i in (%BUILDDIR%\*) do rmdir /q /s %%i
del /q /s %BUILDDIR%\*
goto end
)
REM Check if sphinx-build is available and fallback to Python version if any
%SPHINXBUILD% 1>NUL 2>NUL
if errorlevel 9009 goto sphinx_python
goto sphinx_ok
:sphinx_python
set SPHINXBUILD=python -m sphinx.__init__
%SPHINXBUILD% 2> nul
if errorlevel 9009 (
echo.
echo.The 'sphinx-build' command was not found. Make sure you have Sphinx
echo.installed, then set the SPHINXBUILD environment variable to point
echo.to the full path of the 'sphinx-build' executable. Alternatively you
echo.may add the Sphinx directory to PATH.
echo.
echo.If you don't have Sphinx installed, grab it from
echo.http://sphinx-doc.org/
exit /b 1
)
:sphinx_ok
if "%1" == "html" (
%SPHINXBUILD% -b html %ALLSPHINXOPTS% %BUILDDIR%/html
if errorlevel 1 exit /b 1
echo.
echo.Build finished. The HTML pages are in %BUILDDIR%/html.
goto end
)
if "%1" == "dirhtml" (
%SPHINXBUILD% -b dirhtml %ALLSPHINXOPTS% %BUILDDIR%/dirhtml
if errorlevel 1 exit /b 1
echo.
echo.Build finished. The HTML pages are in %BUILDDIR%/dirhtml.
goto end
)
if "%1" == "singlehtml" (
%SPHINXBUILD% -b singlehtml %ALLSPHINXOPTS% %BUILDDIR%/singlehtml
if errorlevel 1 exit /b 1
echo.
echo.Build finished. The HTML pages are in %BUILDDIR%/singlehtml.
goto end
)
if "%1" == "pickle" (
%SPHINXBUILD% -b pickle %ALLSPHINXOPTS% %BUILDDIR%/pickle
if errorlevel 1 exit /b 1
echo.
echo.Build finished; now you can process the pickle files.
goto end
)
if "%1" == "json" (
%SPHINXBUILD% -b json %ALLSPHINXOPTS% %BUILDDIR%/json
if errorlevel 1 exit /b 1
echo.
echo.Build finished; now you can process the JSON files.
goto end
)
if "%1" == "htmlhelp" (
%SPHINXBUILD% -b htmlhelp %ALLSPHINXOPTS% %BUILDDIR%/htmlhelp
if errorlevel 1 exit /b 1
echo.
echo.Build finished; now you can run HTML Help Workshop with the ^
.hhp project file in %BUILDDIR%/htmlhelp.
goto end
)
if "%1" == "qthelp" (
%SPHINXBUILD% -b qthelp %ALLSPHINXOPTS% %BUILDDIR%/qthelp
if errorlevel 1 exit /b 1
echo.
echo.Build finished; now you can run "qcollectiongenerator" with the ^
.qhcp project file in %BUILDDIR%/qthelp, like this:
echo.^> qcollectiongenerator %BUILDDIR%\qthelp\binfield.qhcp
echo.To view the help file:
echo.^> assistant -collectionFile %BUILDDIR%\qthelp\binfield.ghc
goto end
)
if "%1" == "devhelp" (
%SPHINXBUILD% -b devhelp %ALLSPHINXOPTS% %BUILDDIR%/devhelp
if errorlevel 1 exit /b 1
echo.
echo.Build finished.
goto end
)
if "%1" == "epub" (
%SPHINXBUILD% -b epub %ALLSPHINXOPTS% %BUILDDIR%/epub
if errorlevel 1 exit /b 1
echo.
echo.Build finished. The epub file is in %BUILDDIR%/epub.
goto end
)
if "%1" == "epub3" (
%SPHINXBUILD% -b epub3 %ALLSPHINXOPTS% %BUILDDIR%/epub3
if errorlevel 1 exit /b 1
echo.
echo.Build finished. The epub3 file is in %BUILDDIR%/epub3.
goto end
)
if "%1" == "latex" (
%SPHINXBUILD% -b latex %ALLSPHINXOPTS% %BUILDDIR%/latex
if errorlevel 1 exit /b 1
echo.
echo.Build finished; the LaTeX files are in %BUILDDIR%/latex.
goto end
)
if "%1" == "latexpdf" (
%SPHINXBUILD% -b latex %ALLSPHINXOPTS% %BUILDDIR%/latex
cd %BUILDDIR%/latex
make all-pdf
cd %~dp0
echo.
echo.Build finished; the PDF files are in %BUILDDIR%/latex.
goto end
)
if "%1" == "latexpdfja" (
%SPHINXBUILD% -b latex %ALLSPHINXOPTS% %BUILDDIR%/latex
cd %BUILDDIR%/latex
make all-pdf-ja
cd %~dp0
echo.
echo.Build finished; the PDF files are in %BUILDDIR%/latex.
goto end
)
if "%1" == "text" (
%SPHINXBUILD% -b text %ALLSPHINXOPTS% %BUILDDIR%/text
if errorlevel 1 exit /b 1
echo.
echo.Build finished. The text files are in %BUILDDIR%/text.
goto end
)
if "%1" == "man" (
%SPHINXBUILD% -b man %ALLSPHINXOPTS% %BUILDDIR%/man
if errorlevel 1 exit /b 1
echo.
echo.Build finished. The manual pages are in %BUILDDIR%/man.
goto end
)
if "%1" == "texinfo" (
%SPHINXBUILD% -b texinfo %ALLSPHINXOPTS% %BUILDDIR%/texinfo
if errorlevel 1 exit /b 1
echo.
echo.Build finished. The Texinfo files are in %BUILDDIR%/texinfo.
goto end
)
if "%1" == "gettext" (
%SPHINXBUILD% -b gettext %I18NSPHINXOPTS% %BUILDDIR%/locale
if errorlevel 1 exit /b 1
echo.
echo.Build finished. The message catalogs are in %BUILDDIR%/locale.
goto end
)
if "%1" == "changes" (
%SPHINXBUILD% -b changes %ALLSPHINXOPTS% %BUILDDIR%/changes
if errorlevel 1 exit /b 1
echo.
echo.The overview file is in %BUILDDIR%/changes.
goto end
)
if "%1" == "linkcheck" (
%SPHINXBUILD% -b linkcheck %ALLSPHINXOPTS% %BUILDDIR%/linkcheck
if errorlevel 1 exit /b 1
echo.
echo.Link check complete; look for any errors in the above output ^
or in %BUILDDIR%/linkcheck/output.txt.
goto end
)
if "%1" == "doctest" (
%SPHINXBUILD% -b doctest %ALLSPHINXOPTS% %BUILDDIR%/doctest
if errorlevel 1 exit /b 1
echo.
echo.Testing of doctests in the sources finished, look at the ^
results in %BUILDDIR%/doctest/output.txt.
goto end
)
if "%1" == "coverage" (
%SPHINXBUILD% -b coverage %ALLSPHINXOPTS% %BUILDDIR%/coverage
if errorlevel 1 exit /b 1
echo.
echo.Testing of coverage in the sources finished, look at the ^
results in %BUILDDIR%/coverage/python.txt.
goto end
)
if "%1" == "xml" (
%SPHINXBUILD% -b xml %ALLSPHINXOPTS% %BUILDDIR%/xml
if errorlevel 1 exit /b 1
echo.
echo.Build finished. The XML files are in %BUILDDIR%/xml.
goto end
)
if "%1" == "pseudoxml" (
%SPHINXBUILD% -b pseudoxml %ALLSPHINXOPTS% %BUILDDIR%/pseudoxml
if errorlevel 1 exit /b 1
echo.
echo.Build finished. The pseudo-XML files are in %BUILDDIR%/pseudoxml.
goto end
)
if "%1" == "dummy" (
%SPHINXBUILD% -b dummy %ALLSPHINXOPTS% %BUILDDIR%/dummy
if errorlevel 1 exit /b 1
echo.
echo.Build finished. Dummy builder generates no files.
goto end
)
:end
| penguinolog/binfield | doc/make.bat | bat | apache-2.0 | 7,464 |
@echo off
set DIR=%~dp0
set OUTPUT_DIR=%DIR%
set MAKE_LUABINDING="%QUICK_COCOS2DX_ROOT%\bin\compile_luabinding.bat"
call %MAKE_LUABINDING% -E CCOBJECTS=ProcessBase,Animation,ArmatureDataManager,Bone,Armature -d %OUTPUT_DIR% CSArmature_luabinding.tolua
| idtek/extendwork | lib/third_party/CSArmature/luabinding/build.bat | bat | apache-2.0 | 252 |
:: (c) Copyright 2009 - 2010 Xilinx, Inc. All rights reserved.
::
:: This file contains confidential and proprietary information
:: of Xilinx, Inc. and is protected under U.S. and
:: international copyright and other intellectual property
:: laws.
::
:: DISCLAIMER
:: This disclaimer is not a license and does not grant any
:: rights to the materials distributed herewith. Except as
:: otherwise provided in a valid license issued to you by
:: Xilinx, and to the maximum extent permitted by applicable
:: law: (1) THESE MATERIALS ARE MADE AVAILABLE "AS IS" AND
:: WITH ALL FAULTS, AND XILINX HEREBY DISCLAIMS ALL WARRANTIES
:: AND CONDITIONS, EXPRESS, IMPLIED, OR STATUTORY, INCLUDING
:: BUT NOT LIMITED TO WARRANTIES OF MERCHANTABILITY, NON-
:: INFRINGEMENT, OR FITNESS FOR ANY PARTICULAR PURPOSE; and
:: (2) Xilinx shall not be liable (whether in contract or tort,
:: including negligence, or under any other theory of
:: liability) for any loss or damage of any kind or nature
:: related to, arising under or in connection with these
:: materials, including for any direct, or any indirect,
:: special, incidental, or consequential loss or damage
:: (including loss of data, profits, goodwill, or any type of
:: loss or damage suffered as a result of any action brought
:: by a third party) even if such damage or loss was
:: reasonably foreseeable or Xilinx had been advised of the
:: possibility of the same.
::
:: CRITICAL APPLICATIONS
:: Xilinx products are not designed or intended to be fail-
:: safe, or for use in any application requiring fail-safe
:: performance, such as life-support or safety devices or
:: systems, Class III medical devices, nuclear facilities,
:: applications related to the deployment of airbags, or any
:: other applications that could lead to death, personal
:: injury, or severe property or environmental damage
:: (individually and collectively, "Critical
:: Applications"). Customer assumes the sole risk and
:: liability of any use of Xilinx products in Critical
:: Applications, subject only to applicable laws and
:: regulations governing limitations on product liability.
::
:: THIS COPYRIGHT NOTICE AND DISCLAIMER MUST BE RETAINED AS
:: PART OF THIS FILE AT ALL TIMES.
::--------------------------------------------------------------------------------
cp ..\..\..\weights.mif .
echo "Compiling Core VHDL UNISIM/Behavioral model"
vhpcomp -work work ..\..\implement\results\routed.vhd
echo "Compiling Test Bench Files"
vhpcomp -work work ..\bmg_tb_pkg.vhd
vhpcomp -work work ..\random.vhd
vhpcomp -work work ..\data_gen.vhd
vhpcomp -work work ..\addr_gen.vhd
vhpcomp -work work ..\checker.vhd
vhpcomp -work work ..\bmg_stim_gen.vhd
vhpcomp -work work ..\weights_synth.vhd
vhpcomp -work work ..\weights_tb.vhd
fuse -L simprim work.weights_tb -o weights_tb.exe
.\weights_tb.exe -sdftyp /weights_tb/weights_synth_inst/bmg_port=..\..\implement\results\routed.sdf -gui -tclbatch simcmds.tcl
| saidwivedi/Face-Recognition-Hardware | ANN_FPGA/ipcore_dir/weights/simulation/timing/simulate_isim.bat | bat | bsd-2-clause | 2,971 |
@echo off
setlocal & pushd
if {%1}=={} goto _HELP
:_DOIT
call lgl_set.bat
move %TEMP_BAT_DIR%\%1.bat %BAT_DIR%
goto _END
:_HELP
echo upgrade a batch from temporary folder to permanent folder
echo usage:
echo %~nx0 batch-filename
:_END
endlocal & popd
goto:EOF
| greenlaw110/winenv | bin/upbat.bat | bat | bsd-2-clause | 275 |
ngwsx.exe -r | zxy050/ngwsx | run-as-service.bat | bat | bsd-2-clause | 12 |
@echo off
pushd %~dp0
"%VS120COMNTOOLS%..\IDE\mstest" /test:Microsoft.Protocols.TestSuites.MS_ASCMD.S18_SmartReply.MSASCMD_S18_TC03_SmartReply_Status104 /testcontainer:..\..\MS-ASCMD\TestSuite\bin\Debug\MS-ASCMD_TestSuite.dll /runconfig:..\..\MS-ASCMD\MS-ASCMD.testsettings /unique
pause | XinwLi/Interop-TestSuites-1 | ExchangeActiveSync/Source/Scripts/MS-ASCMD/RunMSASCMD_S18_TC03_SmartReply_Status104.cmd | bat | mit | 287 |
@echo off
pushd %~dp0
"%VS120COMNTOOLS%..\IDE\mstest" /test:Microsoft.Protocols.TestSuites.MS_FSSHTTP_FSSHTTPB.MS_FSSHTTP_FSSHTTPB_S04_ExclusiveLock.TestCase_S04_TC01_GetExclusiveLock_Success /testcontainer:..\..\MS-FSSHTTP-FSSHTTPB\TestSuite\bin\Debug\MS-FSSHTTP-FSSHTTPB_TestSuite.dll /runconfig:..\..\MS-FSSHTTP-FSSHTTPB\MS-FSSHTTP-FSSHTTPB.testsettings /unique
pause | XinwLi/Interop-TestSuites-1 | FileSyncandWOPI/Source/Scripts/MS-FSSHTTP-FSSHTTPB/RunTestCase_S04_TC01.cmd | bat | mit | 370 |
@erase lang.inc
@echo lang fix ru >lang.inc
@fasm launcher.asm launcher
@erase lang.inc
@pause | devlato/kolibrios-llvm | programs/system/launcher/trunk/build_ru.bat | bat | mit | 94 |
@echo off
REM SetNFRoot - Find/Create and return short path for current directory
REM DAV 01APR19
setlocal
if %1.==. goto :set_path
:check_opts
if /I %1==-h goto :help
if /I %1==-d set rmsubst=-d
:set_path
set _mypath=%~dp0
call :setshortpath %_mypath%
rem pushd %shortpath%
if [%rmsubst%]==[-d] goto :remsubst
goto :end
:remsubst
set v=%shortpath:~0,2%
echo Remove subst of %mypath% on %v%
if [%rmsubst%]==[-d] subst /D %v%
endlocal & set "nfRoot=%_mypath%"
setx nfRoot %nfRoot% >nul
echo %nfRoot%
goto :eof
:end
:: Clear %errorlevel%
call set _a=a > nul
endlocal & set "nfRoot=%shortpath%"
setx nfRoot %nfRoot% >nul
echo %nfRoot%
rem popd
::exit
goto :eof
:: ============ Utility commands =====
:: === Help
:help
echo:
echo Usage: %0 [opt]
echo:
echo opt = -d Delete subst if exists
echo opt = -h Display this help message
echo:
echo Command line tool to find or create a short directory path
echo for the current directory using the subst command
echo:
goto :eof
REM ==========================================================
REM Utility Functions
REM
REM Call to set a short path to try avoid overflowing 250 char file path limit
:setshortpath
set "mypath=%~1"
set shortpath=%mypath%
rem echo mypath = %_mypath%
REM Are we already on short path?
set t=%mypath:~0,3%
if /I %t%==%mypath% goto :haveshortpath
REM Not on short path - is there already a subst for it?
FOR /F "tokens=1,3" %%G IN ('subst') DO (
if /I "%%H\"=="%mypath%" (
set sdg=%%G
goto :foundsubst
)
)
REM No subst short path found - create one
call :freedrive driveletter && goto :cont
echo ERROR: No free drive letter found, staying on original path
goto :haveshortpath
:cont
echo Found free drive letter: %driveletter% 1>&2
pushd %mypath%
subst %driveletter% .
popd
set shortpath=%driveletter%\
echo Created new subst for %mypath% on %driveletter% 1>&2
echo You can remove it with subst %driveletter% /D 1>&2
goto :haveshortpath
:foundsubst
set shortpath=%sdg:~0,3%
echo Using existing subst for %mypath% on %shortpath% 1>&2
goto :haveshortpath
:haveshortpath
echo Using short path %shortpath% for %mypath% 1>&2
REM So now we have a short path if it was possible
goto :eof
rem Finds a free drive letter.
rem
rem Parameters:
rem %1 = Output variable name.
rem
rem Example:
rem call :freedrive mydriveletter && goto :cont
rem echo ERROR: No free drive letter found.
rem goto :EOF
rem :cont
rem echo Found drive letter: %mydriveletter%
:freedrive
setlocal EnableDelayedExpansion
set exitcode=0
set "output_var=%~1"
for %%i in (B,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,V,W,X,Y,Z) do (
set "drive=%%i:"
rem If 'subst' fails, the drive letter is already in use.
rem This way we can even detect optical drives that have a drive
rem letter but no media in them, a case that goes undetected when
rem using 'if exist'.
subst !drive! %SystemDrive%\ >nul
if !errorlevel! == 0 (
subst !drive! /d >nul
goto :freedrive0
)
)
set exitcode=1
set drive=
:freedrive0
endlocal & set "%output_var%=%drive%" & exit /b %exitcode%
:exit
:eof
| nanoframework/nf-interpreter | SetNFRoot.bat | bat | mit | 3,086 |
mkdir project\lib\
xcopy build\bin\civetweb.lib project\lib\ /s /e
xcopy build\bin\libprotobuf.lib project\lib\ /s /e
xcopy build\bin\libprotobufd.lib project\lib\ /s /e
xcopy build\bin\sc2lib.lib project\lib\ /s /e
xcopy build\bin\sc2libd.lib project\lib\ /s /e
xcopy build\bin\sc2api.lib project\lib\ /s /e
xcopy build\bin\sc2apid.lib project\lib\ /s /e
xcopy build\bin\sc2protocol.lib project\lib\ /s /e
xcopy build\bin\sc2protocold.lib project\lib\ /s /e
xcopy build\bin\sc2renderer.lib project\lib\ /s /e
xcopy build\bin\sc2rendererd.lib project\lib\ /s /e
xcopy build\bin\sc2utils.lib project\lib\ /s /e
xcopy build\bin\sc2utilsd.lib project\lib\ /s /e
xcopy build\bin\SDL2.lib project\lib\ /s /e
xcopy maps\* project\project\maps\ /s /e
xcopy include\sc2api\* project\include\sc2api\ /s /e
xcopy include\sc2lib\* project\include\sc2lib\ /s /e
xcopy include\sc2renderer\* project\include\sc2renderer\ /s /e
xcopy include\sc2utils\* project\include\sc2utils\ /s /e
xcopy build\generated\* project\include\ /s /e
xcopy contrib\protobuf\src\google\* project\include\google\ /s /e
xcopy contrib\protobuf\src\google\* project\include\google\ /s /e
| Blizzard/s2client-api | synchproject.bat | bat | mit | 1,151 |
cmd_net/bluetooth/bnep/built-in.o := arm-linux-gnueabihf-ld -EL -r -o net/bluetooth/bnep/built-in.o net/bluetooth/bnep/bnep.o
| Dee-UK/D33_KK_Kernel | net/bluetooth/bnep/.built-in.o.cmd | bat | gpl-2.0 | 131 |
@echo off
REM As neuroConstruct requires files from the NeuroML repository as well as from its own
REM Subversion repository, use the following script to keep all of the necessary code up
REM to date. Note this script may change as the location of the repositories change
set NML_EX_DIR=templates\xmlTemplates\Examples
set NML_SC_DIR=templates\xmlTemplates\Schemata
set SBML2NEU_SC_DIR=templates\SBML2NEURON
set NEUROML2_DIR=NeuroML2
set JNEUROMLJAR_DIR=jNeuroMLJar
set OSB_SHOWCASE_DIR=osb\showcase
set NC_SHOWCASE_DIR=osb\showcase\neuroConstructShowcase
if not exist %NML_EX_DIR% (
echo Adding NeuroML v1.x code from SourceForge in %NML_EX_DIR%
svn co https://svn.code.sf.net/p/neuroml/code/trunk/web/NeuroMLFiles/Examples/ %NML_EX_DIR%
)
echo Updating the examples from the NeuroML Sourceforge repository...
svn update %NML_EX_DIR%
if not exist %NML_SC_DIR% (
echo Adding NeuroML v1.x code from SourceForge in %NML_SC_DIR%
svn co https://svn.code.sf.net/p/neuroml/code/trunk/web/NeuroMLFiles/Schemata/ %NML_SC_DIR%
)
echo Updating the schema files from the NeuroML Sourceforge repository...
svn update %NML_SC_DIR%
if not exist %NEUROML2_DIR% (
echo Adding NeuroML v2alpha code from SourceForge in %NEUROML2_DIR%
svn co https://svn.code.sf.net/p/neuroml/code/NeuroML2 %NEUROML2_DIR%
)
echo Updating the NeuroML 2 files from the NeuroML Sourceforge repository...
svn update %NEUROML2_DIR%
if not exist %JNEUROMLJAR_DIR% (
echo Adding jNeuroML jar from SourceForge in %JNEUROMLJAR_DIR%
svn co https://svn.code.sf.net/p/neuroml/code/jNeuroMLJar %JNEUROMLJAR_DIR%
)
echo Updating the jNeuroMLJar files from the NeuroML Sourceforge repository...
svn update %JNEUROMLJAR_DIR%
echo Updating the main neuroConstruct code...
git pull
if not exist %OSB_SHOWCASE_DIR% (
echo Creating %OSB_SHOWCASE_DIR%
mkdir %OSB_SHOWCASE_DIR%
)
if not exist %NC_SHOWCASE_DIR% (
echo Cloning neuroConstruct showcase examples into %NC_SHOWCASE_DIR%
cd %OSB_SHOWCASE_DIR%
git clone [email protected]:OpenSourceBrain/neuroConstructShowcase.git
cd ..\..
)
echo Updating the neuroConstruct showcase examples
cd %NC_SHOWCASE_DIR%
git pull
cd ..\..\..
| rgerkin/neuroConstruct | updatenC.bat | bat | gpl-2.0 | 2,255 |
@ECHO OFF
REM Command file for Sphinx documentation
if "%SPHINXBUILD%" == "" (
set SPHINXBUILD=sphinx-build
)
set BUILDDIR=_build
set ALLSPHINXOPTS=-d %BUILDDIR%/doctrees %SPHINXOPTS% .
set I18NSPHINXOPTS=%SPHINXOPTS% .
if NOT "%PAPER%" == "" (
set ALLSPHINXOPTS=-D latex_paper_size=%PAPER% %ALLSPHINXOPTS%
set I18NSPHINXOPTS=-D latex_paper_size=%PAPER% %I18NSPHINXOPTS%
)
if "%1" == "" goto help
if "%1" == "help" (
:help
echo.Please use `make ^<target^>` where ^<target^> is one of
echo. html to make standalone HTML files
echo. dirhtml to make HTML files named index.html in directories
echo. singlehtml to make a single large HTML file
echo. pickle to make pickle files
echo. json to make JSON files
echo. htmlhelp to make HTML files and a HTML help project
echo. qthelp to make HTML files and a qthelp project
echo. devhelp to make HTML files and a Devhelp project
echo. epub to make an epub
echo. latex to make LaTeX files, you can set PAPER=a4 or PAPER=letter
echo. text to make text files
echo. man to make manual pages
echo. texinfo to make Texinfo files
echo. gettext to make PO message catalogs
echo. changes to make an overview over all changed/added/deprecated items
echo. linkcheck to check all external links for integrity
echo. doctest to run all doctests embedded in the documentation if enabled
goto end
)
if "%1" == "clean" (
for /d %%i in (%BUILDDIR%\*) do rmdir /q /s %%i
del /q /s %BUILDDIR%\*
goto end
)
if "%1" == "html" (
%SPHINXBUILD% -b html %ALLSPHINXOPTS% %BUILDDIR%/html
if errorlevel 1 exit /b 1
echo.
echo.Build finished. The HTML pages are in %BUILDDIR%/html.
goto end
)
if "%1" == "dirhtml" (
%SPHINXBUILD% -b dirhtml %ALLSPHINXOPTS% %BUILDDIR%/dirhtml
if errorlevel 1 exit /b 1
echo.
echo.Build finished. The HTML pages are in %BUILDDIR%/dirhtml.
goto end
)
if "%1" == "singlehtml" (
%SPHINXBUILD% -b singlehtml %ALLSPHINXOPTS% %BUILDDIR%/singlehtml
if errorlevel 1 exit /b 1
echo.
echo.Build finished. The HTML pages are in %BUILDDIR%/singlehtml.
goto end
)
if "%1" == "pickle" (
%SPHINXBUILD% -b pickle %ALLSPHINXOPTS% %BUILDDIR%/pickle
if errorlevel 1 exit /b 1
echo.
echo.Build finished; now you can process the pickle files.
goto end
)
if "%1" == "json" (
%SPHINXBUILD% -b json %ALLSPHINXOPTS% %BUILDDIR%/json
if errorlevel 1 exit /b 1
echo.
echo.Build finished; now you can process the JSON files.
goto end
)
if "%1" == "htmlhelp" (
%SPHINXBUILD% -b htmlhelp %ALLSPHINXOPTS% %BUILDDIR%/htmlhelp
if errorlevel 1 exit /b 1
echo.
echo.Build finished; now you can run HTML Help Workshop with the ^
.hhp project file in %BUILDDIR%/htmlhelp.
goto end
)
if "%1" == "qthelp" (
%SPHINXBUILD% -b qthelp %ALLSPHINXOPTS% %BUILDDIR%/qthelp
if errorlevel 1 exit /b 1
echo.
echo.Build finished; now you can run "qcollectiongenerator" with the ^
.qhcp project file in %BUILDDIR%/qthelp, like this:
echo.^> qcollectiongenerator %BUILDDIR%\qthelp\PyXDG.qhcp
echo.To view the help file:
echo.^> assistant -collectionFile %BUILDDIR%\qthelp\PyXDG.ghc
goto end
)
if "%1" == "devhelp" (
%SPHINXBUILD% -b devhelp %ALLSPHINXOPTS% %BUILDDIR%/devhelp
if errorlevel 1 exit /b 1
echo.
echo.Build finished.
goto end
)
if "%1" == "epub" (
%SPHINXBUILD% -b epub %ALLSPHINXOPTS% %BUILDDIR%/epub
if errorlevel 1 exit /b 1
echo.
echo.Build finished. The epub file is in %BUILDDIR%/epub.
goto end
)
if "%1" == "latex" (
%SPHINXBUILD% -b latex %ALLSPHINXOPTS% %BUILDDIR%/latex
if errorlevel 1 exit /b 1
echo.
echo.Build finished; the LaTeX files are in %BUILDDIR%/latex.
goto end
)
if "%1" == "text" (
%SPHINXBUILD% -b text %ALLSPHINXOPTS% %BUILDDIR%/text
if errorlevel 1 exit /b 1
echo.
echo.Build finished. The text files are in %BUILDDIR%/text.
goto end
)
if "%1" == "man" (
%SPHINXBUILD% -b man %ALLSPHINXOPTS% %BUILDDIR%/man
if errorlevel 1 exit /b 1
echo.
echo.Build finished. The manual pages are in %BUILDDIR%/man.
goto end
)
if "%1" == "texinfo" (
%SPHINXBUILD% -b texinfo %ALLSPHINXOPTS% %BUILDDIR%/texinfo
if errorlevel 1 exit /b 1
echo.
echo.Build finished. The Texinfo files are in %BUILDDIR%/texinfo.
goto end
)
if "%1" == "gettext" (
%SPHINXBUILD% -b gettext %I18NSPHINXOPTS% %BUILDDIR%/locale
if errorlevel 1 exit /b 1
echo.
echo.Build finished. The message catalogs are in %BUILDDIR%/locale.
goto end
)
if "%1" == "changes" (
%SPHINXBUILD% -b changes %ALLSPHINXOPTS% %BUILDDIR%/changes
if errorlevel 1 exit /b 1
echo.
echo.The overview file is in %BUILDDIR%/changes.
goto end
)
if "%1" == "linkcheck" (
%SPHINXBUILD% -b linkcheck %ALLSPHINXOPTS% %BUILDDIR%/linkcheck
if errorlevel 1 exit /b 1
echo.
echo.Link check complete; look for any errors in the above output ^
or in %BUILDDIR%/linkcheck/output.txt.
goto end
)
if "%1" == "doctest" (
%SPHINXBUILD% -b doctest %ALLSPHINXOPTS% %BUILDDIR%/doctest
if errorlevel 1 exit /b 1
echo.
echo.Testing of doctests in the sources finished, look at the ^
results in %BUILDDIR%/doctest/output.txt.
goto end
)
:end
| 0312birdzhang/pyxdg | docs/make.bat | bat | lgpl-2.1 | 5,094 |
@echo off
call settings.cmd
"Bat_To_Exe_Converter_%LOCAL_ARCHITECTURE%.exe" -bat "setup-weboob.bat" -save "setup-weboob-%WEBOOB_VERSION%-%ARCHITECTURE%.exe" -icon "ICON\weboobtxt.ico" -include "Bat_To_Exe_Converter_%ARCHITECTURE%.exe" -include "wget-%ARCHITECTURE%.exe" -include "%WEBOOB%" -include "convertPNG2ICO.py" -include "ez_setup.py" -include "settings.cmd"
| laurent-george/weboob | contrib/windows-install/create-exe-setup-weboob.bat | bat | agpl-3.0 | 369 |
@echo off
REM see "New Windows terminal/flasher apps & Visual Studio" http://www.esp8266.com/viewtopic.php?f=9&t=911 to setup Visual Studio 2013
REM remove automatic created obj folder
rd obj /S /Q >nul 2>&1
PATH=%PATH%;%~dp0..\xtensa-lx106-elf\bin;C:\MinGW\bin;C:\MinGW\msys\1.0\bin
make -f makefile_VS2013 %1 %2 %3 %4 %5
| dima-ch/esp-serial-terminal | firmware/espmake.cmd | bat | gpl-2.0 | 327 |
@echo off
set output=..\..\Package\Release
set resources=%output%\Resources
echo Removing Resources folder %resources%
rmdir /S /Q %resources%
echo Removing generated NuGet files from %output%
rmdir /S /Q %output%\de
rmdir /S /Q %output%\es
rmdir /S /Q %output%\fr
rmdir /S /Q %output%\it
rmdir /S /Q %output%\ja
rmdir /S /Q %output%\ko
rmdir /S /Q %output%\ru
rmdir /S /Q %output%\zh-Hans
rmdir /S /Q %output%\zh-Hant
echo Delete XML help files for helper dlls from %output%
del %output%\Microsoft.Data.Edm.xml
del %output%\Microsoft.Data.OData.xml
del %output%\Microsoft.Data.Services.Client.xml
del %output%\Microsoft.WindowsAzure.Storage.xml
del %output%\Newtonsoft.Json.xml
del %output%\System.Net.Http.Formatting.xml
del %output%\System.Net.Http.xml
del %output%\System.Spatial.xml
del %output%\System.Net.Http.WebRequest.xml
heat dir %output% -srd -gg -g1 -cg azurecmdfiles -sfrag -dr PowerShellFolder -var var.sourceDir -o azurecmdfiles.wxi | antonba/azure-sdk-tools | WindowsAzurePowershell/setup/generate.cmd | bat | apache-2.0 | 953 |
cmd_drivers/video/logo/logo_parisc_clut224.c := scripts/pnmtologo -t clut224 -n logo_parisc_clut224 -o drivers/video/logo/logo_parisc_clut224.c drivers/video/logo/logo_parisc_clut224.ppm
| chrnueve/udooImaxdi | kernel_oficial_source/drivers/video/logo/.logo_parisc_clut224.c.cmd | bat | gpl-2.0 | 187 |
echo off
REM
REM Configuration script for Windows
REM Changes the installation paths in the
REM etc\ directory
REM
REM Copyright (c) 2009, Glencoe Software, Inc.
REM See LICENSE for details.
set OLD=%CD%
cd %~dp0\..
call bin\setpythonpath.bat
python lib\python\omero\install\win_set_path.py %*
cd %OLD%
set OLD=
| stelfrich/openmicroscopy | components/tools/OmeroPy/bin/winconfig.bat | bat | gpl-2.0 | 333 |
@echo off
set BUILD_DIR=build
set BUILD_NAME=JSPlugins.jar
set PLUGIN_DIR=..\..\Server\minecraft\Spigot 1.8\plugins
if not exist "%PLUGIN_DIR%" (
echo Directory %PLUGIN_DIR% not found. Aborting.
goto :eof
)
copy "%BUILD_DIR%\%BUILD_NAME%" "%PLUGIN_DIR%\%BUILD_NAME%" /Y | zaboing/JSPlugins | deploy.bat | bat | mit | 274 |
C:\cygwin\bin\bash install-dependencies.sh
gradlew.bat build --stacktrace
gradlew.bat installYausmainReleaseExecutable
| apetrozzelli/yaus | appveyor-ci.bat | bat | mit | 122 |
@echo off
cls
COLOR B0
TITLE UNIFORM SERVER - Server Information test
rem ###################################################
rem # Name: unitray_info.bat
rem # Created By: The Uniform Server Development Team
rem # Edited Last By: Mike Gleaves (ric)
rem # V 1.0 3-12-2009
rem ##################################################
rem ### working directory current folder
pushd %~dp0
..\..\usr\local\php\php.exe -n unitray_info.php 1
pause
rem ### restore original working directory
popd
EXIT | ravihansa3000/vesuvius-portable-windows | PortableApps/SahanaFoundation.org/unicon/tray_menu/unitray_info.bat | bat | mit | 515 |
cd unit
haxelib run munit test
cd .. | slavikyad/dotMath | unit/run.bat | bat | mit | 36 |
@echo off
setlocal enabledelayedexpansion enableextensions
type client-part1.html > client.ejs
echo. >> client.ejs
echo ^<div^> ^<^^!--CORE FILES--^> >> client.ejs
for %%x in (core/*.js) do echo ^<script src="core/%%x"^>^</script^> >> client.ejs
echo ^</div^> >> client.ejs
echo. >> client.ejs
echo ^<div^> ^<^^!--LIB FILES--^> >> client.ejs
for %%x in (lib/*.js) do echo ^<script src="lib/%%x"^>^</script^> >> client.ejs
echo ^</div^> >> client.ejs
echo. >> client.ejs
echo ^<div^> ^<^^!--GUI FILES--^> >> client.ejs
for %%x in (gui/*.js) do echo ^<script src="gui/%%x"^>^</script^> >> client.ejs
echo ^</div^> >> client.ejs
echo. >> client.ejs
echo ^<div^> ^<^^!--DATA FILES--^> >> client.ejs
for %%x in (data/*.js) do echo ^<script src="data/%%x"^>^</script^> >> client.ejs
echo ^</div^> >> client.ejs
echo. >> client.ejs
type client-part2.html >> client.ejs
| marky7/GlobalGameJam_2017 | client/client-maker.bat | bat | mit | 868 |
cmd_arch/arm/vfp/built-in.o := /home/ar/android/aosp/prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/bin/arm-eabi-ld -EL --no-warn-mismatch -r -o arch/arm/vfp/built-in.o arch/arm/vfp/vfp.o
| kannu1994/crespo_kernel | arch/arm/vfp/.built-in.o.cmd | bat | gpl-2.0 | 190 |
@set include=
cd gt_dm
del /q vm
mkdir vm
cd vm
set cc=sof2lcc -A -DQ3_VM -DMISSIONPACK -S -Wf-target=bytecode -Wf-g -I..\..\..\gametype -I..\..\gt_dm -I..\..\..\game %1
%cc% ../gt_main.c
@if errorlevel 1 goto quit
%cc% ../gt_dm.c
@if errorlevel 1 goto quit
%cc% ../gt_ft.c
@if errorlevel 1 goto quit
%cc% ../gt_gg.c
@if errorlevel 1 goto quit
%cc% ../../gt_syscalls.c
@if errorlevel 1 goto quit
%cc% ../../../game/bg_lib.c
@if errorlevel 1 goto quit
%cc% ../../../game/q_shared.c
@if errorlevel 1 goto quit
%cc% ../../../game/q_math.c
@if errorlevel 1 goto quit
sof2asm -f ../gt_dm
@if errorlevel 1 goto quit
copy *.map "..\..\..\..\SOF2\RPM\vm"
copy *.qvm "..\..\..\..\SOF2\RPM\vm"
:quit
cd ..
PAUSE
| godordevil/RPM-0.75.x | Source Code - RPM 0.75.x/gametype/gt_dm.bat | bat | gpl-2.0 | 720 |
cmd_net/unix/af_unix.o := gcc -Wp,-MD,net/unix/.af_unix.o.d -nostdinc -isystem /usr/lib/gcc/x86_64-linux-gnu/4.6/include -D__KERNEL__ -Iinclude -include include/linux/autoconf.h -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -O2 -fno-optimize-sibling-calls -mtune=generic -m64 -mno-red-zone -mcmodel=kernel -pipe -Wno-sign-compare -fno-asynchronous-unwind-tables -funit-at-a-time -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -maccumulate-outgoing-args -fno-omit-frame-pointer -fno-optimize-sibling-calls -g -fno-stack-protector -Wdeclaration-after-statement -Wno-pointer-sign -D"KBUILD_STR(s)=\#s" -D"KBUILD_BASENAME=KBUILD_STR(af_unix)" -D"KBUILD_MODNAME=KBUILD_STR(unix)" -c -o net/unix/af_unix.o net/unix/af_unix.c
deps_net/unix/af_unix.o := \
net/unix/af_unix.c \
$(wildcard include/config/security/network.h) \
$(wildcard include/config/proc/fs.h) \
include/linux/module.h \
$(wildcard include/config/modules.h) \
$(wildcard include/config/modversions.h) \
$(wildcard include/config/unused/symbols.h) \
$(wildcard include/config/generic/bug.h) \
$(wildcard include/config/module/unload.h) \
$(wildcard include/config/kallsyms.h) \
$(wildcard include/config/sysfs.h) \
include/linux/spinlock.h \
$(wildcard include/config/smp.h) \
$(wildcard include/config/debug/spinlock.h) \
$(wildcard include/config/preempt.h) \
$(wildcard include/config/debug/lock/alloc.h) \
include/linux/preempt.h \
$(wildcard include/config/debug/preempt.h) \
include/linux/thread_info.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/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/asm/posix_types.h \
include/asm/types.h \
include/linux/bitops.h \
include/asm/bitops.h \
include/asm/alternative.h \
$(wildcard include/config/paravirt.h) \
include/asm/cpufeature.h \
include/asm-generic/bitops/sched.h \
include/asm-generic/bitops/hweight.h \
include/asm-generic/bitops/ext2-non-atomic.h \
include/asm-generic/bitops/le.h \
include/asm/byteorder.h \
include/linux/byteorder/little_endian.h \
include/linux/byteorder/swab.h \
include/linux/byteorder/generic.h \
include/asm-generic/bitops/minix.h \
include/asm/thread_info.h \
$(wildcard include/config/debug/stack/usage.h) \
include/asm/page.h \
$(wildcard include/config/physical/start.h) \
$(wildcard include/config/flatmem.h) \
include/linux/const.h \
include/asm/bug.h \
$(wildcard include/config/bug.h) \
$(wildcard include/config/debug/bugverbose.h) \
include/asm-generic/bug.h \
include/asm-generic/memory_model.h \
$(wildcard include/config/discontigmem.h) \
$(wildcard include/config/sparsemem.h) \
$(wildcard include/config/out/of/line/pfn/to/page.h) \
include/asm-generic/page.h \
include/asm/pda.h \
$(wildcard include/config/cc/stackprotector.h) \
include/linux/cache.h \
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) \
/usr/lib/gcc/x86_64-linux-gnu/4.6/include/stdarg.h \
include/linux/linkage.h \
include/asm/linkage.h \
include/linux/log2.h \
$(wildcard include/config/arch/has/ilog2/u32.h) \
$(wildcard include/config/arch/has/ilog2/u64.h) \
include/asm/cache.h \
$(wildcard include/config/x86/l1/cache/shift.h) \
$(wildcard include/config/x86/vsmp.h) \
include/asm/mmsegment.h \
include/linux/stringify.h \
include/linux/bottom_half.h \
include/asm/system.h \
$(wildcard include/config/unordered/io.h) \
include/asm/segment.h \
include/asm/cmpxchg.h \
include/linux/irqflags.h \
$(wildcard include/config/trace/irqflags.h) \
$(wildcard include/config/trace/irqflags/support.h) \
$(wildcard include/config/x86.h) \
include/asm/irqflags.h \
include/asm/processor-flags.h \
include/asm-i386/processor-flags.h \
include/linux/spinlock_types.h \
include/linux/lockdep.h \
$(wildcard include/config/lockdep.h) \
$(wildcard include/config/generic/hardirqs.h) \
$(wildcard include/config/prove/locking.h) \
include/linux/list.h \
$(wildcard include/config/debug/list.h) \
include/linux/poison.h \
include/linux/prefetch.h \
include/asm/processor.h \
include/asm/sigcontext.h \
include/linux/threads.h \
$(wildcard include/config/nr/cpus.h) \
$(wildcard include/config/base/small.h) \
include/asm/msr.h \
include/asm/msr-index.h \
include/asm-i386/msr-index.h \
include/linux/errno.h \
include/asm/errno.h \
include/asm-generic/errno.h \
include/asm-generic/errno-base.h \
include/asm/current.h \
include/asm/percpu.h \
include/linux/personality.h \
include/linux/cpumask.h \
$(wildcard include/config/hotplug/cpu.h) \
include/linux/bitmap.h \
include/linux/string.h \
include/asm/string.h \
include/linux/debug_locks.h \
$(wildcard include/config/debug/locking/api/selftests.h) \
include/linux/stacktrace.h \
$(wildcard include/config/stacktrace.h) \
include/linux/spinlock_types_up.h \
include/linux/spinlock_up.h \
include/linux/spinlock_api_smp.h \
include/asm/atomic.h \
include/asm-generic/atomic.h \
include/linux/stat.h \
include/asm/stat.h \
include/linux/time.h \
include/linux/seqlock.h \
include/linux/kmod.h \
$(wildcard include/config/kmod.h) \
include/linux/elf.h \
include/linux/auxvec.h \
include/asm/auxvec.h \
include/linux/elf-em.h \
include/asm/elf.h \
include/asm/ptrace.h \
include/asm/ptrace-abi.h \
include/asm/user.h \
include/linux/kobject.h \
$(wildcard include/config/hotplug.h) \
include/linux/sysfs.h \
include/linux/kref.h \
include/linux/wait.h \
include/linux/moduleparam.h \
include/linux/init.h \
$(wildcard include/config/memory/hotplug.h) \
$(wildcard include/config/acpi/hotplug/memory.h) \
include/asm/local.h \
include/linux/percpu.h \
include/linux/slab.h \
$(wildcard include/config/slab/debug.h) \
$(wildcard include/config/slab.h) \
$(wildcard include/config/slub.h) \
$(wildcard include/config/debug/slab.h) \
include/linux/gfp.h \
$(wildcard include/config/zone/dma.h) \
$(wildcard include/config/zone/dma32.h) \
$(wildcard include/config/highmem.h) \
include/linux/mmzone.h \
$(wildcard include/config/force/max/zoneorder.h) \
$(wildcard include/config/arch/populates/node/map.h) \
$(wildcard include/config/flat/node/mem/map.h) \
$(wildcard include/config/have/memory/present.h) \
$(wildcard include/config/need/node/memmap/size.h) \
$(wildcard include/config/need/multiple/nodes.h) \
$(wildcard include/config/have/arch/early/pfn/to/nid.h) \
$(wildcard include/config/sparsemem/extreme.h) \
$(wildcard include/config/nodes/span/other/nodes.h) \
$(wildcard include/config/holes/in/zone.h) \
include/linux/numa.h \
$(wildcard include/config/nodes/shift.h) \
include/linux/nodemask.h \
include/linux/memory_hotplug.h \
$(wildcard include/config/have/arch/nodedata/extension.h) \
include/linux/notifier.h \
include/linux/mutex.h \
$(wildcard include/config/debug/mutexes.h) \
include/linux/mutex-debug.h \
include/linux/rwsem.h \
$(wildcard include/config/rwsem/generic/spinlock.h) \
include/linux/rwsem-spinlock.h \
include/linux/srcu.h \
include/linux/topology.h \
$(wildcard include/config/sched/smt.h) \
$(wildcard include/config/sched/mc.h) \
include/linux/smp.h \
include/asm/topology.h \
$(wildcard include/config/acpi/numa.h) \
include/asm-generic/topology.h \
include/linux/slub_def.h \
include/linux/workqueue.h \
include/linux/timer.h \
$(wildcard include/config/timer/stats.h) \
include/linux/ktime.h \
$(wildcard include/config/ktime/scalar.h) \
include/linux/jiffies.h \
include/linux/calc64.h \
include/asm/div64.h \
include/asm-generic/div64.h \
include/linux/timex.h \
$(wildcard include/config/time/interpolation.h) \
$(wildcard include/config/no/hz.h) \
include/asm/param.h \
$(wildcard include/config/hz.h) \
include/asm/timex.h \
include/asm/8253pit.h \
include/asm/vsyscall.h \
$(wildcard include/config/generic/time.h) \
include/asm/hpet.h \
$(wildcard include/config/hpet/emulate/rtc.h) \
include/asm/tsc.h \
include/asm-i386/tsc.h \
$(wildcard include/config/x86/tsc.h) \
$(wildcard include/config/x86/generic.h) \
include/asm/module.h \
include/linux/signal.h \
include/asm/signal.h \
include/asm-generic/signal.h \
include/asm/siginfo.h \
include/asm-generic/siginfo.h \
include/linux/sched.h \
$(wildcard include/config/detect/softlockup.h) \
$(wildcard include/config/split/ptlock/cpus.h) \
$(wildcard include/config/keys.h) \
$(wildcard include/config/bsd/process/acct.h) \
$(wildcard include/config/taskstats.h) \
$(wildcard include/config/inotify/user.h) \
$(wildcard include/config/schedstats.h) \
$(wildcard include/config/task/delay/acct.h) \
$(wildcard include/config/blk/dev/io/trace.h) \
$(wildcard include/config/sysvipc.h) \
$(wildcard include/config/rt/mutexes.h) \
$(wildcard include/config/task/xacct.h) \
$(wildcard include/config/cpusets.h) \
$(wildcard include/config/compat.h) \
$(wildcard include/config/fault/injection.h) \
include/linux/capability.h \
include/linux/rbtree.h \
include/asm/semaphore.h \
include/asm/rwlock.h \
include/asm/mmu.h \
include/asm/cputime.h \
include/asm-generic/cputime.h \
include/linux/sem.h \
include/linux/ipc.h \
$(wildcard include/config/ipc/ns.h) \
include/asm/ipcbuf.h \
include/asm/sembuf.h \
include/linux/securebits.h \
include/linux/fs_struct.h \
include/linux/completion.h \
include/linux/pid.h \
include/linux/rcupdate.h \
include/linux/seccomp.h \
$(wildcard include/config/seccomp.h) \
include/linux/futex.h \
$(wildcard include/config/futex.h) \
include/linux/rtmutex.h \
$(wildcard include/config/debug/rt/mutexes.h) \
include/linux/plist.h \
$(wildcard include/config/debug/pi/list.h) \
include/linux/param.h \
include/linux/resource.h \
include/asm/resource.h \
include/asm-generic/resource.h \
include/linux/hrtimer.h \
$(wildcard include/config/high/res/timers.h) \
include/linux/task_io_accounting.h \
$(wildcard include/config/task/io/accounting.h) \
include/linux/aio.h \
include/linux/aio_abi.h \
include/linux/uio.h \
include/linux/dcache.h \
$(wildcard include/config/profiling.h) \
include/linux/namei.h \
include/linux/socket.h \
include/asm/socket.h \
include/asm/sockios.h \
include/linux/sockios.h \
include/linux/un.h \
include/linux/fcntl.h \
include/asm/fcntl.h \
include/asm-generic/fcntl.h \
$(wildcard include/config/64bit.h) \
include/linux/termios.h \
include/asm/termios.h \
include/asm/termbits.h \
include/asm/ioctls.h \
include/asm/ioctl.h \
include/asm-generic/ioctl.h \
include/linux/net.h \
$(wildcard include/config/sysctl.h) \
include/linux/random.h \
include/linux/ioctl.h \
include/linux/sysctl.h \
include/linux/in.h \
include/linux/fs.h \
$(wildcard include/config/dnotify.h) \
$(wildcard include/config/quota.h) \
$(wildcard include/config/inotify.h) \
$(wildcard include/config/security.h) \
$(wildcard include/config/epoll.h) \
$(wildcard include/config/auditsyscall.h) \
$(wildcard include/config/block.h) \
$(wildcard include/config/fs/xip.h) \
$(wildcard include/config/migration.h) \
include/linux/limits.h \
include/linux/kdev_t.h \
include/linux/radix-tree.h \
include/linux/prio_tree.h \
include/linux/quota.h \
include/linux/dqblk_xfs.h \
include/linux/dqblk_v1.h \
include/linux/dqblk_v2.h \
include/linux/nfs_fs_i.h \
include/linux/nfs.h \
include/linux/sunrpc/msg_prot.h \
include/linux/err.h \
include/asm/uaccess.h \
include/linux/skbuff.h \
$(wildcard include/config/nf/conntrack.h) \
$(wildcard include/config/bridge/netfilter.h) \
$(wildcard include/config/vlan/8021q.h) \
$(wildcard include/config/net/sched.h) \
$(wildcard include/config/net/cls/act.h) \
$(wildcard include/config/net/dma.h) \
$(wildcard include/config/network/secmark.h) \
include/linux/textsearch.h \
include/net/checksum.h \
include/asm/checksum.h \
include/linux/dmaengine.h \
$(wildcard include/config/dma/engine.h) \
include/linux/netdevice.h \
$(wildcard include/config/ax25.h) \
$(wildcard include/config/tr.h) \
$(wildcard include/config/net/ipip.h) \
$(wildcard include/config/net/ipgre.h) \
$(wildcard include/config/ipv6/sit.h) \
$(wildcard include/config/ipv6/tunnel.h) \
$(wildcard include/config/wireless/ext.h) \
$(wildcard include/config/netpoll.h) \
$(wildcard include/config/net/poll/controller.h) \
$(wildcard include/config/netpoll/trap.h) \
include/linux/if.h \
include/linux/hdlc/ioctl.h \
include/linux/if_ether.h \
include/linux/if_packet.h \
include/linux/device.h \
$(wildcard include/config/debug/devres.h) \
include/linux/ioport.h \
include/linux/klist.h \
include/linux/pm.h \
$(wildcard include/config/pm.h) \
include/asm/device.h \
$(wildcard include/config/acpi.h) \
include/linux/interrupt.h \
$(wildcard include/config/generic/irq/probe.h) \
include/linux/irqreturn.h \
include/linux/hardirq.h \
$(wildcard include/config/preempt/bkl.h) \
$(wildcard include/config/virt/cpu/accounting.h) \
include/linux/smp_lock.h \
$(wildcard include/config/lock/kernel.h) \
include/asm/hardirq.h \
include/linux/irq.h \
$(wildcard include/config/s390.h) \
$(wildcard include/config/irq/per/cpu.h) \
$(wildcard include/config/irq/release/method.h) \
$(wildcard include/config/generic/pending/irq.h) \
$(wildcard include/config/irqbalance.h) \
$(wildcard include/config/auto/irq/affinity.h) \
$(wildcard include/config/generic/hardirqs/no//do/irq.h) \
include/asm/irq.h \
include/asm/irq_regs.h \
include/asm-generic/irq_regs.h \
include/asm/hw_irq.h \
include/linux/profile.h \
include/asm/apic.h \
$(wildcard include/config/x86/good/apic.h) \
include/linux/delay.h \
include/asm/delay.h \
include/asm/fixmap.h \
include/asm/apicdef.h \
include/net/sock.h \
include/linux/mm.h \
$(wildcard include/config/mmu.h) \
$(wildcard include/config/stack/growsup.h) \
$(wildcard include/config/debug/vm.h) \
$(wildcard include/config/shmem.h) \
$(wildcard include/config/ia64.h) \
$(wildcard include/config/debug/pagealloc.h) \
include/linux/backing-dev.h \
include/linux/mm_types.h \
include/asm/pgtable.h \
include/asm-generic/pgtable.h \
include/linux/page-flags.h \
$(wildcard include/config/swap.h) \
include/linux/vmstat.h \
$(wildcard include/config/vm/event/counters.h) \
include/linux/security.h \
$(wildcard include/config/security/network/xfrm.h) \
include/linux/binfmts.h \
include/linux/shm.h \
include/asm/shmparam.h \
include/asm/shmbuf.h \
include/linux/msg.h \
include/asm/msgbuf.h \
include/linux/key.h \
include/linux/xfrm.h \
include/net/flow.h \
$(wildcard include/config/ipv6/mip6.h) \
include/linux/in6.h \
include/linux/filter.h \
include/net/dst.h \
$(wildcard include/config/net/cls/route.h) \
$(wildcard include/config/xfrm.h) \
include/linux/rtnetlink.h \
include/linux/netlink.h \
include/linux/if_link.h \
include/linux/if_addr.h \
include/linux/neighbour.h \
include/net/neighbour.h \
include/linux/seq_file.h \
include/net/rtnetlink.h \
include/net/netlink.h \
include/net/tcp_states.h \
include/net/af_unix.h \
include/linux/proc_fs.h \
$(wildcard include/config/proc/devicetree.h) \
$(wildcard include/config/proc/kcore.h) \
include/linux/magic.h \
include/net/scm.h \
include/linux/poll.h \
include/asm/poll.h \
include/asm-generic/poll.h \
include/linux/mount.h \
net/unix/af_unix.o: $(deps_net/unix/af_unix.o)
$(deps_net/unix/af_unix.o):
| dnh34/proj1 | net/unix/.af_unix.o.cmd | bat | gpl-2.0 | 16,544 |
cmd_fs/ext2/ext2.o := ld -m elf_i386 -r -o fs/ext2/ext2.o fs/ext2/balloc.o fs/ext2/dir.o fs/ext2/file.o fs/ext2/ialloc.o fs/ext2/inode.o fs/ext2/ioctl.o fs/ext2/namei.o fs/ext2/super.o fs/ext2/symlink.o fs/ext2/xattr.o fs/ext2/xattr_user.o fs/ext2/xattr_trusted.o fs/ext2/acl.o fs/ext2/xattr_security.o
| madhwang/linuxKernel | fs/ext2/.ext2.o.cmd | bat | gpl-2.0 | 306 |
cmd_arch/arm/lib/lib1funcs.o := /mnt/disk2/Dev/UG802/kernel/toolchains/arm-eabi-linaro-4.6.2/bin/arm-eabi-gcc -Wp,-MD,arch/arm/lib/.lib1funcs.o.d -nostdinc -isystem /mnt/disk2/Dev/UG802/kernel/toolchains/arm-eabi-linaro-4.6.2/bin/../lib/gcc/arm-eabi/4.6.2/include -I/mnt/disk2/Dev/UG802/kernel/picuntu-3.0.8-alok/arch/arm/include -Iarch/arm/include/generated -Iinclude -include include/generated/autoconf.h -D__KERNEL__ -mlittle-endian -Iarch/arm/mach-rk30/include -Iarch/arm/plat-rk/include -D__ASSEMBLY__ -mabi=aapcs-linux -mno-thumb-interwork -funwind-tables -D__LINUX_ARM_ARCH__=7 -march=armv7-a -include asm/unified.h -msoft-float -c -o arch/arm/lib/lib1funcs.o arch/arm/lib/lib1funcs.S
source_arch/arm/lib/lib1funcs.o := arch/arm/lib/lib1funcs.S
deps_arch/arm/lib/lib1funcs.o := \
$(wildcard include/config/aeabi.h) \
/mnt/disk2/Dev/UG802/kernel/picuntu-3.0.8-alok/arch/arm/include/asm/unified.h \
$(wildcard include/config/arm/asm/unified.h) \
$(wildcard include/config/thumb2/kernel.h) \
include/linux/linkage.h \
include/linux/compiler.h \
$(wildcard include/config/sparse/rcu/pointer.h) \
$(wildcard include/config/trace/branch/profiling.h) \
$(wildcard include/config/profile/all/branches.h) \
$(wildcard include/config/enable/must/check.h) \
$(wildcard include/config/enable/warn/deprecated.h) \
/mnt/disk2/Dev/UG802/kernel/picuntu-3.0.8-alok/arch/arm/include/asm/linkage.h \
/mnt/disk2/Dev/UG802/kernel/picuntu-3.0.8-alok/arch/arm/include/asm/assembler.h \
$(wildcard include/config/cpu/feroceon.h) \
$(wildcard include/config/trace/irqflags.h) \
$(wildcard include/config/smp.h) \
/mnt/disk2/Dev/UG802/kernel/picuntu-3.0.8-alok/arch/arm/include/asm/ptrace.h \
$(wildcard include/config/cpu/endian/be8.h) \
$(wildcard include/config/arm/thumb.h) \
/mnt/disk2/Dev/UG802/kernel/picuntu-3.0.8-alok/arch/arm/include/asm/hwcap.h \
/mnt/disk2/Dev/UG802/kernel/picuntu-3.0.8-alok/arch/arm/include/asm/domain.h \
$(wildcard include/config/io/36.h) \
$(wildcard include/config/cpu/use/domains.h) \
/mnt/disk2/Dev/UG802/kernel/picuntu-3.0.8-alok/arch/arm/include/asm/unwind.h \
$(wildcard include/config/arm/unwind.h) \
arch/arm/lib/lib1funcs.o: $(deps_arch/arm/lib/lib1funcs.o)
$(deps_arch/arm/lib/lib1funcs.o):
| aloksinha2001/picuntu-3.0.8-alok | arch/arm/lib/.lib1funcs.o.cmd | bat | gpl-2.0 | 2,313 |
cmd_sound/pci/ali5451/built-in.o := rm -f sound/pci/ali5451/built-in.o; /home/rittik/android/kernel/toolchains/arm-eabi-linaro-4.6.2/bin/arm-eabi-ar rcsD sound/pci/ali5451/built-in.o
| RittikBhowmik/Project-Crater-Kernel-GT-i9152 | sound/pci/ali5451/.built-in.o.cmd | bat | gpl-2.0 | 184 |
cmd_arch/arm/lib/io-writesw-armv4.o := /home/josh/gcc-linaro-arm-linux-gnueabihf-4.7-2013.04-20130415_linux/bin/arm-linux-gnueabihf-gcc -Wp,-MD,arch/arm/lib/.io-writesw-armv4.o.d -nostdinc -isystem /home/josh/gcc-linaro-arm-linux-gnueabihf-4.7-2013.04-20130415_linux/bin/../lib/gcc/arm-linux-gnueabihf/4.7.3/include -I/home/josh/TF700-dualboot-stockbased/arch/arm/include -Iarch/arm/include/generated -Iinclude -include /home/josh/TF700-dualboot-stockbased/include/linux/kconfig.h -D__KERNEL__ -mlittle-endian -Iarch/arm/mach-tegra/include -D__ASSEMBLY__ -mabi=aapcs-linux -mno-thumb-interwork -funwind-tables -D__LINUX_ARM_ARCH__=7 -march=armv7-a -include asm/unified.h -msoft-float -c -o arch/arm/lib/io-writesw-armv4.o arch/arm/lib/io-writesw-armv4.S
source_arch/arm/lib/io-writesw-armv4.o := arch/arm/lib/io-writesw-armv4.S
deps_arch/arm/lib/io-writesw-armv4.o := \
/home/josh/TF700-dualboot-stockbased/include/linux/kconfig.h \
$(wildcard include/config/h.h) \
$(wildcard include/config/.h) \
$(wildcard include/config/foo.h) \
/home/josh/TF700-dualboot-stockbased/arch/arm/include/asm/unified.h \
$(wildcard include/config/arm/asm/unified.h) \
$(wildcard include/config/thumb2/kernel.h) \
include/linux/linkage.h \
include/linux/compiler.h \
$(wildcard include/config/sparse/rcu/pointer.h) \
$(wildcard include/config/trace/branch/profiling.h) \
$(wildcard include/config/profile/all/branches.h) \
$(wildcard include/config/enable/must/check.h) \
$(wildcard include/config/enable/warn/deprecated.h) \
/home/josh/TF700-dualboot-stockbased/arch/arm/include/asm/linkage.h \
/home/josh/TF700-dualboot-stockbased/arch/arm/include/asm/assembler.h \
$(wildcard include/config/cpu/feroceon.h) \
$(wildcard include/config/trace/irqflags.h) \
$(wildcard include/config/smp.h) \
/home/josh/TF700-dualboot-stockbased/arch/arm/include/asm/ptrace.h \
$(wildcard include/config/cpu/endian/be8.h) \
$(wildcard include/config/arm/thumb.h) \
/home/josh/TF700-dualboot-stockbased/arch/arm/include/asm/hwcap.h \
/home/josh/TF700-dualboot-stockbased/arch/arm/include/asm/domain.h \
$(wildcard include/config/io/36.h) \
$(wildcard include/config/cpu/use/domains.h) \
arch/arm/lib/io-writesw-armv4.o: $(deps_arch/arm/lib/io-writesw-armv4.o)
$(deps_arch/arm/lib/io-writesw-armv4.o):
| JoinTheRealms/TF700-dualboot-stockbased | arch/arm/lib/.io-writesw-armv4.o.cmd | bat | gpl-2.0 | 2,366 |
C:\Python34\python.exe setup.py bdist_msi
pause() | CerisicAsbl/pspsdaq | Create_msi.bat | bat | gpl-2.0 | 50 |
cmd_net/ipv4/netfilter/nft_chain_route_ipv4.ko := /home/ashishtanwer/goldfish3.10/../x86_64-linux-android-4.7/bin/x86_64-linux-android-ld -r -m elf_i386 -T /home/ashishtanwer/goldfish3.10/scripts/module-common.lds --build-id -o net/ipv4/netfilter/nft_chain_route_ipv4.ko net/ipv4/netfilter/nft_chain_route_ipv4.o net/ipv4/netfilter/nft_chain_route_ipv4.mod.o
| ashishtanwer/NFTable-porting-on-Android-Goldfish | net/ipv4/netfilter/.nft_chain_route_ipv4.ko.cmd | bat | gpl-2.0 | 360 |
@%~dp0\busybox.exe [ %*
| witwall/busybox-w32 | [.bat | bat | gpl-2.0 | 24 |
@ECHO OFF
SETLOCAL ENABLEDELAYEDEXPANSION ENABLEEXTENSIONS
SET "LUA_PATH=C:\Program Files (x86)\LuaRocks\lua\?.lua;C:\Program Files (x86)\LuaRocks\lua\?\init.lua;%LUA_PATH%"
IF NOT "%LUA_PATH_5_2%"=="" (
SET "LUA_PATH_5_2=C:\Program Files (x86)\LuaRocks\lua\?.lua;C:\Program Files (x86)\LuaRocks\lua\?\init.lua;%LUA_PATH_5_2%"
)
IF NOT "%LUA_PATH_5_3%"=="" (
SET "LUA_PATH_5_3=C:\Program Files (x86)\LuaRocks\lua\?.lua;C:\Program Files (x86)\LuaRocks\lua\?\init.lua;%LUA_PATH_5_3%"
)
SET "PATH=C:\Program Files (x86)\LuaRocks;%PATH%"
"D:\Programs\Lua\bin\\lua.exe" "C:\Program Files (x86)\LuaRocks\luarocks.lua" %*
SET EXITCODE=%ERRORLEVEL%
IF NOT "%EXITCODE%"=="2" GOTO EXITLR
REM Permission denied error, try and auto elevate...
REM already an admin? (checking to prevent loops)
NET SESSION >NUL 2>&1
IF "%ERRORLEVEL%"=="0" GOTO EXITLR
REM Do we have PowerShell available?
PowerShell /? >NUL 2>&1
IF NOT "%ERRORLEVEL%"=="0" GOTO EXITLR
:GETTEMPNAME
SET TMPFILE=%TEMP%\LuaRocks-Elevator-%RANDOM%.bat
IF EXIST "%TMPFILE%" GOTO :GETTEMPNAME
ECHO @ECHO OFF > "%TMPFILE%"
ECHO CHDIR /D %CD% >> "%TMPFILE%"
ECHO ECHO %0 %* >> "%TMPFILE%"
ECHO ECHO. >> "%TMPFILE%"
ECHO CALL %0 %* >> "%TMPFILE%"
ECHO ECHO. >> "%TMPFILE%"
ECHO ECHO Press any key to close this window... >> "%TMPFILE%"
ECHO PAUSE ^> NUL >> "%TMPFILE%"
ECHO DEL "%TMPFILE%" >> "%TMPFILE%"
ECHO Now retrying as a privileged user...
PowerShell -Command (New-Object -com 'Shell.Application').ShellExecute('%TMPFILE%', '', '', 'runas')
:EXITLR
exit /b %EXITCODE%
| evilexecutable/ResourceKeeper | install/LuaRocks/luarocks.bat | bat | gpl-2.0 | 1,792 |
::dummy:: --[[
@texlua "%~f0" %*
@goto :eof
]]
local io, os, string, table, package, require, assert, error, ipairs, type, select, arg = io, os, string, table, package, require, assert, error, ipairs, type, select, arg
local CLUTTEX_VERBOSITY, CLUTTEX_VERSION
os.type = os.type or "windows"
if lfs and not package.loaded['lfs'] then package.loaded['lfs'] = lfs end
if os.type == "windows" then
package.preload["texrunner.pathutil"] = function(...)
--[[
Copyright 2016 ARATA Mizuki
This file is part of ClutTeX.
ClutTeX is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
ClutTeX is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with ClutTeX. If not, see <http://www.gnu.org/licenses/>.
]]
-- pathutil module
local assert = assert
local select = select
local string = string
local string_find = string.find
local string_sub = string.sub
local string_match = string.match
local string_gsub = string.gsub
local filesys = require "lfs"
local function basename(path)
local i = 0
while true do
local j = string_find(path, "[\\/]", i + 1)
if j == nil then
return string_sub(path, i + 1)
elseif j == #path then
return string_sub(path, i + 1, -2)
end
i = j
end
end
local function dirname(path)
local i = 0
while true do
local j = string_find(path, "[\\/]", i + 1)
if j == nil then
if i == 0 then
-- No directory portion
return "."
elseif i == 1 then
-- Root
return string_sub(path, 1, 1)
else
-- Directory portion without trailing slash
return string_sub(path, 1, i - 1)
end
end
i = j
end
end
local function parentdir(path)
local i = 0
while true do
local j = string_find(path, "[\\/]", i + 1)
if j == nil then
if i == 0 then
-- No directory portion
return "."
elseif i == 1 then
-- Root
return string_sub(path, 1, 1)
else
-- Directory portion without trailing slash
return string_sub(path, 1, i - 1)
end
elseif j == #path then
-- Directory portion without trailing slash
return string_sub(path, 1, i - 1)
end
i = j
end
end
local function trimext(path)
return (string_gsub(path, "%.[^\\/%.]*$", ""))
end
local function ext(path)
return string_match(path, "%.([^\\/%.]*)$") or ""
end
local function replaceext(path, newext)
local newpath, n = string_gsub(path, "%.([^\\/%.]*)$", function() return "." .. newext end)
if n == 0 then
return newpath .. "." .. newext
else
return newpath
end
end
local function joinpath2(x, y)
local xd = x
local last = string_sub(x, -1)
if last ~= "/" and last ~= "\\" then
xd = x .. "\\"
end
if y == "." then
return xd
elseif y == ".." then
return dirname(x)
else
if string_match(y, "^%.[\\/]") then
return xd .. string_sub(y, 3)
else
return xd .. y
end
end
end
local function joinpath(...)
local n = select("#", ...)
if n == 2 then
return joinpath2(...)
elseif n == 0 then
return "."
elseif n == 1 then
return ...
else
return joinpath(joinpath2(...), select(3, ...))
end
end
-- https://msdn.microsoft.com/en-us/library/windows/desktop/aa365247(v=vs.85).aspx
local function isabspath(path)
local init = string_sub(path, 1, 1)
return init == "\\" or init == "/" or string_match(path, "^%a:[/\\]")
end
local function abspath(path, cwd)
if isabspath(path) then
-- absolute path
return path
else
-- TODO: relative path with a drive letter is not supported
cwd = cwd or filesys.currentdir()
return joinpath2(cwd, path)
end
end
return {
basename = basename,
dirname = dirname,
parentdir = parentdir,
trimext = trimext,
ext = ext,
replaceext = replaceext,
join = joinpath,
abspath = abspath,
}
end
else
package.preload["texrunner.pathutil"] = function(...)
--[[
Copyright 2016 ARATA Mizuki
This file is part of ClutTeX.
ClutTeX is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
ClutTeX is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with ClutTeX. If not, see <http://www.gnu.org/licenses/>.
]]
-- pathutil module for *nix
local assert = assert
local select = select
local string = string
local string_find = string.find
local string_sub = string.sub
local string_match = string.match
local string_gsub = string.gsub
local filesys = require "lfs"
local function basename(path)
local i = 0
while true do
local j = string_find(path, "/", i + 1, true)
if j == nil then
return string_sub(path, i + 1)
elseif j == #path then
return string_sub(path, i + 1, -2)
end
i = j
end
end
local function dirname(path)
local i = 0
while true do
local j = string_find(path, "/", i + 1, true)
if j == nil then
if i == 0 then
-- No directory portion
return "."
elseif i == 1 then
-- Root
return "/"
else
-- Directory portion without trailing slash
return string_sub(path, 1, i - 1)
end
end
i = j
end
end
local function parentdir(path)
local i = 0
while true do
local j = string_find(path, "/", i + 1, true)
if j == nil then
if i == 0 then
-- No directory portion
return "."
elseif i == 1 then
-- Root
return "/"
else
-- Directory portion without trailing slash
return string_sub(path, 1, i - 1)
end
elseif j == #path then
-- Directory portion without trailing slash
return string_sub(path, 1, i - 1)
end
i = j
end
end
local function trimext(path)
return (string_gsub(path, "%.[^/%.]*$", ""))
end
local function ext(path)
return string_match(path, "%.([^/%.]*)$") or ""
end
local function replaceext(path, newext)
local newpath, n = string_gsub(path, "%.([^/%.]*)$", function() return "." .. newext end)
if n == 0 then
return newpath .. "." .. newext
else
return newpath
end
end
local function joinpath2(x, y)
local xd = x
if string_sub(x, -1) ~= "/" then
xd = x .. "/"
end
if y == "." then
return xd
elseif y == ".." then
return dirname(x)
else
if string_sub(y, 1, 2) == "./" then
return xd .. string_sub(y, 3)
else
return xd .. y
end
end
end
local function joinpath(...)
local n = select("#", ...)
if n == 2 then
return joinpath2(...)
elseif n == 0 then
return "."
elseif n == 1 then
return ...
else
return joinpath(joinpath2(...), select(3, ...))
end
end
local function abspath(path, cwd)
if string_sub(path, 1, 1) == "/" then
-- absolute path
return path
else
cwd = cwd or filesys.currentdir()
return joinpath2(cwd, path)
end
end
return {
basename = basename,
dirname = dirname,
parentdir = parentdir,
trimext = trimext,
ext = ext,
replaceext = replaceext,
join = joinpath,
abspath = abspath,
}
end
end
if os.type == "windows" then
package.preload["texrunner.shellutil"] = function(...)
--[[
Copyright 2016,2019 ARATA Mizuki
This file is part of ClutTeX.
ClutTeX is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
ClutTeX is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with ClutTeX. If not, see <http://www.gnu.org/licenses/>.
]]
local string_gsub = string.gsub
local os_execute = os.execute
-- s: string
local function escape(s)
return '"' .. string_gsub(string_gsub(s, '(\\*)"', '%1%1\\"'), '(\\+)$', '%1%1') .. '"'
end
local function has_command(name)
local result = os_execute("where " .. escape(name) .. " > NUL 2>&1")
-- Note that os.execute returns a number on Lua 5.1 or LuaTeX
return result == 0 or result == true
end
return {
escape = escape,
has_command = has_command,
}
end
else
package.preload["texrunner.shellutil"] = function(...)
--[[
Copyright 2016,2019 ARATA Mizuki
This file is part of ClutTeX.
ClutTeX is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
ClutTeX is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with ClutTeX. If not, see <http://www.gnu.org/licenses/>.
]]
local assert = assert
local string_match = string.match
local table = table
local table_insert = table.insert
local table_concat = table.concat
local os_execute = os.execute
-- s: string
local function escape(s)
local len = #s
local result = {}
local t,i = string_match(s, "^([^']*)()")
assert(t)
if t ~= "" then
table_insert(result, "'")
table_insert(result, t)
table_insert(result, "'")
end
while i < len do
t,i = string_match(s, "^('+)()", i)
assert(t)
table_insert(result, '"')
table_insert(result, t)
table_insert(result, '"')
t,i = string_match(s, "^([^']*)()", i)
assert(t)
if t ~= "" then
table_insert(result, "'")
table_insert(result, t)
table_insert(result, "'")
end
end
return table_concat(result, "")
end
local function has_command(name)
local result = os_execute("which " .. escape(name) .. " > /dev/null")
-- Note that os.execute returns a number on Lua 5.1 or LuaTeX
return result == 0 or result == true
end
return {
escape = escape,
has_command = has_command,
}
end
end
package.preload["texrunner.fsutil"] = function(...)
--[[
Copyright 2016 ARATA Mizuki
This file is part of ClutTeX.
ClutTeX is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
ClutTeX is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with ClutTeX. If not, see <http://www.gnu.org/licenses/>.
]]
local assert = assert
local os = os
local os_execute = os.execute
local os_remove = os.remove
local filesys = require "lfs"
local pathutil = require "texrunner.pathutil"
local shellutil = require "texrunner.shellutil"
local escape = shellutil.escape
local copy_command
if os.type == "windows" then
function copy_command(from, to)
-- TODO: What if `from` begins with a slash?
return "copy " .. escape(from) .. " " .. escape(to) .. " > NUL"
end
else
function copy_command(from, to)
-- TODO: What if `from` begins with a hypen?
return "cp " .. escape(from) .. " " .. escape(to)
end
end
local isfile = filesys.isfile or function(path)
return filesys.attributes(path, "mode") == "file"
end
local isdir = filesys.isdir or function(path)
return filesys.attributes(path, "mode") == "directory"
end
local function mkdir_rec(path)
local succ, err = filesys.mkdir(path)
if not succ then
succ, err = mkdir_rec(pathutil.parentdir(path))
if succ then
return filesys.mkdir(path)
end
end
return succ, err
end
local function remove_rec(path)
if isdir(path) then
for file in filesys.dir(path) do
if file ~= "." and file ~= ".." then
local succ, err = remove_rec(pathutil.join(path, file))
if not succ then
return succ, err
end
end
end
return filesys.rmdir(path)
else
return os_remove(path)
end
end
return {
copy_command = copy_command,
isfile = isfile,
isdir = isdir,
mkdir_rec = mkdir_rec,
remove_rec = remove_rec,
}
end
package.preload["texrunner.option"] = function(...)
--[[
Copyright 2016 ARATA Mizuki
This file is part of ClutTeX.
ClutTeX is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
ClutTeX is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with ClutTeX. If not, see <http://www.gnu.org/licenses/>.
]]
-- options_and_params, i = parseoption(arg, options)
-- options[i] = {short = "o", long = "option" [, param = true] [, boolean = true] [, allow_single_hyphen = false]}
-- options_and_params[j] = {"option", "value"}
-- arg[i], arg[i + 1], ..., arg[#arg] are non-options
local function parseoption(arg, options)
local i = 1
local option_and_params = {}
while i <= #arg do
if arg[i] == "--" then
-- Stop handling options
i = i + 1
break
elseif arg[i]:sub(1,2) == "--" then
-- Long option
local name,param = arg[i]:match("^([^=]+)=(.*)$", 3)
name = name or arg[i]:sub(3)
local opt = nil
for _,o in ipairs(options) do
if o.long then
if o.long == name then
if o.param then
if param then
-- --option=param
else
if o.default ~= nil then
param = o.default
else
-- --option param
assert(i + 1 <= #arg, "argument missing after " .. arg[i] .. " option")
param = arg[i + 1]
i = i + 1
end
end
else
-- --option
param = true
end
opt = o
break
elseif o.boolean and name == "no-" .. o.long then
-- --no-option
opt = o
param = false
break
end
end
end
if opt then
table.insert(option_and_params, {opt.long, param})
else
-- Unknown long option
error("unknown long option: " .. arg[i])
end
elseif arg[i]:sub(1,1) == "-" then
local name,param = arg[i]:match("^([^=]+)=(.*)$", 2)
name = name or arg[i]:sub(2)
local opt = nil
for _,o in ipairs(options) do
if o.long and o.allow_single_hyphen then
if o.long == name then
if o.param then
if param then
-- -option=param
else
if o.default ~= nil then
param = o.default
else
-- -option param
assert(i + 1 <= #arg, "argument missing after " .. arg[i] .. " option")
param = arg[i + 1]
i = i + 1
end
end
else
-- -option
param = true
end
opt = o
break
elseif o.boolean and name == "no-" .. o.long then
-- -no-option
opt = o
param = false
break
end
elseif o.long and #name >= 2 and (o.long == name or (o.boolean and name == "no-" .. o.long)) then
error("You must supply two hyphens (i.e. --" .. name .. ") for long option")
end
end
if opt == nil then
-- Short option
name = arg[i]:sub(2,2)
for _,o in ipairs(options) do
if o.short then
if o.short == name then
if o.param then
if #arg[i] > 2 then
-- -oparam
param = arg[i]:sub(3)
else
-- -o param
assert(i + 1 <= #arg, "argument missing after " .. arg[i] .. " option")
param = arg[i + 1]
i = i + 1
end
else
-- -o
assert(#arg[i] == 2, "combining multiple short options like -abc is not supported")
param = true
end
opt = o
break
end
end
end
end
if opt then
table.insert(option_and_params, {opt.long or opt.short, param})
else
error("unknown short option: " .. arg[i])
end
else
-- arg[i] is not an option
break
end
i = i + 1
end
return option_and_params, i
end
return {
parseoption = parseoption;
}
end
package.preload["texrunner.tex_engine"] = function(...)
--[[
Copyright 2016,2019 ARATA Mizuki
This file is part of ClutTeX.
ClutTeX is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
ClutTeX is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with ClutTeX. If not, see <http://www.gnu.org/licenses/>.
]]
local table = table
local setmetatable = setmetatable
local ipairs = ipairs
local shellutil = require "texrunner.shellutil"
--[[
engine.name: string
engine.type = "onePass" or "twoPass"
engine:build_command(inputline, options)
options:
halt_on_error: boolean
interaction: string
file_line_error: boolean
synctex: string
shell_escape: boolean
shell_restricted: boolean
jobname: string
output_directory: string
extraoptions: a list of strings
output_format: "pdf" or "dvi"
draftmode: boolean (pdfTeX / XeTeX / LuaTeX)
fmt: string
lua_initialization_script: string (LuaTeX only)
engine.executable: string
engine.supports_pdf_generation: boolean
engine.dvi_extension: string
engine.supports_draftmode: boolean
engine.is_luatex: true or nil
]]
local engine_meta = {}
engine_meta.__index = engine_meta
engine_meta.dvi_extension = "dvi"
function engine_meta:build_command(inputline, options)
local executable = options.engine_executable or self.executable
local command = {executable, "-recorder"}
if options.fmt then
table.insert(command, "-fmt=" .. options.fmt)
end
if options.halt_on_error then
table.insert(command, "-halt-on-error")
end
if options.interaction then
table.insert(command, "-interaction=" .. options.interaction)
end
if options.file_line_error then
table.insert(command, "-file-line-error")
end
if options.synctex then
table.insert(command, "-synctex=" .. shellutil.escape(options.synctex))
end
if options.shell_escape == false then
table.insert(command, "-no-shell-escape")
elseif options.shell_restricted == true then
table.insert(command, "-shell-restricted")
elseif options.shell_escape == true then
table.insert(command, "-shell-escape")
end
if options.jobname then
table.insert(command, "-jobname=" .. shellutil.escape(options.jobname))
end
if options.output_directory then
table.insert(command, "-output-directory=" .. shellutil.escape(options.output_directory))
end
if self.handle_additional_options then
self:handle_additional_options(command, options)
end
if options.extraoptions then
for _,v in ipairs(options.extraoptions) do
table.insert(command, v)
end
end
table.insert(command, shellutil.escape(inputline))
return table.concat(command, " ")
end
local function engine(name, supports_pdf_generation, handle_additional_options)
return setmetatable({
name = name,
executable = name,
supports_pdf_generation = supports_pdf_generation,
handle_additional_options = handle_additional_options,
supports_draftmode = supports_pdf_generation,
}, engine_meta)
end
local function handle_pdftex_options(self, args, options)
if options.draftmode then
table.insert(args, "-draftmode")
elseif options.output_format == "dvi" then
table.insert(args, "-output-format=dvi")
end
end
local function handle_xetex_options(self, args, options)
if options.output_format == "dvi" or options.draftmode then
table.insert(args, "-no-pdf")
end
end
local function handle_luatex_options(self, args, options)
if options.lua_initialization_script then
table.insert(args, "--lua="..shellutil.escape(options.lua_initialization_script))
end
handle_pdftex_options(self, args, options)
end
local function is_luatex(e)
e.is_luatex = true
return e
end
local KnownEngines = {
["pdftex"] = engine("pdftex", true, handle_pdftex_options),
["pdflatex"] = engine("pdflatex", true, handle_pdftex_options),
["luatex"] = is_luatex(engine("luatex", true, handle_luatex_options)),
["lualatex"] = is_luatex(engine("lualatex", true, handle_luatex_options)),
["luajittex"] = is_luatex(engine("luajittex", true, handle_luatex_options)),
["xetex"] = engine("xetex", true, handle_xetex_options),
["xelatex"] = engine("xelatex", true, handle_xetex_options),
["tex"] = engine("tex", false),
["etex"] = engine("etex", false),
["latex"] = engine("latex", false),
["ptex"] = engine("ptex", false),
["eptex"] = engine("eptex", false),
["platex"] = engine("platex", false),
["uptex"] = engine("uptex", false),
["euptex"] = engine("euptex", false),
["uplatex"] = engine("uplatex", false),
}
KnownEngines["xetex"].dvi_extension = "xdv"
KnownEngines["xelatex"].dvi_extension = "xdv"
return KnownEngines
end
package.preload["texrunner.reruncheck"] = function(...)
--[[
Copyright 2016,2018 ARATA Mizuki
This file is part of ClutTeX.
ClutTeX is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
ClutTeX is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with ClutTeX. If not, see <http://www.gnu.org/licenses/>.
]]
local io = io
local assert = assert
local filesys = require "lfs"
local md5 = require "md5"
local fsutil = require "texrunner.fsutil"
local pathutil = require "texrunner.pathutil"
local message = require "texrunner.message"
local function md5sum_file(path)
local f = assert(io.open(path, "rb"))
local contents = f:read("*a")
f:close()
return md5.sum(contents)
end
-- filelist, filemap = parse_recorder_file("jobname.fls", options [, filelist, filemap])
-- filelist[i] = {path = "...", abspath = "...", kind = "input" or "output" or "auxiliary"}
local function parse_recorder_file(file, options, filelist, filemap)
filelist = filelist or {}
filemap = filemap or {}
for l in io.lines(file) do
local t,path = l:match("^(%w+) (.*)$")
if t == "PWD" then
-- Ignore
elseif t == "INPUT" then
local abspath = pathutil.abspath(path)
local fileinfo = filemap[abspath]
if not fileinfo then
if fsutil.isfile(path) then
local kind = "input"
local ext = pathutil.ext(path)
if ext == "bbl" then
kind = "auxiliary"
end
fileinfo = {path = path, abspath = abspath, kind = kind}
table.insert(filelist, fileinfo)
filemap[abspath] = fileinfo
else
-- Maybe a command execution
end
else
if #path < #fileinfo.path then
fileinfo.path = path
end
if fileinfo.kind == "output" then
-- The files listed in both INPUT and OUTPUT are considered to be auxiliary files.
fileinfo.kind = "auxiliary"
end
end
elseif t == "OUTPUT" then
local abspath = pathutil.abspath(path)
local fileinfo = filemap[abspath]
if not fileinfo then
local kind = "output"
local ext = pathutil.ext(path)
if ext == "out" then
-- hyperref bookmarks file
kind = "auxiliary"
elseif options.makeindex and ext == "idx" then
-- Treat .idx files (to be processed by MakeIndex) as auxiliary
kind = "auxiliary"
-- ...and .ind files
elseif ext == "bcf" then -- biber
kind = "auxiliary"
elseif ext == "glo" then -- makeglossaries
kind = "auxiliary"
end
fileinfo = {path = path, abspath = abspath, kind = kind}
table.insert(filelist, fileinfo)
filemap[abspath] = fileinfo
else
if #path < #fileinfo.path then
fileinfo.path = path
end
if fileinfo.kind == "input" then
-- The files listed in both INPUT and OUTPUT are considered to be auxiliary files.
fileinfo.kind = "auxiliary"
end
end
else
message.warning("Unrecognized line in recorder file '", file, "': ", l)
end
end
return filelist, filemap
end
-- auxstatus = collectfileinfo(filelist [, auxstatus])
local function collectfileinfo(filelist, auxstatus)
auxstatus = auxstatus or {}
for i,fileinfo in ipairs(filelist) do
local path = fileinfo.abspath
if fsutil.isfile(path) then
local status = auxstatus[path] or {}
auxstatus[path] = status
if fileinfo.kind == "input" then
status.mtime = status.mtime or filesys.attributes(path, "modification")
elseif fileinfo.kind == "auxiliary" then
status.mtime = status.mtime or filesys.attributes(path, "modification")
status.size = status.size or filesys.attributes(path, "size")
status.md5sum = status.md5sum or md5sum_file(path)
end
end
end
return auxstatus
end
local function binarytohex(s)
return (s:gsub(".", function(c) return string.format("%02x", string.byte(c)) end))
end
-- should_rerun, newauxstatus = comparefileinfo(auxfiles, auxstatus)
local function comparefileinfo(filelist, auxstatus)
local should_rerun = false
local newauxstatus = {}
for i,fileinfo in ipairs(filelist) do
local path = fileinfo.abspath
if fsutil.isfile(path) then
if fileinfo.kind == "input" then
-- Input file: User might have modified while running TeX.
local mtime = filesys.attributes(path, "modification")
if auxstatus[path] and auxstatus[path].mtime then
if auxstatus[path].mtime < mtime then
-- Input file was updated during execution
message.info("Input file '", fileinfo.path, "' was modified (by user, or some external commands).")
newauxstatus[path] = {mtime = mtime}
return true, newauxstatus
end
else
-- New input file
end
elseif fileinfo.kind == "auxiliary" then
-- Auxiliary file: Compare file contents.
if auxstatus[path] then
-- File was touched during execution
local really_modified = false
local modified_because = nil
local size = filesys.attributes(path, "size")
if auxstatus[path].size ~= size then
really_modified = true
if auxstatus[path].size then
modified_because = string.format("size: %d -> %d", auxstatus[path].size, size)
else
modified_because = string.format("size: (N/A) -> %d", size)
end
newauxstatus[path] = {size = size}
else
local md5sum = md5sum_file(path)
if auxstatus[path].md5sum ~= md5sum then
really_modified = true
if auxstatus[path].md5sum then
modified_because = string.format("md5: %s -> %s", binarytohex(auxstatus[path].md5sum), binarytohex(md5sum))
else
modified_because = string.format("md5: (N/A) -> %s", binarytohex(md5sum))
end
end
newauxstatus[path] = {size = size, md5sum = md5sum}
end
if really_modified then
message.info("File '", fileinfo.path, "' was modified (", modified_because, ").")
should_rerun = true
else
if CLUTTEX_VERBOSITY >= 1 then
message.info("File '", fileinfo.path, "' unmodified (size and md5sum).")
end
end
else
-- New file
if path:sub(-4) == ".aux" then
local size = filesys.attributes(path, "size")
if size == 8 then
local auxfile = io.open(path, "rb")
local contents = auxfile:read("*a")
auxfile:close()
if contents == "\\relax \n" then
-- The .aux file is new, but it is almost empty
else
should_rerun = true
end
newauxstatus[path] = {size = size, md5sum = md5.sum(contents)}
else
should_rerun = true
newauxstatus[path] = {size = size}
end
else
should_rerun = true
end
if should_rerun then
message.info("New auxiliary file '", fileinfo.path, "'.")
else
if CLUTTEX_VERBOSITY >= 1 then
message.info("Ignoring almost-empty auxiliary file '", fileinfo.path, "'.")
end
end
end
if should_rerun then
break
end
end
else
-- Auxiliary file is not really a file???
end
end
return should_rerun, newauxstatus
end
-- true if src is newer than dst
local function comparefiletime(srcpath, dstpath, auxstatus)
if not filesys.isfile(dstpath) then
return true
end
local src_info = auxstatus[srcpath]
if src_info then
local src_mtime = src_info.mtime
if src_mtime then
local dst_mtime = filesys.attributes(dstpath, "modification")
return src_mtime > dst_mtime
end
end
return false
end
return {
parse_recorder_file = parse_recorder_file;
collectfileinfo = collectfileinfo;
comparefileinfo = comparefileinfo;
comparefiletime = comparefiletime;
}
end
package.preload["texrunner.auxfile"] = function(...)
--[[
Copyright 2016 ARATA Mizuki
This file is part of ClutTeX.
ClutTeX is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
ClutTeX is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with ClutTeX. If not, see <http://www.gnu.org/licenses/>.
]]
local string_match = string.match
local pathutil = require "texrunner.pathutil"
local filesys = require "lfs"
local fsutil = require "texrunner.fsutil"
local message = require "texrunner.message"
-- for LaTeX
local function parse_aux_file(auxfile, outdir, report, seen)
report = report or {}
seen = seen or {}
seen[auxfile] = true
for l in io.lines(auxfile) do
local subauxfile = string_match(l, "\\@input{(.+)}")
if subauxfile then
local subauxfile_abs = pathutil.abspath(subauxfile, outdir)
if fsutil.isfile(subauxfile_abs) then
parse_aux_file(subauxfile_abs, outdir, report, seen)
else
local dir = pathutil.join(outdir, pathutil.dirname(subauxfile))
if not fsutil.isdir(dir) then
assert(fsutil.mkdir_rec(dir))
report.made_new_directory = true
end
end
end
end
return report
end
-- \citation, \bibdata, \bibstyle and \@input
local function extract_bibtex_from_aux_file(auxfile, outdir, biblines)
biblines = biblines or {}
for l in io.lines(auxfile) do
local name = string_match(l, "\\([%a@]+)")
if name == "citation" or name == "bibdata" or name == "bibstyle" then
table.insert(biblines, l)
if CLUTTEX_VERBOSITY >= 2 then
message.info("BibTeX line: ", l)
end
elseif name == "@input" then
local subauxfile = string_match(l, "\\@input{(.+)}")
if subauxfile then
local subauxfile_abs = pathutil.abspath(subauxfile, outdir)
if fsutil.isfile(subauxfile_abs) then
extract_bibtex_from_aux_file(subauxfile_abs, outdir, biblines)
end
end
end
end
return biblines
end
return {
parse_aux_file = parse_aux_file,
extract_bibtex_from_aux_file = extract_bibtex_from_aux_file,
}
end
package.preload["texrunner.luatexinit"] = function(...)
local function create_initialization_script(filename, options)
local initscript = assert(io.open(filename,"w"))
if type(options.file_line_error) == "boolean" then
initscript:write(string.format("texconfig.file_line_error = %s\n", options.file_line_error))
end
if type(options.halt_on_error) == "boolean" then
initscript:write(string.format("texconfig.halt_on_error = %s\n", options.halt_on_error))
end
initscript:write([==[
local print = print
local io_open = io.open
local io_write = io.write
local os_execute = os.execute
local texio_write = texio.write
local texio_write_nl = texio.write_nl
]==])
-- Packages coded in Lua doesn't follow -output-directory option and doesn't write command to the log file
initscript:write(string.format("local output_directory = %q\n", options.output_directory))
-- tex.jobname may not be available when io.open is called for the first time
initscript:write(string.format("local jobname = %q\n", options.jobname))
initscript:write([==[
local luawritelog
local function openluawritelog()
if not luawritelog then
luawritelog = assert(io_open(output_directory .. "/" .. jobname .. ".cluttex-fls", "w"))
end
return luawritelog
end
io.open = function(fname, mode)
-- luatexja-ruby
if mode == "w" and fname == jobname .. ".ltjruby" then
fname = output_directory .. "/" .. fname
end
if type(mode) == "string" and string.find(mode, "w") ~= nil then
-- write mode
openluawritelog():write("OUTPUT " .. fname .. "\n")
end
return io_open(fname, mode)
end
os.execute = function(...)
texio_write_nl("log", string.format("CLUTTEX_EXEC %s", ...), "")
return os_execute(...)
end
]==])
-- Silence some of the TeX output to the terminal.
initscript:write([==[
local function start_file_cb(category, filename)
if category == 1 then -- a normal data file, like a TeX source
texio_write_nl("log", "("..filename)
elseif category == 2 then -- a font map coupling font names to resources
texio_write("log", "{"..filename)
elseif category == 3 then -- an image file (png, pdf, etc)
texio_write("<"..filename)
elseif category == 4 then -- an embedded font subset
texio_write("<"..filename)
elseif category == 5 then -- a fully embedded font
texio_write("<<"..filename)
else
print("start_file: unknown category", category, filename)
end
end
callback.register("start_file", start_file_cb)
local function stop_file_cb(category)
if category == 1 then
texio_write("log", ")")
elseif category == 2 then
texio_write("log", "}")
elseif category == 3 then
texio_write(">")
elseif category == 4 then
texio_write(">")
elseif category == 5 then
texio_write(">>")
else
print("stop_file: unknown category", category)
end
end
callback.register("stop_file", stop_file_cb)
texio.write = function(...)
if select("#",...) == 1 then
-- Suppress luaotfload's message (See src/fontloader/runtime/fontload-reference.lua)
local s = ...
if string.match(s, "^%(using cache: ")
or string.match(s, "^%(using write cache: ")
or string.match(s, "^%(using read cache: ")
or string.match(s, "^%(load luc: ")
or string.match(s, "^%(load cache: ") then
return texio_write("log", ...)
end
end
return texio_write(...)
end
]==])
-- Fix "arg" to make luamplib work
initscript:write([==[
if string.match(arg[0], "^%-%-lua=") then
local minindex = 0
while arg[minindex - 1] ~= nil do
minindex = minindex - 1
end
local arg2 = {}
for i = 0, #arg - minindex do
arg2[i] = arg[i + minindex]
end
arg = arg2
end
]==])
initscript:close()
end
return {
create_initialization_script = create_initialization_script
}
end
package.preload["texrunner.recovery"] = function(...)
--[[
Copyright 2018 ARATA Mizuki
This file is part of ClutTeX.
ClutTeX is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
ClutTeX is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with ClutTeX. If not, see <http://www.gnu.org/licenses/>.
]]
local io = io
local string = string
local parse_aux_file = require "texrunner.auxfile".parse_aux_file
local pathutil = require "texrunner.pathutil"
local fsutil = require "texrunner.fsutil"
local shellutil = require "texrunner.shellutil"
local message = require "texrunner.message"
local function create_missing_directories(args)
if string.find(args.execlog, "I can't write on file", 1, true) then
-- There is a possibility that there are some subfiles under subdirectories.
-- Directories for sub-auxfiles are not created automatically, so we need to provide them.
local report = parse_aux_file(args.auxfile, args.options.output_directory)
if report.made_new_directory then
if CLUTTEX_VERBOSITY >= 1 then
message.info("Created missing directories.")
end
return true
end
end
return false
end
local function run_epstopdf(args)
local run = false
if args.options.shell_escape ~= false then -- (possibly restricted) \write18 enabled
for outfile, infile in string.gmatch(args.execlog, "%(epstopdf%)%s*Command: <r?epstopdf %-%-outfile=([%w%-/]+%.pdf) ([%w%-/]+%.eps)>") do
local infile_abs = pathutil.abspath(infile, args.original_wd)
if fsutil.isfile(infile_abs) then -- input file exists
local outfile_abs = pathutil.abspath(outfile, args.options.output_directory)
if CLUTTEX_VERBOSITY >= 1 then
message.info("Running epstopdf on ", infile, ".")
end
local outdir = pathutil.dirname(outfile_abs)
if not fsutil.isdir(outdir) then
assert(fsutil.mkdir_rec(outdir))
end
local command = string.format("epstopdf --outfile=%s %s", shellutil.escape(outfile_abs), shellutil.escape(infile_abs))
message.exec(command)
local success = os.execute(command)
if type(success) == "number" then -- Lua 5.1 or LuaTeX
success = success == 0
end
run = run or success
end
end
end
return run
end
local function check_minted(args)
return string.find(args.execlog, "Package minted Error: Missing Pygments output; \\inputminted was") ~= nil
end
local function try_recovery(args)
local recovered = false
recovered = create_missing_directories(args)
recovered = run_epstopdf(args) or recovered
recovered = check_minted(args) or recovered
return recovered
end
return {
create_missing_directories = create_missing_directories,
run_epstopdf = run_epstopdf,
try_recovery = try_recovery,
}
end
package.preload["texrunner.handleoption"] = function(...)
local COPYRIGHT_NOTICE = [[
Copyright (C) 2016-2021 ARATA Mizuki
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
]]
local pathutil = require "texrunner.pathutil"
local shellutil = require "texrunner.shellutil"
local parseoption = require "texrunner.option".parseoption
local KnownEngines = require "texrunner.tex_engine"
local message = require "texrunner.message"
local function usage(arg)
io.write(string.format([[
ClutTeX: Process TeX files without cluttering your working directory
Usage:
%s [options] [--] FILE.tex
Options:
-e, --engine=ENGINE Specify which TeX engine to use.
ENGINE is one of the following:
pdflatex, pdftex,
lualatex, luatex, luajittex,
xelatex, xetex, latex, etex, tex,
platex, eptex, ptex,
uplatex, euptex, uptex,
--engine-executable=COMMAND+OPTIONs
The actual TeX command to use.
[default: ENGINE]
-o, --output=FILE The name of output file.
[default: JOBNAME.pdf or JOBNAME.dvi]
--fresh Clean intermediate files before running TeX.
Cannot be used with --output-directory.
--max-iterations=N Maximum number of running TeX to resolve
cross-references. [default: 3]
--start-with-draft Start with draft mode.
--[no-]change-directory Change directory before running TeX.
--watch Watch input files for change. Requires fswatch
program to be installed.
--tex-option=OPTION Pass OPTION to TeX as a single option.
--tex-options=OPTIONs Pass OPTIONs to TeX as multiple options.
--dvipdfmx-option[s]=OPTION[s] Same for dvipdfmx.
--makeindex=COMMAND+OPTIONs Command to generate index, such as
`makeindex' or `mendex'.
--bibtex=COMMAND+OPTIONs Command for BibTeX, such as
`bibtex' or `pbibtex'.
--biber[=COMMAND+OPTIONs] Command for Biber.
--makeglossaries[=COMMAND+OPTIONs] Command for makeglossaries.
-h, --help Print this message and exit.
-v, --version Print version information and exit.
-V, --verbose Be more verbose.
--color[=WHEN] Make ClutTeX's message colorful. WHEN is one of
`always', `auto', or `never'.
[default: `auto' if --color is omitted,
`always' if WHEN is omitted]
--includeonly=NAMEs Insert '\includeonly{NAMEs}'.
--make-depends=FILE Write dependencies as a Makefile rule.
--print-output-directory Print the output directory and exit.
--package-support=PKG1[,PKG2,...]
Enable special support for some shell-escaping
packages.
Currently supported: minted, epstopdf
--check-driver=DRIVER Check that the correct driver file is loaded.
DRIVER is one of `dvipdfmx', `dvips', `dvisvgm'.
--[no-]shell-escape
--shell-restricted
--synctex=NUMBER
--fmt=FMTNAME
--[no-]file-line-error [default: yes]
--[no-]halt-on-error [default: yes]
--interaction=STRING [default: nonstopmode]
--jobname=STRING
--output-directory=DIR [default: somewhere in the temporary directory]
--output-format=FORMAT FORMAT is `pdf' or `dvi'. [default: pdf]
%s
]], arg[0] or 'texlua cluttex.lua', COPYRIGHT_NOTICE))
end
local option_spec = {
-- Options for ClutTeX
{
short = "e",
long = "engine",
param = true,
},
{
long = "engine-executable",
param = true,
},
{
short = "o",
long = "output",
param = true,
},
{
long = "fresh",
},
{
long = "max-iterations",
param = true,
},
{
long = "start-with-draft",
},
{
long = "change-directory",
boolean = true,
},
{
long = "watch",
},
{
short = "h",
long = "help",
allow_single_hyphen = true,
},
{
short = "v",
long = "version",
},
{
short = "V",
long = "verbose",
},
{
long = "color",
param = true,
default = "always",
},
{
long = "includeonly",
param = true,
},
{
long = "make-depends",
param = true
},
{
long = "print-output-directory",
},
{
long = "package-support",
param = true
},
{
long = "check-driver",
param = true
},
-- Options for TeX
{
long = "synctex",
param = true,
allow_single_hyphen = true,
},
{
long = "file-line-error",
boolean = true,
allow_single_hyphen = true,
},
{
long = "interaction",
param = true,
allow_single_hyphen = true,
},
{
long = "halt-on-error",
boolean = true,
allow_single_hyphen = true,
},
{
long = "shell-escape",
boolean = true,
allow_single_hyphen = true,
},
{
long = "shell-restricted",
allow_single_hyphen = true,
},
{
long = "jobname",
param = true,
allow_single_hyphen = true,
},
{
long = "fmt",
param = true,
allow_single_hyphen = true,
},
{
long = "output-directory",
param = true,
allow_single_hyphen = true,
},
{
long = "output-format",
param = true,
allow_single_hyphen = true,
},
{
long = "tex-option",
param = true,
},
{
long = "tex-options",
param = true,
},
{
long = "dvipdfmx-option",
param = true,
},
{
long = "dvipdfmx-options",
param = true,
},
{
long = "makeindex",
param = true,
},
{
long = "bibtex",
param = true,
},
{
long = "biber",
param = true,
default = "biber",
},
{
long = "makeglossaries",
param = true,
default = "makeglossaries",
},
}
-- Default values for options
local function set_default_values(options)
if options.max_iterations == nil then
options.max_iterations = 3
end
if options.interaction == nil then
options.interaction = "nonstopmode"
end
if options.file_line_error == nil then
options.file_line_error = true
end
if options.halt_on_error == nil then
options.halt_on_error = true
end
if options.output_format == nil then
options.output_format = "pdf"
end
end
-- inputfile, engine, options = handle_cluttex_options(arg)
local function handle_cluttex_options(arg)
-- Parse options
local option_and_params, non_option_index = parseoption(arg, option_spec)
-- Handle options
local options = {
tex_extraoptions = {},
dvipdfmx_extraoptions = {},
package_support = {},
}
CLUTTEX_VERBOSITY = 0
for _,option in ipairs(option_and_params) do
local name = option[1]
local param = option[2]
if name == "engine" then
assert(options.engine == nil, "multiple --engine options")
options.engine = param
elseif name == "engine-executable" then
assert(options.engine_executable == nil, "multiple --engine-executable options")
options.engine_executable = param
elseif name == "output" then
assert(options.output == nil, "multiple --output options")
options.output = param
elseif name == "fresh" then
assert(options.fresh == nil, "multiple --fresh options")
options.fresh = true
elseif name == "max-iterations" then
assert(options.max_iterations == nil, "multiple --max-iterations options")
options.max_iterations = assert(tonumber(param), "invalid value for --max-iterations option")
assert(options.max_iterations >= 1, "invalid value for --max-iterations option")
elseif name == "start-with-draft" then
assert(options.start_with_draft == nil, "multiple --start-with-draft options")
options.start_with_draft = true
elseif name == "watch" then
assert(options.watch == nil, "multiple --watch options")
options.watch = true
elseif name == "help" then
usage(arg)
os.exit(0)
elseif name == "version" then
io.stderr:write("cluttex ",CLUTTEX_VERSION,"\n")
os.exit(0)
elseif name == "verbose" then
CLUTTEX_VERBOSITY = CLUTTEX_VERBOSITY + 1
elseif name == "color" then
assert(options.color == nil, "multiple --collor options")
options.color = param
message.set_colors(options.color)
elseif name == "change-directory" then
assert(options.change_directory == nil, "multiple --change-directory options")
options.change_directory = param
elseif name == "includeonly" then
assert(options.includeonly == nil, "multiple --includeonly options")
options.includeonly = param
elseif name == "make-depends" then
assert(options.make_depends == nil, "multiple --make-depends options")
options.make_depends = param
elseif name == "print-output-directory" then
assert(options.print_output_directory == nil, "multiple --print-output-directory options")
options.print_output_directory = true
elseif name == "package-support" then
local known_packages = {["minted"] = true, ["epstopdf"] = true}
for pkg in string.gmatch(param, "[^,%s]+") do
options.package_support[pkg] = true
if not known_packages[pkg] and CLUTTEX_VERBOSITY >= 1 then
message.warn("ClutTeX provides no special support for '"..pkg.."'.")
end
end
elseif name == "check-driver" then
assert(options.check_driver == nil, "multiple --check-driver options")
assert(param == "dvipdfmx" or param == "dvips" or param == "dvisvgm", "wrong value for --check-driver option")
options.check_driver = param
-- Options for TeX
elseif name == "synctex" then
assert(options.synctex == nil, "multiple --synctex options")
options.synctex = param
elseif name == "file-line-error" then
options.file_line_error = param
elseif name == "interaction" then
assert(options.interaction == nil, "multiple --interaction options")
assert(param == "batchmode" or param == "nonstopmode" or param == "scrollmode" or param == "errorstopmode", "invalid argument for --interaction")
options.interaction = param
elseif name == "halt-on-error" then
options.halt_on_error = param
elseif name == "shell-escape" then
assert(options.shell_escape == nil and options.shell_restricted == nil, "multiple --(no-)shell-escape or --shell-restricted options")
options.shell_escape = param
elseif name == "shell-restricted" then
assert(options.shell_escape == nil and options.shell_restricted == nil, "multiple --(no-)shell-escape or --shell-restricted options")
options.shell_restricted = true
elseif name == "jobname" then
assert(options.jobname == nil, "multiple --jobname options")
options.jobname = param
elseif name == "fmt" then
assert(options.fmt == nil, "multiple --fmt options")
options.fmt = param
elseif name == "output-directory" then
assert(options.output_directory == nil, "multiple --output-directory options")
options.output_directory = param
elseif name == "output-format" then
assert(options.output_format == nil, "multiple --output-format options")
assert(param == "pdf" or param == "dvi", "invalid argument for --output-format")
options.output_format = param
elseif name == "tex-option" then
table.insert(options.tex_extraoptions, shellutil.escape(param))
elseif name == "tex-options" then
table.insert(options.tex_extraoptions, param)
elseif name == "dvipdfmx-option" then
table.insert(options.dvipdfmx_extraoptions, shellutil.escape(param))
elseif name == "dvipdfmx-options" then
table.insert(options.dvipdfmx_extraoptions, param)
elseif name == "makeindex" then
assert(options.makeindex == nil, "multiple --makeindex options")
options.makeindex = param
elseif name == "bibtex" then
assert(options.bibtex == nil, "multiple --bibtex options")
assert(options.biber == nil, "multiple --bibtex/--biber options")
options.bibtex = param
elseif name == "biber" then
assert(options.biber == nil, "multiple --biber options")
assert(options.bibtex == nil, "multiple --bibtex/--biber options")
options.biber = param
elseif name == "makeglossaries" then
assert(options.makeglossaries == nil, "multiple --makeglossaries options")
options.makeglossaries = param
end
end
if options.color == nil then
message.set_colors("auto")
end
-- Handle non-options (i.e. input file)
if non_option_index > #arg then
-- No input file given
usage(arg)
os.exit(1)
elseif non_option_index < #arg then
message.error("Multiple input files are not supported.")
os.exit(1)
end
local inputfile = arg[non_option_index]
-- If run as 'cllualatex', then the default engine is lualatex
if options.engine == nil and type(arg[0]) == "string" then
local basename = pathutil.trimext(pathutil.basename(arg[0]))
local engine_part = string.match(basename, "^cl(%w+)$")
if engine_part and KnownEngines[engine_part] then
options.engine = engine_part
end
end
if options.engine == nil then
message.error("Engine not specified.")
os.exit(1)
end
local engine = KnownEngines[options.engine]
if not engine then
message.error("Unknown engine name '", options.engine, "'.")
os.exit(1)
end
set_default_values(options)
if options.output_format == "pdf" then
if options.check_driver ~= nil then
error("--check-driver can only be used when the output format is DVI.")
end
if engine.supports_pdf_generation then
if engine.is_luatex then
options.check_driver = "luatex"
elseif engine.name == "xetex" or engine.name == "xelatex" then
options.check_driver = "xetex"
elseif engine.name == "pdftex" or engine.name == "pdflatex" then
options.check_driver = "pdftex"
else
message.warning("Unknown engine: "..engine.name)
message.warning("Driver check will not work.")
end
else
-- ClutTeX uses dvipdfmx to generate PDF from DVI output.
options.check_driver = "dvipdfmx"
end
end
return inputfile, engine, options
end
return {
usage = usage,
handle_cluttex_options = handle_cluttex_options,
}
end
package.preload["texrunner.isatty"] = function(...)
--[[
Copyright 2018 ARATA Mizuki
This file is part of ClutTeX.
ClutTeX is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
ClutTeX is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with ClutTeX. If not, see <http://www.gnu.org/licenses/>.
]]
if os.type == "unix" then
-- Try LuaJIT-like FFI
local succ, M = pcall(function()
local ffi = require "ffi"
assert(ffi.os ~= "" and ffi.arch ~= "", "ffi library is stub")
ffi.cdef[[
int isatty(int fd);
int fileno(void *stream);
]]
local isatty = assert(ffi.C.isatty, "isatty not found")
local fileno = assert(ffi.C.fileno, "fileno not found")
return {
isatty = function(file)
-- LuaJIT converts Lua's file handles into FILE* (void*)
return isatty(fileno(file)) ~= 0
end
}
end)
if succ then
if CLUTTEX_VERBOSITY >= 3 then
io.stderr:write("ClutTeX: isatty found via FFI (Unix)\n")
end
return M
else
if CLUTTEX_VERBOSITY >= 3 then
io.stderr:write("ClutTeX: FFI (Unix) not found: ", M, "\n")
end
end
-- Try luaposix
local succ, M = pcall(function()
local isatty = require "posix.unistd".isatty
local fileno = require "posix.stdio".fileno
return {
isatty = function(file)
return isatty(fileno(file)) == 1
end,
}
end)
if succ then
if CLUTTEX_VERBOSITY >= 3 then
io.stderr:write("ClutTeX: isatty found via luaposix\n")
end
return M
else
if CLUTTEX_VERBOSITY >= 3 then
io.stderr:write("ClutTeX: luaposix not found: ", M, "\n")
end
end
-- Fallback using system command
return {
isatty = function(file)
local fd
if file == io.stdin then
fd = 0
elseif file == io.stdout then
fd = 1
elseif file == io.stderr then
fd = 2
else
return false
end
local result = os.execute(string.format("test -t %d", fd))
return result == true or result == 0
end,
}
else
-- Try LuaJIT
local succ, M = pcall(function()
local ffi = require "ffi"
local bitlib = assert(bit32 or bit, "Neither bit32 (Lua 5.2) nor bit (LuaJIT) found") -- Lua 5.2 or LuaJIT
ffi.cdef[[
int _isatty(int fd);
int _fileno(void *stream);
void *_get_osfhandle(int fd); // should return intptr_t
typedef int BOOL;
typedef uint32_t DWORD;
typedef int FILE_INFO_BY_HANDLE_CLASS; // ???
typedef struct _FILE_NAME_INFO {
DWORD FileNameLength;
uint16_t FileName[?];
} FILE_NAME_INFO;
DWORD GetFileType(void *hFile);
BOOL GetFileInformationByHandleEx(void *hFile, FILE_INFO_BY_HANDLE_CLASS fic, void *fileinfo, DWORD dwBufferSize);
BOOL GetConsoleMode(void *hConsoleHandle, DWORD* lpMode);
BOOL SetConsoleMode(void *hConsoleHandle, DWORD dwMode);
DWORD GetLastError();
]]
local isatty = assert(ffi.C._isatty, "_isatty not found")
local fileno = assert(ffi.C._fileno, "_fileno not found")
local get_osfhandle = assert(ffi.C._get_osfhandle, "_get_osfhandle not found")
local GetFileType = assert(ffi.C.GetFileType, "GetFileType not found")
local GetFileInformationByHandleEx = assert(ffi.C.GetFileInformationByHandleEx, "GetFileInformationByHandleEx not found")
local GetConsoleMode = assert(ffi.C.GetConsoleMode, "GetConsoleMode not found")
local SetConsoleMode = assert(ffi.C.SetConsoleMode, "SetConsoleMode not found")
local GetLastError = assert(ffi.C.GetLastError, "GetLastError not found")
local function wide_to_narrow(array, length)
local t = {}
for i = 0, length - 1 do
table.insert(t, string.char(math.min(array[i], 0xff)))
end
return table.concat(t, "")
end
local function is_mintty(fd)
local handle = get_osfhandle(fd)
local filetype = GetFileType(handle)
if filetype ~= 0x0003 then -- not FILE_TYPE_PIPE (0x0003)
-- mintty must be a pipe
if CLUTTEX_VERBOSITY >= 4 then
io.stderr:write("ClutTeX: is_mintty: not a pipe\n")
end
return false
end
local nameinfo = ffi.new("FILE_NAME_INFO", 32768)
local FileNameInfo = 2 -- : FILE_INFO_BY_HANDLE_CLASS
if GetFileInformationByHandleEx(handle, FileNameInfo, nameinfo, ffi.sizeof("FILE_NAME_INFO", 32768)) ~= 0 then
local filename = wide_to_narrow(nameinfo.FileName, math.floor(nameinfo.FileNameLength / 2))
-- \(cygwin|msys)-<hex digits>-pty<N>-(from|to)-master
if CLUTTEX_VERBOSITY >= 4 then
io.stderr:write("ClutTeX: is_mintty: GetFileInformationByHandleEx returned ", filename, "\n")
end
local a, b = string.match(filename, "^\\(%w+)%-%x+%-pty%d+%-(%w+)%-master$")
return (a == "cygwin" or a == "msys") and (b == "from" or b == "to")
else
if CLUTTEX_VERBOSITY >= 4 then
io.stderr:write("ClutTeX: is_mintty: GetFileInformationByHandleEx failed\n")
end
return false
end
end
return {
isatty = function(file)
-- LuaJIT converts Lua's file handles into FILE* (void*)
local fd = fileno(file)
return isatty(fd) ~= 0 or is_mintty(fd)
end,
enable_virtual_terminal = function(file)
local fd = fileno(file)
if is_mintty(fd) then
-- MinTTY
if CLUTTEX_VERBOSITY >= 4 then
io.stderr:write("ClutTeX: Detected MinTTY\n")
end
return true
elseif isatty(fd) ~= 0 then
-- Check for ConEmu or ansicon
if os.getenv("ConEmuANSI") == "ON" or os.getenv("ANSICON") then
if CLUTTEX_VERBOSITY >= 4 then
io.stderr:write("ClutTeX: Detected ConEmu or ansicon\n")
end
return true
else
-- Try native VT support on recent Windows
local handle = get_osfhandle(fd)
local modePtr = ffi.new("DWORD[1]")
local result = GetConsoleMode(handle, modePtr)
if result == 0 then
if CLUTTEX_VERBOSITY >= 3 then
local err = GetLastError()
io.stderr:write(string.format("ClutTeX: GetConsoleMode failed (0x%08X)\n", err))
end
return false
end
local ENABLE_VIRTUAL_TERMINAL_PROCESSING = 0x0004
result = SetConsoleMode(handle, bitlib.bor(modePtr[0], ENABLE_VIRTUAL_TERMINAL_PROCESSING))
if result == 0 then
-- SetConsoleMode failed: Command Prompt on older Windows
if CLUTTEX_VERBOSITY >= 3 then
local err = GetLastError()
-- Typical error code: ERROR_INVALID_PARAMETER (0x57)
io.stderr:write(string.format("ClutTeX: SetConsoleMode failed (0x%08X)\n", err))
end
return false
end
if CLUTTEX_VERBOSITY >= 4 then
io.stderr:write("ClutTeX: Detected recent Command Prompt\n")
end
return true
end
else
-- Not a TTY
return false
end
end,
}
end)
if succ then
if CLUTTEX_VERBOSITY >= 3 then
io.stderr:write("ClutTeX: isatty found via FFI (Windows)\n")
end
return M
else
if CLUTTEX_VERBOSITY >= 3 then
io.stderr:write("ClutTeX: FFI (Windows) not found: ", M, "\n")
end
end
end
return {
isatty = function(file)
return false
end,
}
end
package.preload["texrunner.message"] = function(...)
--[[
Copyright 2018 ARATA Mizuki
This file is part of ClutTeX.
ClutTeX is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
ClutTeX is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with ClutTeX. If not, see <http://www.gnu.org/licenses/>.
]]
local use_colors = false
local function set_colors(mode)
local M
if mode == "always" then
M = require "texrunner.isatty"
use_colors = true
if use_colors and M.enable_virtual_terminal then
local succ = M.enable_virtual_terminal(io.stderr)
if not succ and CLUTTEX_VERBOSITY >= 2 then
io.stderr:write("ClutTeX: Failed to enable virtual terminal\n")
end
end
elseif mode == "auto" then
M = require "texrunner.isatty"
use_colors = M.isatty(io.stderr)
if use_colors and M.enable_virtual_terminal then
use_colors = M.enable_virtual_terminal(io.stderr)
if not use_colors and CLUTTEX_VERBOSITY >= 2 then
io.stderr:write("ClutTeX: Failed to enable virtual terminal\n")
end
end
elseif mode == "never" then
use_colors = false
else
error "The value of --color option must be one of 'auto', 'always', or 'never'."
end
end
-- ESCAPE: hex 1B = dec 27 = oct 33
local CMD = {
reset = "\027[0m",
underline = "\027[4m",
fg_black = "\027[30m",
fg_red = "\027[31m",
fg_green = "\027[32m",
fg_yellow = "\027[33m",
fg_blue = "\027[34m",
fg_magenta = "\027[35m",
fg_cyan = "\027[36m",
fg_white = "\027[37m",
fg_reset = "\027[39m",
bg_black = "\027[40m",
bg_red = "\027[41m",
bg_green = "\027[42m",
bg_yellow = "\027[43m",
bg_blue = "\027[44m",
bg_magenta = "\027[45m",
bg_cyan = "\027[46m",
bg_white = "\027[47m",
bg_reset = "\027[49m",
fg_x_black = "\027[90m",
fg_x_red = "\027[91m",
fg_x_green = "\027[92m",
fg_x_yellow = "\027[93m",
fg_x_blue = "\027[94m",
fg_x_magenta = "\027[95m",
fg_x_cyan = "\027[96m",
fg_x_white = "\027[97m",
bg_x_black = "\027[100m",
bg_x_red = "\027[101m",
bg_x_green = "\027[102m",
bg_x_yellow = "\027[103m",
bg_x_blue = "\027[104m",
bg_x_magenta = "\027[105m",
bg_x_cyan = "\027[106m",
bg_x_white = "\027[107m",
}
local function exec_msg(commandline)
if use_colors then
io.stderr:write(CMD.fg_x_white, CMD.bg_red, "[EXEC]", CMD.reset, " ", CMD.fg_cyan, commandline, CMD.reset, "\n")
else
io.stderr:write("[EXEC] ", commandline, "\n")
end
end
local function error_msg(...)
local message = table.concat({...}, "")
if use_colors then
io.stderr:write(CMD.fg_x_white, CMD.bg_red, "[ERROR]", CMD.reset, " ", CMD.fg_red, message, CMD.reset, "\n")
else
io.stderr:write("[ERROR] ", message, "\n")
end
end
local function warn_msg(...)
local message = table.concat({...}, "")
if use_colors then
io.stderr:write(CMD.fg_x_white, CMD.bg_red, "[WARN]", CMD.reset, " ", CMD.fg_blue, message, CMD.reset, "\n")
else
io.stderr:write("[WARN] ", message, "\n")
end
end
local function diag_msg(...)
local message = table.concat({...}, "")
if use_colors then
io.stderr:write(CMD.fg_x_white, CMD.bg_red, "[DIAG]", CMD.reset, " ", CMD.fg_blue, message, CMD.reset, "\n")
else
io.stderr:write("[DIAG] ", message, "\n")
end
end
local function info_msg(...)
local message = table.concat({...}, "")
if use_colors then
io.stderr:write(CMD.fg_x_white, CMD.bg_red, "[INFO]", CMD.reset, " ", CMD.fg_magenta, message, CMD.reset, "\n")
else
io.stderr:write("[INFO] ", message, "\n")
end
end
return {
set_colors = set_colors,
exec = exec_msg,
error = error_msg,
warn = warn_msg,
diag = diag_msg,
info = info_msg,
}
end
package.preload["texrunner.fswatcher_windows"] = function(...)
--[[
Copyright 2019 ARATA Mizuki
This file is part of ClutTeX.
ClutTeX is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
ClutTeX is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with ClutTeX. If not, see <http://www.gnu.org/licenses/>.
]]
local ffi = require "ffi"
local bitlib = assert(bit32 or bit, "Neither bit32 (Lua 5.2) nor bit (LuaJIT) found") -- Lua 5.2 or LuaJIT
ffi.cdef[[
typedef int BOOL;
typedef unsigned int UINT;
typedef uint32_t DWORD;
typedef void *HANDLE;
typedef uintptr_t ULONG_PTR;
typedef uint16_t WCHAR;
typedef struct _OVERLAPPED {
ULONG_PTR Internal;
ULONG_PTR InternalHigh;
union {
struct {
DWORD Offset;
DWORD OffsetHigh;
};
void *Pointer;
};
HANDLE hEvent;
} OVERLAPPED;
typedef struct _FILE_NOTIFY_INFORMATION {
DWORD NextEntryOffset;
DWORD Action;
DWORD FileNameLength;
WCHAR FileName[?];
} FILE_NOTIFY_INFORMATION;
typedef void (__stdcall *LPOVERLAPPED_COMPLETION_ROUTINE)(DWORD dwErrorCode, DWORD dwNumberOfBytesTransfered, OVERLAPPED *lpOverlapped);
DWORD GetLastError();
BOOL CloseHandle(HANDLE hObject);
HANDLE CreateFileA(const char *lpFileName, DWORD dwDesiredAccess, DWORD dwShareMode, void *lpSecurityAttributes, DWORD dwCreationDisposition, DWORD dwFlagsAndAttributes, HANDLE hTemplateFile);
HANDLE CreateIoCompletionPort(HANDLE fileHandle, HANDLE existingCompletionPort, ULONG_PTR completionKey, DWORD numberOfConcurrentThreads);
BOOL ReadDirectoryChangesW(HANDLE hDirectory, void *lpBuffer, DWORD nBufferLength, BOOL bWatchSubtree, DWORD dwNotifyFilter, DWORD *lpBytesReturned, OVERLAPPED *lpOverlapped, LPOVERLAPPED_COMPLETION_ROUTINE lpOverlappedCompletionRoutine);
BOOL GetQueuedCompletionStatus(HANDLE CompletionPort, DWORD *lpNumberOfBytes, ULONG_PTR *lpCompletionKey, OVERLAPPED **lpOverlapped, DWORD dwMilliseconds);
int MultiByteToWideChar(UINT CodePage, DWORD dwFlags, const char *lpMultiByteStr, int cbMultiByte, WCHAR *lpWideCharStr, int cchWideChar);
int WideCharToMultiByte(UINT CodePage, DWORD dwFlags, const WCHAR *lpWideCharStr, int cchWideChar, char *lpMultiByteStr, int cbMultiByte, const char *lpDefaultChar, BOOL *lpUsedDefaultChar);
DWORD GetFullPathNameA(const char *lpFileName, DWORD nBufferLength, char *lpBuffer, char **lpFilePart);
uint64_t GetTickCount64();
]]
-- LuaTeX's FFI does not equate a null pointer with nil.
-- On LuaJIT, ffi.NULL is just nil.
local NULL = ffi.NULL
-- GetLastError
local ERROR_FILE_NOT_FOUND = 0x0002
local ERROR_PATH_NOT_FOUND = 0x0003
local ERROR_ACCESS_DENIED = 0x0005
local ERROR_INVALID_PARAMETER = 0x0057
local ERROR_INSUFFICIENT_BUFFER = 0x007A
local WAIT_TIMEOUT = 0x0102
local ERROR_ABANDONED_WAIT_0 = 0x02DF
local ERROR_NOACCESS = 0x03E6
local ERROR_INVALID_FLAGS = 0x03EC
local ERROR_NOTIFY_ENUM_DIR = 0x03FE
local ERROR_NO_UNICODE_TRANSLATION = 0x0459
local KnownErrors = {
[ERROR_FILE_NOT_FOUND] = "ERROR_FILE_NOT_FOUND",
[ERROR_PATH_NOT_FOUND] = "ERROR_PATH_NOT_FOUND",
[ERROR_ACCESS_DENIED] = "ERROR_ACCESS_DENIED",
[ERROR_INVALID_PARAMETER] = "ERROR_INVALID_PARAMETER",
[ERROR_INSUFFICIENT_BUFFER] = "ERROR_INSUFFICIENT_BUFFER",
[ERROR_ABANDONED_WAIT_0] = "ERROR_ABANDONED_WAIT_0",
[ERROR_NOACCESS] = "ERROR_NOACCESS",
[ERROR_INVALID_FLAGS] = "ERROR_INVALID_FLAGS",
[ERROR_NOTIFY_ENUM_DIR] = "ERROR_NOTIFY_ENUM_DIR",
[ERROR_NO_UNICODE_TRANSLATION] = "ERROR_NO_UNICODE_TRANSLATION",
}
-- CreateFile
local FILE_FLAG_BACKUP_SEMANTICS = 0x02000000
local FILE_FLAG_OVERLAPPED = 0x40000000
local OPEN_EXISTING = 3
local FILE_SHARE_READ = 0x00000001
local FILE_SHARE_WRITE = 0x00000002
local FILE_SHARE_DELETE = 0x00000004
local FILE_LIST_DIRECTORY = 0x1
local INVALID_HANDLE_VALUE = ffi.cast("void *", -1)
-- ReadDirectoryChangesW / FILE_NOTIFY_INFORMATION
local FILE_NOTIFY_CHANGE_FILE_NAME = 0x00000001
local FILE_NOTIFY_CHANGE_DIR_NAME = 0x00000002
local FILE_NOTIFY_CHANGE_ATTRIBUTES = 0x00000004
local FILE_NOTIFY_CHANGE_SIZE = 0x00000008
local FILE_NOTIFY_CHANGE_LAST_WRITE = 0x00000010
local FILE_NOTIFY_CHANGE_LAST_ACCESS = 0x00000020
local FILE_NOTIFY_CHANGE_CREATION = 0x00000040
local FILE_NOTIFY_CHANGE_SECURITY = 0x00000100
local FILE_ACTION_ADDED = 0x00000001
local FILE_ACTION_REMOVED = 0x00000002
local FILE_ACTION_MODIFIED = 0x00000003
local FILE_ACTION_RENAMED_OLD_NAME = 0x00000004
local FILE_ACTION_RENAMED_NEW_NAME = 0x00000005
-- WideCharToMultiByte / MultiByteToWideChar
local CP_ACP = 0
local CP_UTF8 = 65001
local C = ffi.C
local function format_error(name, lasterror, extra)
local errorname = KnownErrors[lasterror] or string.format("error code %d", lasterror)
if extra then
return string.format("%s failed with %s (0x%04x) [%s]", name, errorname, lasterror, extra)
else
return string.format("%s failed with %s (0x%04x)", name, errorname, lasterror)
end
end
local function wcs_to_mbs(wstr, wstrlen, codepage)
-- wstr: FFI uint16_t[?]
-- wstrlen: length of wstr, or -1 if NUL-terminated
if wstrlen == 0 then
return ""
end
codepage = codepage or CP_ACP
local dwFlags = 0
local result = C.WideCharToMultiByte(codepage, dwFlags, wstr, wstrlen, nil, 0, nil, nil)
if result <= 0 then
-- Failed
local lasterror = C.GetLastError()
-- Candidates: ERROR_INSUFFICIENT_BUFFER, ERROR_INVALID_FLAGS, ERROR_INVALID_PARAMETER, ERROR_NO_UNICODE_TRANSLATION
return nil, format_error("WideCharToMultiByte", lasterror)
end
local mbsbuf = ffi.new("char[?]", result)
result = C.WideCharToMultiByte(codepage, dwFlags, wstr, wstrlen, mbsbuf, result, nil, nil)
if result <= 0 then
-- Failed
local lasterror = C.GetLastError()
-- Candidates: ERROR_INSUFFICIENT_BUFFER, ERROR_INVALID_FLAGS, ERROR_INVALID_PARAMETER, ERROR_NO_UNICODE_TRANSLATION
return nil, format_error("WideCharToMultiByte", lasterror)
end
return ffi.string(mbsbuf, result)
end
local function mbs_to_wcs(str, codepage)
-- str: Lua string
if str == "" then
return ffi.new("WCHAR[0]")
end
codepage = codepage or CP_ACP
local dwFlags = 0
local result = C.MultiByteToWideChar(codepage, dwFlags, str, #str, nil, 0)
if result <= 0 then
local lasterror = C.GetLastError()
-- ERROR_INSUFFICIENT_BUFFER, ERROR_INVALID_FLAGS, ERROR_INVALID_PARAMETER, ERROR_NO_UNICODE_TRANSLATION
return nil, format_error("MultiByteToWideChar", lasterror)
end
local wcsbuf = ffi.new("WCHAR[?]", result)
result = C.MultiByteToWideChar(codepage, dwFlags, str, #str, wcsbuf, result)
if result <= 0 then
local lasterror = C.GetLastError()
return nil, format_error("MultiByteToWideChar", lasterror)
end
return wcsbuf, result
end
local function get_full_path_name(filename)
local bufsize = 1024
local buffer
local filePartPtr = ffi.new("char*[1]")
local result
repeat
buffer = ffi.new("char[?]", bufsize)
result = C.GetFullPathNameA(filename, bufsize, buffer, filePartPtr)
if result == 0 then
local lasterror = C.GetLastError()
return nil, format_error("GetFullPathNameA", lasterror, filename)
elseif bufsize < result then
-- result: buffer size required to hold the path + terminating NUL
bufsize = result
end
until result < bufsize
local fullpath = ffi.string(buffer, result)
local filePart = ffi.string(filePartPtr[0])
local dirPart = ffi.string(buffer, ffi.cast("intptr_t", filePartPtr[0]) - ffi.cast("intptr_t", buffer)) -- LuaTeX's FFI doesn't support pointer subtraction
return fullpath, filePart, dirPart
end
--[[
dirwatche.dirname : string
dirwatcher._rawhandle : cdata HANDLE
dirwatcher._overlapped : cdata OVERLAPPED
dirwatcher._buffer : cdata char[?]
]]
local dirwatcher_meta = {}
dirwatcher_meta.__index = dirwatcher_meta
function dirwatcher_meta:close()
if self._rawhandle ~= nil then
C.CloseHandle(ffi.gc(self._rawhandle, nil))
self._rawhandle = nil
end
end
local function open_directory(dirname)
local dwShareMode = bitlib.bor(FILE_SHARE_READ, FILE_SHARE_WRITE, FILE_SHARE_DELETE)
local dwFlagsAndAttributes = bitlib.bor(FILE_FLAG_BACKUP_SEMANTICS, FILE_FLAG_OVERLAPPED)
local handle = C.CreateFileA(dirname, FILE_LIST_DIRECTORY, dwShareMode, nil, OPEN_EXISTING, dwFlagsAndAttributes, nil)
if handle == INVALID_HANDLE_VALUE then
local lasterror = C.GetLastError()
print("Failed to open "..dirname)
return nil, format_error("CreateFileA", lasterror, dirname)
end
return setmetatable({
dirname = dirname,
_rawhandle = ffi.gc(handle, C.CloseHandle),
_overlapped = ffi.new("OVERLAPPED"),
_buffer = ffi.new("char[?]", 1024),
}, dirwatcher_meta)
end
function dirwatcher_meta:start_watch(watchSubtree)
local dwNotifyFilter = bitlib.bor(FILE_NOTIFY_CHANGE_FILE_NAME, FILE_NOTIFY_CHANGE_DIR_NAME, FILE_NOTIFY_CHANGE_ATTRIBUTES, FILE_NOTIFY_CHANGE_SIZE, FILE_NOTIFY_CHANGE_LAST_WRITE, FILE_NOTIFY_CHANGE_LAST_ACCESS, FILE_NOTIFY_CHANGE_CREATION, FILE_NOTIFY_CHANGE_SECURITY)
local buffer = self._buffer
local bufferSize = ffi.sizeof(buffer)
local result = C.ReadDirectoryChangesW(self._rawhandle, buffer, bufferSize, watchSubtree, dwNotifyFilter, nil, self._overlapped, nil)
if result == 0 then
local lasterror = C.GetLastError()
return nil, format_error("ReadDirectoryChangesW", lasterror, self.dirname)
end
return true
end
local ActionTable = {
[FILE_ACTION_ADDED] = "added",
[FILE_ACTION_REMOVED] = "removed",
[FILE_ACTION_MODIFIED] = "modified",
[FILE_ACTION_RENAMED_OLD_NAME] = "rename_from",
[FILE_ACTION_RENAMED_NEW_NAME] = "rename_to",
}
function dirwatcher_meta:process(numberOfBytes)
-- self._buffer received `numberOfBytes` bytes
local buffer = self._buffer
numberOfBytes = math.min(numberOfBytes, ffi.sizeof(buffer))
local ptr = ffi.cast("char *", buffer)
local structSize = ffi.sizeof("FILE_NOTIFY_INFORMATION", 1)
local t = {}
while numberOfBytes >= structSize do
local notifyInfo = ffi.cast("FILE_NOTIFY_INFORMATION*", ptr)
local nextEntryOffset = notifyInfo.NextEntryOffset
local action = notifyInfo.Action
local fileNameLength = notifyInfo.FileNameLength
local fileName = notifyInfo.FileName
local u = { action = ActionTable[action], filename = wcs_to_mbs(fileName, fileNameLength / 2) }
table.insert(t, u)
if nextEntryOffset == 0 or numberOfBytes <= nextEntryOffset then
break
end
numberOfBytes = numberOfBytes - nextEntryOffset
ptr = ptr + nextEntryOffset
end
return t
end
--[[
watcher._rawport : cdata HANDLE
watcher._pending : array of {
action = ..., filename = ...
}
watcher._directories[dirname] = {
dir = directory watcher,
dirname = dirname,
files = { [filename] = user-supplied path } -- files to watch
}
watcher[i] = i-th directory (_directories[dirname] for some dirname)
]]
local fswatcher_meta = {}
fswatcher_meta.__index = fswatcher_meta
local function new_watcher()
local port = C.CreateIoCompletionPort(INVALID_HANDLE_VALUE, nil, 0, 0)
if port == NULL then
local lasterror = C.GetLastError()
return nil, format_error("CreateIoCompletionPort", lasterror)
end
return setmetatable({
_rawport = ffi.gc(port, C.CloseHandle), -- ?
_pending = {},
_directories = {},
}, fswatcher_meta)
end
local function add_directory(self, dirname)
local t = self._directories[dirname]
if not t then
local dirwatcher, err = open_directory(dirname)
if not dirwatcher then
return dirwatcher, err
end
t = { dirwatcher = dirwatcher, dirname = dirname, files = {} }
table.insert(self, t)
local i = #self
local result = C.CreateIoCompletionPort(dirwatcher._rawhandle, self._rawport, i, 0)
if result == NULL then
local lasterror = C.GetLastError()
return nil, format_error("CreateIoCompletionPort", lasterror, dirname)
end
self._directories[dirname] = t
local result, err = dirwatcher:start_watch(false)
if not result then
return result, err
end
end
return t
end
function fswatcher_meta:add_file(path, ...)
local fullpath, filename, dirname = get_full_path_name(path)
local t, err = add_directory(self, dirname)
if not t then
return t, err
end
t.files[filename] = path
return true
end
local INFINITE = 0xFFFFFFFF
local function get_queued(self, timeout)
local startTime = C.GetTickCount64()
local timeout_ms
if timeout == nil then
timeout_ms = INFINITE
else
timeout_ms = timeout * 1000
end
local numberOfBytesPtr = ffi.new("DWORD[1]")
local completionKeyPtr = ffi.new("ULONG_PTR[1]")
local lpOverlapped = ffi.new("OVERLAPPED*[1]")
repeat
local result = C.GetQueuedCompletionStatus(self._rawport, numberOfBytesPtr, completionKeyPtr, lpOverlapped, timeout_ms)
if result == 0 then
local lasterror = C.GetLastError()
if lasterror == WAIT_TIMEOUT then
return nil, "timeout"
else
return nil, format_error("GetQueuedCompletionStatus", lasterror)
end
end
local numberOfBytes = numberOfBytesPtr[0]
local completionKey = tonumber(completionKeyPtr[0])
local dir_t = assert(self[completionKey], "invalid completion key: " .. tostring(completionKey))
local t = dir_t.dirwatcher:process(numberOfBytes)
dir_t.dirwatcher:start_watch(false)
local found = false
for i,v in ipairs(t) do
local path = dir_t.files[v.filename]
if path then
found = true
table.insert(self._pending, {path = path, action = v.action})
end
end
if found then
return true
end
if timeout_ms ~= INFINITE then
local tt = C.GetTickCount64()
timeout_ms = timeout_ms - (tt - startTime)
startTime = tt
end
until timeout_ms < 0
return nil, "timeout"
end
function fswatcher_meta:next(timeout)
if #self._pending > 0 then
local result = table.remove(self._pending, 1)
get_queued(self, 0) -- ignore error
return result
else
local result, err = get_queued(self, timeout)
if result == nil then
return nil, err
end
return table.remove(self._pending, 1)
end
end
function fswatcher_meta:close()
if self._rawport ~= nil then
for i,v in ipairs(self) do
v.dirwatcher:close()
end
C.CloseHandle(ffi.gc(self._rawport, nil))
self._rawport = nil
end
end
--[[
local watcher = require("fswatcher_windows").new()
assert(watcher:add_file("rdc-sync.c"))
assert(watcher:add_file("sub2/hoge"))
for i = 1, 10 do
local result, err = watcher:next(2)
if err == "timeout" then
print(os.date(), "timeout")
else
assert(result, err)
print(os.date(), result.path, result.action)
end
end
watcher:close()
]]
return {
new = new_watcher,
}
end
package.preload["texrunner.safename"] = function(...)
--[[
Copyright 2019 ARATA Mizuki
This file is part of ClutTeX.
ClutTeX is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
ClutTeX is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with ClutTeX. If not, see <http://www.gnu.org/licenses/>.
]]
local string = string
local table = table
local function dounsafechar(c)
if c == " " then
return "_"
else
return string.format("_%02x", c:byte(1))
end
end
local function escapejobname(name)
return (string.gsub(name, "[%s\"$%%&'();<>\\^`|]", dounsafechar))
end
local function handlespecialchar(s)
return (string.gsub(s, "[%\\%%^%{%}%~%#]", "~\\%1"))
end
local function handlespaces(s)
return (string.gsub(s, " +", function(s) return string.rep(" ", #s, "~") end))
end
local function handlenonascii(s)
return (string.gsub(s, "[\x80-\xFF]+", "\\detokenize{%1}"))
end
local function safeinput(name, engine)
local escaped = handlespaces(handlespecialchar(name))
if engine.name == "pdftex" or engine.name == "pdflatex" then
escaped = handlenonascii(escaped)
end
if name == escaped then
return string.format("\\input\"%s\"", name)
else
return string.format("\\begingroup\\escapechar-1\\let~\\string\\edef\\x{\"%s\" }\\expandafter\\endgroup\\expandafter\\input\\x", escaped)
end
end
return {
escapejobname = escapejobname,
safeinput = safeinput,
}
end
package.preload["texrunner.checkdriver"] = function(...)
--[[
Copyright 2020 ARATA Mizuki
This file is part of ClutTeX.
ClutTeX is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
ClutTeX is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with ClutTeX. If not, see <http://www.gnu.org/licenses/>.
]]
local assert = assert
local ipairs = ipairs
local error = error
local string = string
local pathutil = require "texrunner.pathutil"
local message = require "texrunner.message"
local right_values = {
dvips = {
graphics = "dvips",
expl3 = {
old = "dvips",
new = "dvips",
},
hyperref = "dvips",
xypic = "dvips",
},
dvipdfmx = {
graphics = "dvipdfmx",
expl3 = {
old = "dvipdfmx",
new = "dvipdfmx",
},
hyperref = "dvipdfmx",
xypic = "pdf",
},
dvisvgm = {
graphics = "dvisvgm",
expl3 = {
old = "dvisvgm",
new = "dvisvgm",
},
},
xetex = {
graphics = "xetex",
expl3 = {
old = "xdvipdfmx",
new = "xetex",
},
hyperref = "xetex",
xypic = "pdf",
},
pdftex = {
graphics = "pdftex",
expl3 = {
old = "pdfmode",
new = "pdftex",
},
hyperref = "pdftex",
xypic = "pdf",
},
luatex = {
graphics = "luatex",
expl3 = {
old = "pdfmode",
new = "luatex",
},
hyperref = "luatex",
xypic = "pdf",
},
}
-- expected_driver: one of "dvips", "dvipdfmx", "dvisvgm", "pdftex", "xetex", "luatex"
local function checkdriver(expected_driver, filelist)
if CLUTTEX_VERBOSITY >= 1 then
message.info("checkdriver: expects ", expected_driver)
end
local loaded = {}
for i,t in ipairs(filelist) do
if t.kind == "input" then
local basename = pathutil.basename(t.path)
loaded[basename] = true
end
end
local graphics_driver = nil -- "dvipdfmx" | "dvips" | "dvisvgm" | "pdftex" | "luatex" | "xetex" | "unknown"
if loaded["graphics.sty"] or loaded["color.sty"] then
if loaded["dvipdfmx.def"] then
graphics_driver = "dvipdfmx"
elseif loaded["dvips.def"] then
graphics_driver = "dvips"
elseif loaded["dvisvgm.def"] then
graphics_driver = "dvisvgm"
elseif loaded["pdftex.def"] then
graphics_driver = "pdftex"
elseif loaded["luatex.def"] then
graphics_driver = "luatex"
elseif loaded["xetex.def"] then
graphics_driver = "xetex"
else
-- Not supported: dvipdf, dvipsone, emtex, textures, pctexps, pctexwin, pctexhp, pctex32, truetex, tcidvi, vtex
graphics_driver = "unknown"
end
end
local expl3_driver = nil -- "pdfmode" | "dvisvgm" | "xdvipdfmx" | "dvipdfmx" | "dvips" | "pdftex" | "luatex" | "xetex" | "unknown"
if loaded["expl3-code.tex"] or loaded["expl3.sty"] or loaded["l3backend-dvips.def"] or loaded["l3backend-dvipdfmx.def"] or loaded["l3backend-xdvipdfmx.def"] or loaded["l3backend-pdfmode.def"] or loaded["l3backend-pdftex.def"] or loaded["l3backend-luatex.def"] or loaded["l3backend-xetex.def"] then
if loaded["l3backend-pdfmode.def"] then
expl3_driver = "pdfmode" -- pdftex, luatex in older l3backend
elseif loaded["l3backend-dvisvgm.def"] then
expl3_driver = "dvisvgm"
elseif loaded["l3backend-xdvipdfmx.def"] then
expl3_driver = "xdvipdfmx" -- xetex in older l3backend
elseif loaded["l3backend-dvipdfmx.def"] then
expl3_driver = "dvipdfmx"
elseif loaded["l3backend-dvips.def"] then
expl3_driver = "dvips"
elseif loaded["l3backend-pdftex.def"] then
expl3_driver = "pdftex"
elseif loaded["l3backend-luatex.def"] then
expl3_driver = "luatex"
elseif loaded["l3backend-xetex.def"] then
expl3_driver = "xetex"
else
-- TODO: driver=latex2e?
expl3_driver = "unknown"
end
end
local hyperref_driver = nil -- "luatex" | "pdftex" | "xetex" | "dvipdfmx" | "dvips" | "unknown"
if loaded["hyperref.sty"] then
if loaded["hluatex.def"] then
hyperref_driver = "luatex"
elseif loaded["hpdftex.def"] then
hyperref_driver = "pdftex"
elseif loaded["hxetex.def"] then
hyperref_driver = "xetex"
elseif loaded["hdvipdfm.def"] then
hyperref_driver = "dvipdfmx"
elseif loaded["hdvips.def"] then
hyperref_driver = "dvips"
else
-- Not supported: dvipson, dviwind, tex4ht, texture, vtex, vtexhtm, xtexmrk, hypertex
hyperref_driver = "unknown"
end
-- TODO: dvisvgm?
end
local xypic_driver = nil -- "pdf" | "dvips" | "unknown"
if loaded["xy.tex"] then
if loaded["xypdf.tex"] then
xypic_driver = "pdf" -- pdftex, luatex, xetex, dvipdfmx
elseif loaded["xydvips.tex"] then
xypic_driver = "dvips"
else
-- Not supported: dvidrv, dvitops, oztex, 17oztex, textures, 16textures, xdvi
xypic_driver = "unknown"
end
-- TODO: dvisvgm?
end
if CLUTTEX_VERBOSITY >= 1 then
message.info("checkdriver: graphics=", tostring(graphics_driver))
message.info("checkdriver: expl3=", tostring(expl3_driver))
message.info("checkdriver: hyperref=", tostring(hyperref_driver))
message.info("checkdriver: xypic=", tostring(xypic_driver))
end
local expected = assert(right_values[expected_driver], "invalid value for expected_driver")
if graphics_driver ~= nil and expected.graphics ~= nil and graphics_driver ~= expected.graphics then
message.diag("The driver option for graphics(x)/color is missing or wrong.")
message.diag("Consider setting '", expected.graphics, "' option.")
end
if expl3_driver ~= nil and expected.expl3 ~= nil and expl3_driver ~= expected.expl3.old and expl3_driver ~= expected.expl3.new then
message.diag("The driver option for expl3 is missing or wrong.")
message.diag("Consider setting 'driver=", expected.expl3.new, "' option when loading expl3.")
if expected.expl3.old ~= expected.expl3.new then
message.diag("You might need to instead set 'driver=", expected.expl3.old, "' if you are using an older version of expl3.")
end
end
if hyperref_driver ~= nil and expected.hyperref ~= nil and hyperref_driver ~= expected.hyperref then
message.diag("The driver option for hyperref is missing or wrong.")
message.diag("Consider setting '", expected.hyperref, "' option.")
end
if xypic_driver ~= nil and expected.xypic ~= nil and xypic_driver ~= expected.xypic then
message.diag("The driver option for Xy-pic is missing or wrong.")
if expected_driver == "dvipdfmx" then
message.diag("Consider setting 'dvipdfmx' option or running \\xyoption{pdf}.")
elseif expected_driver == "pdftex" then
message.diag("Consider setting 'pdftex' option or running \\xyoption{pdf}.")
elseif expected.xypic == "pdf" then
message.diag("Consider setting 'pdf' package option or running \\xyoption{pdf}.")
elseif expected.xypic == "dvips" then
message.diag("Consider setting 'dvips' option.")
end
end
end
--[[
filelist[i] = {path = ""}
]]
return {
checkdriver = checkdriver,
}
end
--[[
Copyright 2016-2021 ARATA Mizuki
This file is part of ClutTeX.
ClutTeX is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
ClutTeX is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with ClutTeX. If not, see <http://www.gnu.org/licenses/>.
]]
CLUTTEX_VERSION = "v0.5.1"
-- Standard libraries
local coroutine = coroutine
local tostring = tostring
-- External libraries (included in texlua)
local filesys = require "lfs"
local md5 = require "md5"
-- local kpse = require "kpse"
-- My own modules
local pathutil = require "texrunner.pathutil"
local fsutil = require "texrunner.fsutil"
local shellutil = require "texrunner.shellutil"
local reruncheck = require "texrunner.reruncheck"
local luatexinit = require "texrunner.luatexinit"
local recoverylib = require "texrunner.recovery"
local message = require "texrunner.message"
local safename = require "texrunner.safename"
local extract_bibtex_from_aux_file = require "texrunner.auxfile".extract_bibtex_from_aux_file
local handle_cluttex_options = require "texrunner.handleoption".handle_cluttex_options
local checkdriver = require "texrunner.checkdriver".checkdriver
os.setlocale("", "ctype") -- Workaround for recent Universal CRT
-- arguments: input file name, jobname, etc...
local function genOutputDirectory(...)
-- The name of the temporary directory is based on the path of input file.
local message = table.concat({...}, "\0")
local hash = md5.sumhexa(message)
local tmpdir = os.getenv("TMPDIR") or os.getenv("TMP") or os.getenv("TEMP")
if tmpdir == nil then
local home = os.getenv("HOME") or os.getenv("USERPROFILE") or error("environment variable 'TMPDIR' not set!")
tmpdir = pathutil.join(home, ".latex-build-temp")
end
return pathutil.join(tmpdir, 'latex-build-' .. hash)
end
local inputfile, engine, options = handle_cluttex_options(arg)
local jobname_for_output
if options.jobname == nil then
local basename = pathutil.basename(pathutil.trimext(inputfile))
options.jobname = safename.escapejobname(basename)
jobname_for_output = basename
else
jobname_for_output = options.jobname
end
local jobname = options.jobname
assert(jobname ~= "", "jobname cannot be empty")
local output_extension
if options.output_format == "dvi" then
output_extension = engine.dvi_extension or "dvi"
else
output_extension = "pdf"
end
if options.output == nil then
options.output = jobname_for_output .. "." .. output_extension
end
-- Prepare output directory
if options.output_directory == nil then
local inputfile_abs = pathutil.abspath(inputfile)
options.output_directory = genOutputDirectory(inputfile_abs, jobname, options.engine_executable or options.engine)
if not fsutil.isdir(options.output_directory) then
assert(fsutil.mkdir_rec(options.output_directory))
elseif options.fresh then
-- The output directory exists and --fresh is given:
-- Remove all files in the output directory
if CLUTTEX_VERBOSITY >= 1 then
message.info("Cleaning '", options.output_directory, "'...")
end
assert(fsutil.remove_rec(options.output_directory))
assert(filesys.mkdir(options.output_directory))
end
elseif options.fresh then
message.error("--fresh and --output-directory cannot be used together.")
os.exit(1)
end
-- --print-output-directory
if options.print_output_directory then
io.write(options.output_directory, "\n")
os.exit(0)
end
local pathsep = ":"
if os.type == "windows" then
pathsep = ";"
end
local original_wd = filesys.currentdir()
if options.change_directory then
local TEXINPUTS = os.getenv("TEXINPUTS") or ""
assert(filesys.chdir(options.output_directory))
options.output = pathutil.abspath(options.output, original_wd)
os.setenv("TEXINPUTS", original_wd .. pathsep .. TEXINPUTS)
-- after changing the pwd, '.' is always the output_directory (needed for some path generation)
options.output_directory = "."
end
if options.bibtex or options.biber then
local BIBINPUTS = os.getenv("BIBINPUTS") or ""
options.output = pathutil.abspath(options.output, original_wd)
os.setenv("BIBINPUTS", original_wd .. pathsep .. BIBINPUTS)
end
-- Set `max_print_line' environment variable if not already set.
if os.getenv("max_print_line") == nil then
os.setenv("max_print_line", "65536")
end
-- TODO: error_line, half_error_line
--[[
According to texmf.cnf:
45 < error_line < 255,
30 < half_error_line < error_line - 15,
60 <= max_print_line.
]]
local function path_in_output_directory(ext)
return pathutil.join(options.output_directory, jobname .. "." .. ext)
end
local recorderfile = path_in_output_directory("fls")
local recorderfile2 = path_in_output_directory("cluttex-fls")
local tex_options = {
engine_executable = options.engine_executable,
interaction = options.interaction,
file_line_error = options.file_line_error,
halt_on_error = options.halt_on_error,
synctex = options.synctex,
output_directory = options.output_directory,
shell_escape = options.shell_escape,
shell_restricted = options.shell_restricted,
jobname = options.jobname,
fmt = options.fmt,
extraoptions = options.tex_extraoptions,
}
if options.output_format ~= "pdf" and engine.supports_pdf_generation then
tex_options.output_format = options.output_format
end
-- Setup LuaTeX initialization script
if engine.is_luatex then
local initscriptfile = path_in_output_directory("cluttexinit.lua")
luatexinit.create_initialization_script(initscriptfile, tex_options)
tex_options.lua_initialization_script = initscriptfile
end
-- handle change_directory properly (needs to be after initscript gen)
if options.change_directory then
tex_options.output_directory = nil
end
-- Run TeX command (*tex, *latex)
-- should_rerun, newauxstatus = single_run([auxstatus])
-- This function should be run in a coroutine.
local function single_run(auxstatus, iteration)
local minted, epstopdf = false, false
local bibtex_aux_hash = nil
local mainauxfile = path_in_output_directory("aux")
if fsutil.isfile(recorderfile) then
-- Recorder file already exists
local filelist, filemap = reruncheck.parse_recorder_file(recorderfile, options)
if engine.is_luatex and fsutil.isfile(recorderfile2) then
filelist, filemap = reruncheck.parse_recorder_file(recorderfile2, options, filelist, filemap)
end
auxstatus = reruncheck.collectfileinfo(filelist, auxstatus)
for _,fileinfo in ipairs(filelist) do
if string.match(fileinfo.path, "minted/minted%.sty$") then
minted = true
end
if string.match(fileinfo.path, "epstopdf%.sty$") then
epstopdf = true
end
end
if options.bibtex then
local biblines = extract_bibtex_from_aux_file(mainauxfile, options.output_directory)
if #biblines > 0 then
bibtex_aux_hash = md5.sum(table.concat(biblines, "\n"))
end
end
else
-- This is the first execution
if auxstatus ~= nil then
message.error("Recorder file was not generated during the execution!")
os.exit(1)
end
auxstatus = {}
end
--local timestamp = os.time()
local tex_injection = ""
if options.includeonly then
tex_injection = string.format("%s\\includeonly{%s}", tex_options.tex_injection or "", options.includeonly)
end
if minted or options.package_support["minted"] then
local outdir = options.output_directory
if os.type == "windows" then
outdir = string.gsub(outdir, "\\", "/") -- Use forward slashes
end
tex_injection = string.format("%s\\PassOptionsToPackage{outputdir=%s}{minted}", tex_injection or "", outdir)
if not options.package_support["minted"] then
message.diag("You may want to use --package-support=minted option.")
end
end
if epstopdf or options.package_support["epstopdf"] then
local outdir = options.output_directory
if os.type == "windows" then
outdir = string.gsub(outdir, "\\", "/") -- Use forward slashes
end
if string.sub(outdir, -1, -1) ~= "/" then
outdir = outdir.."/" -- Must end with a directory separator
end
tex_injection = string.format("%s\\PassOptionsToPackage{outdir=%s}{epstopdf}", tex_injection or "", outdir)
if not options.package_support["epstopdf"] then
message.diag("You may want to use --package-support=epstopdf option.")
end
end
local inputline = tex_injection .. safename.safeinput(inputfile, engine)
local current_tex_options, lightweight_mode = tex_options, false
if iteration == 1 and options.start_with_draft then
current_tex_options = {}
for k,v in pairs(tex_options) do
current_tex_options[k] = v
end
if engine.supports_draftmode then
current_tex_options.draftmode = true
options.start_with_draft = false
end
current_tex_options.interaction = "batchmode"
lightweight_mode = true
else
current_tex_options.draftmode = false
end
local command = engine:build_command(inputline, current_tex_options)
local execlog -- the contents of .log file
local recovered = false
local function recover()
-- Check log file
if not execlog then
local logfile = assert(io.open(path_in_output_directory("log")))
execlog = logfile:read("*a")
logfile:close()
end
recovered = recoverylib.try_recovery{
execlog = execlog,
auxfile = path_in_output_directory("aux"),
options = options,
original_wd = original_wd,
}
return recovered
end
coroutine.yield(command, recover) -- Execute the command
if recovered then
return true, {}
end
local filelist, filemap = reruncheck.parse_recorder_file(recorderfile, options)
if engine.is_luatex and fsutil.isfile(recorderfile2) then
filelist, filemap = reruncheck.parse_recorder_file(recorderfile2, options, filelist, filemap)
end
if not execlog then
local logfile = assert(io.open(path_in_output_directory("log")))
execlog = logfile:read("*a")
logfile:close()
end
if options.check_driver ~= nil then
checkdriver(options.check_driver, filelist)
end
if options.makeindex then
-- Look for .idx files and run MakeIndex
for _,file in ipairs(filelist) do
if pathutil.ext(file.path) == "idx" then
-- Run makeindex if the .idx file is new or updated
local idxfileinfo = {path = file.path, abspath = file.abspath, kind = "auxiliary"}
local output_ind = pathutil.replaceext(file.abspath, "ind")
if reruncheck.comparefileinfo({idxfileinfo}, auxstatus) or reruncheck.comparefiletime(file.abspath, output_ind, auxstatus) then
local idx_dir = pathutil.dirname(file.abspath)
local makeindex_command = {
"cd", shellutil.escape(idx_dir), "&&",
options.makeindex, -- Do not escape options.makeindex to allow additional options
"-o", pathutil.basename(output_ind),
pathutil.basename(file.abspath)
}
coroutine.yield(table.concat(makeindex_command, " "))
table.insert(filelist, {path = output_ind, abspath = output_ind, kind = "auxiliary"})
else
local succ, err = filesys.touch(output_ind)
if not succ then
message.warn("Failed to touch " .. output_ind .. " (" .. err .. ")")
end
end
end
end
else
-- Check log file
if string.find(execlog, "No file [^\n]+%.ind%.") then
message.diag("You may want to use --makeindex option.")
end
end
if options.makeglossaries then
-- Look for .glo files and run makeglossaries
for _,file in ipairs(filelist) do
if pathutil.ext(file.path) == "glo" then
-- Run makeglossaries if the .glo file is new or updated
local glofileinfo = {path = file.path, abspath = file.abspath, kind = "auxiliary"}
local output_gls = pathutil.replaceext(file.abspath, "gls")
if reruncheck.comparefileinfo({glofileinfo}, auxstatus) or reruncheck.comparefiletime(file.abspath, output_gls, auxstatus) then
local makeglossaries_command = {
options.makeglossaries,
"-d", shellutil.escape(options.output_directory),
pathutil.trimext(pathutil.basename(file.path))
}
coroutine.yield(table.concat(makeglossaries_command, " "))
table.insert(filelist, {path = output_gls, abspath = output_gls, kind = "auxiliary"})
else
local succ, err = filesys.touch(output_gls)
if not succ then
message.warn("Failed to touch " .. output_ind .. " (" .. err .. ")")
end
end
end
end
else
-- Check log file
if string.find(execlog, "No file [^\n]+%.gls%.") then
message.diag("You may want to use --makeglossaries option.")
end
end
if options.bibtex then
local biblines2 = extract_bibtex_from_aux_file(mainauxfile, options.output_directory)
local bibtex_aux_hash2
if #biblines2 > 0 then
bibtex_aux_hash2 = md5.sum(table.concat(biblines2, "\n"))
end
local output_bbl = path_in_output_directory("bbl")
if bibtex_aux_hash ~= bibtex_aux_hash2 or reruncheck.comparefiletime(mainauxfile, output_bbl, auxstatus) then
-- The input for BibTeX command has changed...
local bibtex_command = {
"cd", shellutil.escape(options.output_directory), "&&",
options.bibtex,
pathutil.basename(mainauxfile)
}
coroutine.yield(table.concat(bibtex_command, " "))
else
if CLUTTEX_VERBOSITY >= 1 then
message.info("No need to run BibTeX.")
end
local succ, err = filesys.touch(output_bbl)
if not succ then
message.warn("Failed to touch " .. output_bbl .. " (" .. err .. ")")
end
end
elseif options.biber then
for _,file in ipairs(filelist) do
if pathutil.ext(file.path) == "bcf" then
-- Run biber if the .bcf file is new or updated
local bcffileinfo = {path = file.path, abspath = file.abspath, kind = "auxiliary"}
local output_bbl = pathutil.replaceext(file.abspath, "bbl")
if reruncheck.comparefileinfo({bcffileinfo}, auxstatus) or reruncheck.comparefiletime(file.abspath, output_bbl, auxstatus) then
local bbl_dir = pathutil.dirname(file.abspath)
local biber_command = {
options.biber, -- Do not escape options.biber to allow additional options
"--output-directory", shellutil.escape(options.output_directory),
pathutil.basename(file.abspath)
}
coroutine.yield(table.concat(biber_command, " "))
table.insert(filelist, {path = output_bbl, abspath = output_bbl, kind = "auxiliary"})
else
local succ, err = filesys.touch(output_bbl)
if not succ then
message.warn("Failed to touch " .. output_bbl .. " (" .. err .. ")")
end
end
end
end
else
-- Check log file
if string.find(execlog, "No file [^\n]+%.bbl%.") then
message.diag("You may want to use --bibtex or --biber option.")
end
end
if string.find(execlog, "No pages of output.") then
return "No pages of output."
end
local should_rerun, auxstatus = reruncheck.comparefileinfo(filelist, auxstatus)
return should_rerun or lightweight_mode, auxstatus
end
-- Run (La)TeX (possibly multiple times) and produce a PDF file.
-- This function should be run in a coroutine.
local function do_typeset_c()
local iteration = 0
local should_rerun, auxstatus
repeat
iteration = iteration + 1
should_rerun, auxstatus = single_run(auxstatus, iteration)
if should_rerun == "No pages of output." then
message.warn("No pages of output.")
return
end
until not should_rerun or iteration >= options.max_iterations
if should_rerun then
message.warn("LaTeX should be run once more.")
end
-- Successful
if options.output_format == "dvi" or engine.supports_pdf_generation then
-- Output file (DVI/PDF) is generated in the output directory
local outfile = path_in_output_directory(output_extension)
local oncopyerror
if os.type == "windows" then
oncopyerror = function()
message.error("Failed to copy file. Some applications may be locking the ", string.upper(options.output_format), " file.")
return false
end
end
coroutine.yield(fsutil.copy_command(outfile, options.output), oncopyerror)
if #options.dvipdfmx_extraoptions > 0 then
message.warn("--dvipdfmx-option[s] are ignored.")
end
else
-- DVI file is generated, but PDF file is wanted
local dvifile = path_in_output_directory("dvi")
local dvipdfmx_command = {"dvipdfmx", "-o", shellutil.escape(options.output)}
for _,v in ipairs(options.dvipdfmx_extraoptions) do
table.insert(dvipdfmx_command, v)
end
table.insert(dvipdfmx_command, shellutil.escape(dvifile))
coroutine.yield(table.concat(dvipdfmx_command, " "))
end
-- Copy SyncTeX file if necessary
if options.output_format == "pdf" then
local synctex = tonumber(options.synctex or "0")
local synctex_ext = nil
if synctex > 0 then
-- Compressed SyncTeX file (.synctex.gz)
synctex_ext = "synctex.gz"
elseif synctex < 0 then
-- Uncompressed SyncTeX file (.synctex)
synctex_ext = "synctex"
end
if synctex_ext then
coroutine.yield(fsutil.copy_command(path_in_output_directory(synctex_ext), pathutil.replaceext(options.output, synctex_ext)))
end
end
-- Write dependencies file
if options.make_depends then
local filelist, filemap = reruncheck.parse_recorder_file(recorderfile, options)
if engine.is_luatex and fsutil.isfile(recorderfile2) then
filelist, filemap = reruncheck.parse_recorder_file(recorderfile2, options, filelist, filemap)
end
local f = assert(io.open(options.make_depends, "w"))
f:write(options.output, ":")
for _,fileinfo in ipairs(filelist) do
if fileinfo.kind == "input" then
f:write(" ", fileinfo.path)
end
end
f:write("\n")
f:close()
end
end
local function do_typeset()
-- Execute the command string yielded by do_typeset_c
for command, recover in coroutine.wrap(do_typeset_c) do
message.exec(command)
local success, termination, status_or_signal = os.execute(command)
if type(success) == "number" then -- Lua 5.1 or LuaTeX
local code = success
success = code == 0
termination = nil
status_or_signal = code
end
if not success and not (recover and recover()) then
if termination == "exit" then
message.error("Command exited abnormally: exit status ", tostring(status_or_signal))
elseif termination == "signal" then
message.error("Command exited abnormally: signal ", tostring(status_or_signal))
else
message.error("Command exited abnormally: ", tostring(status_or_signal))
end
return false, termination, status_or_signal
end
end
-- Successful
if CLUTTEX_VERBOSITY >= 1 then
message.info("Command exited successfully")
end
return true
end
if options.watch then
-- Watch mode
local fswatcherlib
if os.type == "windows" then
-- Windows: Try built-in filesystem watcher
local succ, result = pcall(require, "texrunner.fswatcher_windows")
if not succ and CLUTTEX_VERBOSITY >= 1 then
message.warn("Failed to load texrunner.fswatcher_windows: " .. result)
end
fswatcherlib = result
end
local do_watch
if fswatcherlib then
if CLUTTEX_VERBOSITY >= 2 then
message.info("Using built-in filesystem watcher for Windows")
end
do_watch = function(files)
local watcher = assert(fswatcherlib.new())
for _,path in ipairs(files) do
assert(watcher:add_file(path))
end
local result = assert(watcher:next())
if CLUTTEX_VERBOSITY >= 2 then
message.info(string.format("%s %s", result.action, result.path))
end
watcher:close()
return true
end
elseif shellutil.has_command("fswatch") then
if CLUTTEX_VERBOSITY >= 2 then
message.info("Using `fswatch' command")
end
do_watch = function(files)
local fswatch_command = {"fswatch", "--one-event", "--event=Updated", "--"}
for _,path in ipairs(files) do
table.insert(fswatch_command, shellutil.escape(path))
end
local fswatch_command_str = table.concat(fswatch_command, " ")
if CLUTTEX_VERBOSITY >= 1 then
message.exec(fswatch_command_str)
end
local fswatch = assert(io.popen(fswatch_command_str, "r"))
for l in fswatch:lines() do
for _,path in ipairs(files) do
if l == path then
fswatch:close()
return true
end
end
end
return false
end
elseif shellutil.has_command("inotifywait") then
if CLUTTEX_VERBOSITY >= 2 then
message.info("Using `inotifywait' command")
end
do_watch = function(files)
local inotifywait_command = {"inotifywait", "--event=modify", "--event=attrib", "--format=%w", "--quiet"}
for _,path in ipairs(files) do
table.insert(inotifywait_command, shellutil.escape(path))
end
local inotifywait_command_str = table.concat(inotifywait_command, " ")
if CLUTTEX_VERBOSITY >= 1 then
message.exec(inotifywait_command_str)
end
local inotifywait = assert(io.popen(inotifywait_command_str, "r"))
for l in inotifywait:lines() do
for _,path in ipairs(files) do
if l == path then
inotifywait:close()
return true
end
end
end
return false
end
else
message.error("Could not watch files because neither `fswatch' nor `inotifywait' was installed.")
message.info("See ClutTeX's manual for details.")
os.exit(1)
end
local success, status = do_typeset()
-- TODO: filenames here can be UTF-8 if command_line_encoding=utf-8
local filelist, filemap = reruncheck.parse_recorder_file(recorderfile, options)
if engine.is_luatex and fsutil.isfile(recorderfile2) then
filelist, filemap = reruncheck.parse_recorder_file(recorderfile2, options, filelist, filemap)
end
local input_files_to_watch = {}
for _,fileinfo in ipairs(filelist) do
if fileinfo.kind == "input" then
table.insert(input_files_to_watch, fileinfo.abspath)
end
end
while do_watch(input_files_to_watch) do
local success, status = do_typeset()
if not success then
-- error
else
local filelist, filemap = reruncheck.parse_recorder_file(recorderfile, options)
if engine.is_luatex and fsutil.isfile(recorderfile2) then
filelist, filemap = reruncheck.parse_recorder_file(recorderfile2, options, filelist, filemap)
end
input_files_to_watch = {}
for _,fileinfo in ipairs(filelist) do
if fileinfo.kind == "input" then
table.insert(input_files_to_watch, fileinfo.abspath)
end
end
end
end
else
-- Not in watch mode
local success, status = do_typeset()
if not success then
os.exit(1)
end
end
| minoki/cluttex | bin/cluttex.bat | bat | gpl-3.0 | 116,970 |
@ECHO OFF
REM Command file for Sphinx documentation
if "%SPHINXBUILD%" == "" (
set SPHINXBUILD=sphinx-build
)
set BUILDDIR=_build
set ALLSPHINXOPTS=-d %BUILDDIR%/doctrees %SPHINXOPTS% .
set I18NSPHINXOPTS=%SPHINXOPTS% .
if NOT "%PAPER%" == "" (
set ALLSPHINXOPTS=-D latex_paper_size=%PAPER% %ALLSPHINXOPTS%
set I18NSPHINXOPTS=-D latex_paper_size=%PAPER% %I18NSPHINXOPTS%
)
if "%1" == "" goto help
if "%1" == "help" (
:help
echo.Please use `make ^<target^>` where ^<target^> is one of
echo. html to make standalone HTML files
echo. dirhtml to make HTML files named index.html in directories
echo. singlehtml to make a single large HTML file
echo. pickle to make pickle files
echo. json to make JSON files
echo. htmlhelp to make HTML files and a HTML help project
echo. qthelp to make HTML files and a qthelp project
echo. devhelp to make HTML files and a Devhelp project
echo. epub to make an epub
echo. latex to make LaTeX files, you can set PAPER=a4 or PAPER=letter
echo. text to make text files
echo. man to make manual pages
echo. texinfo to make Texinfo files
echo. gettext to make PO message catalogs
echo. changes to make an overview over all changed/added/deprecated items
echo. xml to make Docutils-native XML files
echo. pseudoxml to make pseudoxml-XML files for display purposes
echo. linkcheck to check all external links for integrity
echo. doctest to run all doctests embedded in the documentation if enabled
goto end
)
if "%1" == "clean" (
for /d %%i in (%BUILDDIR%\*) do rmdir /q /s %%i
del /q /s %BUILDDIR%\*
goto end
)
%SPHINXBUILD% 2> nul
if errorlevel 9009 (
echo.
echo.The 'sphinx-build' command was not found. Make sure you have Sphinx
echo.installed, then set the SPHINXBUILD environment variable to point
echo.to the full path of the 'sphinx-build' executable. Alternatively you
echo.may add the Sphinx directory to PATH.
echo.
echo.If you don't have Sphinx installed, grab it from
echo.http://sphinx-doc.org/
exit /b 1
)
if "%1" == "html" (
%SPHINXBUILD% -b html %ALLSPHINXOPTS% %BUILDDIR%/html
if errorlevel 1 exit /b 1
echo.
echo.Build finished. The HTML pages are in %BUILDDIR%/html.
goto end
)
if "%1" == "dirhtml" (
%SPHINXBUILD% -b dirhtml %ALLSPHINXOPTS% %BUILDDIR%/dirhtml
if errorlevel 1 exit /b 1
echo.
echo.Build finished. The HTML pages are in %BUILDDIR%/dirhtml.
goto end
)
if "%1" == "singlehtml" (
%SPHINXBUILD% -b singlehtml %ALLSPHINXOPTS% %BUILDDIR%/singlehtml
if errorlevel 1 exit /b 1
echo.
echo.Build finished. The HTML pages are in %BUILDDIR%/singlehtml.
goto end
)
if "%1" == "pickle" (
%SPHINXBUILD% -b pickle %ALLSPHINXOPTS% %BUILDDIR%/pickle
if errorlevel 1 exit /b 1
echo.
echo.Build finished; now you can process the pickle files.
goto end
)
if "%1" == "json" (
%SPHINXBUILD% -b json %ALLSPHINXOPTS% %BUILDDIR%/json
if errorlevel 1 exit /b 1
echo.
echo.Build finished; now you can process the JSON files.
goto end
)
if "%1" == "htmlhelp" (
%SPHINXBUILD% -b htmlhelp %ALLSPHINXOPTS% %BUILDDIR%/htmlhelp
if errorlevel 1 exit /b 1
echo.
echo.Build finished; now you can run HTML Help Workshop with the ^
.hhp project file in %BUILDDIR%/htmlhelp.
goto end
)
if "%1" == "qthelp" (
%SPHINXBUILD% -b qthelp %ALLSPHINXOPTS% %BUILDDIR%/qthelp
if errorlevel 1 exit /b 1
echo.
echo.Build finished; now you can run "qcollectiongenerator" with the ^
.qhcp project file in %BUILDDIR%/qthelp, like this:
echo.^> qcollectiongenerator %BUILDDIR%\qthelp\mail.qhcp
echo.To view the help file:
echo.^> assistant -collectionFile %BUILDDIR%\qthelp\mail.ghc
goto end
)
if "%1" == "devhelp" (
%SPHINXBUILD% -b devhelp %ALLSPHINXOPTS% %BUILDDIR%/devhelp
if errorlevel 1 exit /b 1
echo.
echo.Build finished.
goto end
)
if "%1" == "epub" (
%SPHINXBUILD% -b epub %ALLSPHINXOPTS% %BUILDDIR%/epub
if errorlevel 1 exit /b 1
echo.
echo.Build finished. The epub file is in %BUILDDIR%/epub.
goto end
)
if "%1" == "latex" (
%SPHINXBUILD% -b latex %ALLSPHINXOPTS% %BUILDDIR%/latex
if errorlevel 1 exit /b 1
echo.
echo.Build finished; the LaTeX files are in %BUILDDIR%/latex.
goto end
)
if "%1" == "latexpdf" (
%SPHINXBUILD% -b latex %ALLSPHINXOPTS% %BUILDDIR%/latex
cd %BUILDDIR%/latex
make all-pdf
cd %BUILDDIR%/..
echo.
echo.Build finished; the PDF files are in %BUILDDIR%/latex.
goto end
)
if "%1" == "latexpdfja" (
%SPHINXBUILD% -b latex %ALLSPHINXOPTS% %BUILDDIR%/latex
cd %BUILDDIR%/latex
make all-pdf-ja
cd %BUILDDIR%/..
echo.
echo.Build finished; the PDF files are in %BUILDDIR%/latex.
goto end
)
if "%1" == "text" (
%SPHINXBUILD% -b text %ALLSPHINXOPTS% %BUILDDIR%/text
if errorlevel 1 exit /b 1
echo.
echo.Build finished. The text files are in %BUILDDIR%/text.
goto end
)
if "%1" == "man" (
%SPHINXBUILD% -b man %ALLSPHINXOPTS% %BUILDDIR%/man
if errorlevel 1 exit /b 1
echo.
echo.Build finished. The manual pages are in %BUILDDIR%/man.
goto end
)
if "%1" == "texinfo" (
%SPHINXBUILD% -b texinfo %ALLSPHINXOPTS% %BUILDDIR%/texinfo
if errorlevel 1 exit /b 1
echo.
echo.Build finished. The Texinfo files are in %BUILDDIR%/texinfo.
goto end
)
if "%1" == "gettext" (
%SPHINXBUILD% -b gettext %I18NSPHINXOPTS% %BUILDDIR%/locale
if errorlevel 1 exit /b 1
echo.
echo.Build finished. The message catalogs are in %BUILDDIR%/locale.
goto end
)
if "%1" == "changes" (
%SPHINXBUILD% -b changes %ALLSPHINXOPTS% %BUILDDIR%/changes
if errorlevel 1 exit /b 1
echo.
echo.The overview file is in %BUILDDIR%/changes.
goto end
)
if "%1" == "linkcheck" (
%SPHINXBUILD% -b linkcheck %ALLSPHINXOPTS% %BUILDDIR%/linkcheck
if errorlevel 1 exit /b 1
echo.
echo.Link check complete; look for any errors in the above output ^
or in %BUILDDIR%/linkcheck/output.txt.
goto end
)
if "%1" == "doctest" (
%SPHINXBUILD% -b doctest %ALLSPHINXOPTS% %BUILDDIR%/doctest
if errorlevel 1 exit /b 1
echo.
echo.Testing of doctests in the sources finished, look at the ^
results in %BUILDDIR%/doctest/output.txt.
goto end
)
if "%1" == "xml" (
%SPHINXBUILD% -b xml %ALLSPHINXOPTS% %BUILDDIR%/xml
if errorlevel 1 exit /b 1
echo.
echo.Build finished. The XML files are in %BUILDDIR%/xml.
goto end
)
if "%1" == "pseudoxml" (
%SPHINXBUILD% -b pseudoxml %ALLSPHINXOPTS% %BUILDDIR%/pseudoxml
if errorlevel 1 exit /b 1
echo.
echo.Build finished. The pseudo-XML files are in %BUILDDIR%/pseudoxml.
goto end
)
:end
| laborautonomo/leap_mail | docs/api/make.bat | bat | gpl-3.0 | 6,697 |
[[bat]]@echo off
setlocal
set LISTFILE=list.htm
echo MAKING LISTFILE ... (PLEASE WAIT)
rem ÕâÀïÊÇÊä³öÍøÒ³µÄÍ·²¿£¬ÆäÖÐ^·ûºÅ±íʾºóÒ»¸ö×Ö·ûûÓÐÌØÊ⺬Ò壬°´ÆÕͨ×Ö·û´¦Àí¡£
echo ^<head^>^<style type=text/css^>A:link{FONT-SIZE:9pt;COLOR:#000000;TEXT-DECORATION: none} > %LISTFILE%
echo A:visited{FONT-SIZE:9pt;COLOR:#000000;TEXT-DECORATION:none}A:hover{COLOR:#ff0000; >> %LISTFILE%
echo TEXT-DECORATION: underline}BODY{FONT-SIZE:9pt}TABLE{FONT-SIZE:9pt}^</style^>^</head^> >> %LISTFILE%
echo [PROCESSED BY %0]^<br^> >> %LISTFILE%
rem ÕâÀïÊÇ×îÖ÷ÒªµÄ²¿·Ö£¬Æäʵ¾ÍÊÇʹÓÃdirÃüÁîÒÔ×î¼òµ¥µÄÐÎʽÁгöµ±Ç°Ä¿Â¼Ï£¨°üÀ¨×ÓĿ¼£©µÄËùÓеÄÎļþ
rem È»ºóʹÓÃforÀ´°ÑËüת»»Îª³¬Á´½ÓµÄÐÎʽ£¬ÓÐÐËȤ¿ÉÒÔÇÃÒ»ÏÂÕâ¸öÃüÁ¿´¿´»á³öÏÖʲôÑùµÄ½á¹û£º¡°dir *.* /a:-d/s/b¡±
for /f "tokens=* delims=" %%i in ('dir *.* /a:-d/s/b') do (
echo ^<a href="%%i" target=_blank^>%%i^</a^>^<br^> >> %LISTFILE%
)
start .\%LISTFILE% | auspbro/CodeSnippets | Batch/常用批处理/生成包含该批处理文件所在目录及所有子目录的所有文件超链接的网页.bat | bat | gpl-3.0 | 887 |
cdd_time -f frequencies.dat --times times.dat -d data.dat^
-o results_no_time_reg -c 1 --plot^
--f_lambda 5^
--tm_i_lambda 0^
--trho0_lambda 0 --output_format ascii
ddpt.py -i results_no_time_reg/ --plot_stats
cdd_time -f frequencies.dat --times times.dat -d data.dat^
-o results_time_reg -c 1 --plot^
--f_lambda 5^
--tm_i_lambda 1^
--trho0_lambda 10000 --output_format ascii
ddpt.py -i results_time_reg/ --plot_stats
pause
| m-weigand/ccd_tools | Examples/ccd_time/02_roots/run_dd.bat | bat | gpl-3.0 | 475 |
@echo off
if not exist ".\out\" mkdir .\out\
cl fracture.cpp^
mkl_intel_lp64.lib mkl_intel_thread.lib mkl_core.lib libiomp5md.lib^
-Ox -arch:AVX2 -fp:fast -GL^
-DEBUG -Z7^
-EHsc -MT^
-Fo:.\out\ -Fe:fracture^
-I.\third_party\Eigen^
-link -out:.\out\fracture.exe -LTCG^ | oyarsa/fracture | build.bat | bat | gpl-3.0 | 283 |
cabal install gtk2hs-buildtools
set SDL=%CD%\.cabal-sandbox\SDL2-2.0.3
set PKG_CONFIG_PATH=%SDL%\i686-w64-mingw32\lib\pkgconfig
set PATH=%SDL%\i686-w64-mingw32\bin;%PATH%
cabal install sdl2 --extra-lib-dirs=%SDL%\include --extra-include-dirs=%SDL%\lib\x86 | ZSarver/DungeonDash | dl/install_sdl.bat | bat | gpl-3.0 | 255 |
ruby "%~dp0adobe_flash_player.rb" | MeadMA/DrOllieData | disable_auto_update/adobe_flash_player.bat | bat | gpl-3.0 | 33 |
call ../../../config/ant interactive_client
pause
| velmuruganvelayutham/jpa | examples/Chapter2/employeeService/runInteractive.bat | bat | apache-2.0 | 50 |
java -Xmx512m -cp C:\Progra~1\apache\apache-tomcat\lib\bigsack.jar com.neocoretechs.bigsack.CreateDatabaseVolume %1 | neocoretechs/Relatrix | createdatabase.bat | bat | apache-2.0 | 115 |
@IF EXIST "%~dp0\node.exe" (
"%~dp0\node.exe" "%~dp0\..\ansi\examples\clear\index.js" %*
) ELSE (
@SETLOCAL
@SET PATHEXT=%PATHEXT:;.JS;=;%
node "%~dp0\..\ansi\examples\clear\index.js" %*
) | Dawnflying/PaperFriends | node_modules/wintersmith/node_modules/npm/node_modules/.bin/clear.cmd | bat | apache-2.0 | 198 |
@echo off
setlocal
pushd %~dp0
set this=%~n0
if "%SPHINXBUILD%" EQU "" set SPHINXBUILD=sphinx-build
if "%PYTHON%" EQU "" set PYTHON=py
if "%1" NEQ "htmlhelp" goto :skiphhcsearch
if exist "%HTMLHELP%" goto :skiphhcsearch
rem Search for HHC in likely places
set HTMLHELP=
where hhc /q && set HTMLHELP=hhc && goto :skiphhcsearch
where /R ..\externals hhc > "%TEMP%\hhc.loc" 2> nul && set /P HTMLHELP= < "%TEMP%\hhc.loc" & del "%TEMP%\hhc.loc"
if not exist "%HTMLHELP%" where /R "%ProgramFiles(x86)%" hhc > "%TEMP%\hhc.loc" 2> nul && set /P HTMLHELP= < "%TEMP%\hhc.loc" & del "%TEMP%\hhc.loc"
if not exist "%HTMLHELP%" where /R "%ProgramFiles%" hhc > "%TEMP%\hhc.loc" 2> nul && set /P HTMLHELP= < "%TEMP%\hhc.loc" & del "%TEMP%\hhc.loc"
if not exist "%HTMLHELP%" (
echo.
echo.The HTML Help Workshop was not found. Set the HTMLHELP variable
echo.to the path to hhc.exe or download and install it from
echo.http://msdn.microsoft.com/en-us/library/ms669985
exit /B 1
)
:skiphhcsearch
if "%DISTVERSION%" EQU "" for /f "usebackq" %%v in (`%PYTHON% tools/extensions/patchlevel.py`) do set DISTVERSION=%%v
if "%BUILDDIR%" EQU "" set BUILDDIR=build
rem Targets that don't require sphinx-build
if "%1" EQU "" goto help
if "%1" EQU "help" goto help
if "%1" EQU "check" goto check
if "%1" EQU "serve" goto serve
if "%1" == "clean" (
rmdir /q /s %BUILDDIR%
goto end
)
%SPHINXBUILD% 2> nul
if errorlevel 9009 (
echo.
echo.The 'sphinx-build' command was not found. Make sure you have Sphinx
echo.installed, then set the SPHINXBUILD environment variable to point
echo.to the full path of the 'sphinx-build' executable. Alternatively you
echo.may add the Sphinx directory to PATH.
echo.
echo.If you don't have Sphinx installed, grab it from
echo.http://sphinx-doc.org/
popd
exit /B 1
)
rem Targets that do require sphinx-build and have their own label
if "%1" EQU "htmlview" goto htmlview
rem Everything else
goto build
:help
echo.usage: %this% BUILDER [filename ...]
echo.
echo.Call %this% with the desired Sphinx builder as the first argument, e.g.
echo.``%this% html`` or ``%this% doctest``. Interesting targets that are
echo.always available include:
echo.
echo. Provided by Sphinx:
echo. html, htmlhelp, latex, text
echo. suspicious, linkcheck, changes, doctest
echo. Provided by this script:
echo. clean, check, serve, htmlview
echo.
echo.All arguments past the first one are passed through to sphinx-build as
echo.filenames to build or are ignored. See README.txt in this directory or
echo.the documentation for your version of Sphinx for more exhaustive lists
echo.of available targets and descriptions of each.
echo.
echo.This script assumes that the SPHINXBUILD environment variable contains
echo.a legitimate command for calling sphinx-build, or that sphinx-build is
echo.on your PATH if SPHINXBUILD is not set. Options for sphinx-build can
echo.be passed by setting the SPHINXOPTS environment variable.
goto end
:build
if NOT "%PAPER%" == "" (
set SPHINXOPTS=-D latex_elements.papersize=%PAPER% %SPHINXOPTS%
)
cmd /C %SPHINXBUILD% %SPHINXOPTS% -b%1 -dbuild\doctrees . %BUILDDIR%\%*
if "%1" EQU "htmlhelp" (
cmd /C "%HTMLHELP%" build\htmlhelp\python%DISTVERSION:.=%.hhp
rem hhc.exe seems to always exit with code 1, reset to 0 for less than 2
if not errorlevel 2 cmd /C exit /b 0
)
echo.
if errorlevel 1 (
echo.Build failed (exit code %ERRORLEVEL%^), check for error messages
echo.above. Any output will be found in %BUILDDIR%\%1
) else (
echo.Build succeeded. All output should be in %BUILDDIR%\%1
)
goto end
:htmlview
if NOT "%2" EQU "" (
echo.Can't specify filenames to build with htmlview target, ignoring.
)
cmd /C %this% html
if EXIST %BUILDDIR%\html\index.html (
echo.Opening %BUILDDIR%\html\index.html in the default web browser...
start %BUILDDIR%\html\index.html
)
goto end
:check
cmd /C %PYTHON% tools\rstlint.py -i tools
goto end
:serve
cmd /C %PYTHON% ..\Tools\scripts\serve.py %BUILDDIR%\html
goto end
:end
popd
| batermj/algorithm-challenger | code-analysis/programming_anguage/python/source_codes/Python3.5.9/Python-3.5.9/Doc/make.bat | bat | apache-2.0 | 4,200 |
@CLS
@ECHO OFF
:: ======================================================================
:: Athena Chameleon Startup Script
:: ======================================================================
SET LOGGING_DIRECTORY=./log
SET JAVA_OPTS="-Dlogging.directory=%LOGGING_DIRECTORY%"
IF DEFINED JAVA_HOME (
SET JAVA="%JAVA_HOME%\bin\java"
)
IF NOT DEFINED JAVA_HOME (
SET JAVA="%cd%\jre\bin\java"
)
:: Setup the Input Parameter(FQFN)
SET FQFN=%1
:: Display our environment
echo.
echo =========================================================================
echo.
echo Athena Chameleon Bootstrap Environment
echo.
echo JAVA: %JAVA%
echo.
echo JAVA_OPTS: %JAVA_OPTS%
echo.
echo Parameter: %FQFN%
echo.
echo =========================================================================
echo.
%JAVA% %JAVA_OPTS% -jar athena-chameleon.jar %FQFN%
| OpenSourceConsulting/athena-chameleon | src/main/scripts/run.bat | bat | apache-2.0 | 896 |
pushd ..
ckrew ./testcase/mr-ckr-example-d/global.n3 ./testcase/mr-ckr-example-d/m_world19.n3 ./testcase/mr-ckr-example-d/m_branch19.n3 ./testcase/mr-ckr-example-d/m_branch20.n3 ./testcase/mr-ckr-example-d/m_local19.n3 -v -mrckr -out ./demo/output.dlv | dkmfbk/ckrew | src/main/scripts/mr-ckr-example-d.bat | bat | apache-2.0 | 251 |
cscript bin\create.js %* | davibe/incubator-cordova-android | bin/create.bat | bat | apache-2.0 | 24 |
rm *.pyc
rm -rf __pycache__
| ASMlover/study | game/editor/clear.bat | bat | bsd-2-clause | 28 |
@echo off
:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
:: Copyright (c) 2015, Synopsys, Inc. :
:: All rights reserved. :
:: :
:: Redistribution and use in source and binary forms, with or without :
:: modification, are permitted provided that the following conditions are :
:: met: :
:: :
:: 1. Redistributions of source code must retain the above copyright :
:: notice, this list of conditions and the following disclaimer. :
:: :
:: 2. Redistributions in binary form must reproduce the above copyright :
:: notice, this list of conditions and the following disclaimer in the :
:: documentation and/or other materials provided with the distribution. :
:: :
:: THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS :
:: "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT :
:: LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR :
:: A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT :
:: HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, :
:: SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT :
:: LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, :
:: DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY :
:: THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT :
:: (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE :
:: OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. :
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
REM StartBuildServer.bat
REM Setting up env variables
if "%PSETHOME%" == "" goto :FindPSETHOME
"%PSETHOME%/bin/ci_environment"
if not errorlevel 1 goto :HavePSETHOME
echo DIScover is not installed in %%PSETHOME%%.
goto :Done
:FindPSETHOME
ci_environment
if not errorlevel 1 goto :HaveInstallation
echo DIScover is not installed in %%PATH%%.
goto :Done
:HaveInstallation
ci_environment --psethome --check
if errorlevel 1 goto :Done
for /F "delims=" %%v in ('ci_environment --psethome') do set PSETHOME=%%v
:HavePSETHOME
"%PSETHOME%/bin/disperl" "%PSETHOME%/mb/IMUtil.pl" -eCheckBuildServer -D- %1 %2 %3 %4 %5 %6 %7 %8 %9
:Done
| kit-transue/software-emancipation-discover | DISIM/bin/StartBuildServer.bat | bat | bsd-2-clause | 2,693 |
SET cmdPath=%~dp0
SET rootPath=%cmdPath%..\..\..\sitesroot\0\
echo User-agent: * >> %rootPath%robots.txt
IF "%IsOnLiveRunning%" == "true" (
echo Disallow: /Search >> %rootPath%robots.txt
echo Disallow: /ServiceInsight-1 >> %rootPath%robots.txt
echo Disallow: /ServicePulse-1 >> %rootPath%robots.txt
echo Disallow: /ServiceMatrix-1 >> %rootPath%robots.txt
) ELSE (
echo Disallow: / >> %rootPath%robots.txt
)
EXIT /B 0 | sfarmar/Orchard | src/Orchard.Azure/Orchard.Azure.CloudService/Orchard.Azure.WebContent/Bin/Startup/Startup.cmd | bat | bsd-3-clause | 436 |
@echo off
perl %~dp0/Wizard/slash.pl "%1" "%2" | SlashGames/slash-framework | Tools/slash.bat | bat | mit | 47 |
@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
@echo off
set build-root=%~dp0..
REM Resolve to fully qualified path
for %%i in ("%build-root%") do set build-root=%%~fi
cd %build-root%\node
REM Set up links in the npm cache to ensure we're exercising all the code in
REM the repo, rather than downloading released versions of our packages from
REM npm.
call build\dev-setup.cmd
if errorlevel 1 goto :eof
REM Lint all JavaScript code and run unit + integration tests
call build\build.cmd --min --integration-tests --e2e-tests
if errorlevel 1 goto :eof
REM The 'npm link' commands in this script create symlinks to tracked repo
REM files from ignored locations (under ./node_modules). This means a call to
REM 'git clean -xdf' will delete tracked files from the repo's working
REM directory. To avoid any complications, we'll unlink everything before
REM exiting.
call build\dev-teardown.cmd
if errorlevel 1 goto :eof | kevinledinh/azure-iot-sdks | jenkins/windows_node.cmd | bat | mit | 1,038 |
@echo off
pushd %~dp0
"%VS120COMNTOOLS%..\IDE\mstest" /test:Microsoft.Protocols.TestSuites.MS_OXCFXICS.S06_SyncICSContentsDeletion_TestSuite.MSOXCFXICS_S06_SyncICSContentsDeletion_TestSuite1 /testcontainer:..\..\MS-OXCFXICS\TestSuite\bin\Debug\MS-OXCFXICS_TestSuite.dll /runconfig:..\..\MS-OXCFXICS\MS-OXCFXICS.testsettings /unique
pause | XinwLi/Interop-TestSuites-1 | ExchangeMAPI/Source/Scripts/MS-OXCFXICS/RunMSOXCFXICS_S06_SyncICSContentsDeletion_TestSuite1.cmd | bat | mit | 337 |
@echo off
cd ..
rem Read the contents of PPYTHON_PATH into %PPYTHON_PATH%:
set /P PPYTHON_PATH=<PPYTHON_PATH
rem Get the user input:
set /P ttiUsername="Username: "
set /P TTI_GAMESERVER="Gameserver (DEFAULT: 167.114.28.238): " || ^
set TTI_GAMESERVER=167.114.28.238
rem Export the environment variables:
set ttiPassword=password
set TTI_PLAYCOOKIE=%ttiUsername%
echo ===============================
echo Starting Toontown Infinite...
echo ppython: %PPYTHON_PATH%
echo Username: %ttiUsername%
echo Gameserver: %TTI_GAMESERVER%
echo ===============================
%PPYTHON_PATH% -m toontown.toonbase.ClientStart
pause
| ToontownUprising/src | win32/start_game.bat | bat | mit | 623 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.