mirror of
https://github.com/cosinekitty/astronomy.git
synced 2026-05-24 16:56:39 -04:00
Script to confirm build is clean.
This commit is contained in:
16
generate/verify_clean.bat
Normal file
16
generate/verify_clean.bat
Normal file
@@ -0,0 +1,16 @@
|
||||
@echo off
|
||||
setlocal EnableDelayedExpansion
|
||||
|
||||
set clean=true
|
||||
for /f %%x in ('git status --porcelain') do (
|
||||
set clean=false
|
||||
)
|
||||
|
||||
if !clean! == false (
|
||||
echo.verify_clean: There are local file changes - build is not clean:
|
||||
git status
|
||||
exit /b 1
|
||||
)
|
||||
|
||||
echo.verify_clean: OK
|
||||
exit /b 0
|
||||
Reference in New Issue
Block a user