1 Star 0 Fork 2

shentq / CNC-STM32

Create your Gitee Account
Explore and code with more than 6 million developers,Free private repositories !:)
Sign up
This repository doesn't specify license. Without author's permission, this code is only for learning and cannot be used for other purposes.
Clone or download
build.bat 582 Bytes
Copy Edit Web IDE Raw Blame History
x893 authored 2014-01-30 20:24 . Channge build.bat
@ECHO OFF
SET KEIL=C:\Tools\Keil5\UV4
SET OUTDIR=%CD%\out
IF "%1*"=="build*" GOTO :BUILD
IF "%1*"=="clean*" GOTO :CLEAN
IF "%1*"=="rebuild*" GOTO :REBUILD
GOTO :BUILD
:CLEAN
FOR %%i IN ("%OUTDIR%\*.*") DO IF NOT "%%~nxi"=="cnc.log" DEL /F /S /Q "%%i" >nul
GOTO :DONE
:REBUILD
CALL :CLEAN
:BUILD
SET ERRFILE="%OUTDIR%\errors.txt"
"%SystemRoot%\System32\cmd.exe" /C "%KEIL%\Uv4.exe -j0 -b cnc.uvproj -t cnc -o %ERRFILE%
TYPE %ERRFILE% | "%SystemRoot%\System32\find.exe" /I "error:"
DEL /Q %ERRFILE%
:DONE
IF EXIST "%~dp2obj" rmdir /Q /S "%~dp2obj"
SET ERRORLEVEL=0
EXIT /B 0

Comment ( 0 )

Sign in for post a comment

C
1
https://gitee.com/shentqlf/CNC-STM32.git
git@gitee.com:shentqlf/CNC-STM32.git
shentqlf
CNC-STM32
CNC-STM32
master

Search