From 5de2eb1aa01b0129b046cf06338453a233c6597b Mon Sep 17 00:00:00 2001 From: Kenneth J Davis Date: Tue, 31 Dec 2024 18:08:11 -0500 Subject: [PATCH] avoid some useless messages when building release --- MAKEPKGS.BAT | 3 +++ RELEASE.BAT | 12 ++++++------ 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/MAKEPKGS.BAT b/MAKEPKGS.BAT index 5ca72f20..3bcd1001 100644 --- a/MAKEPKGS.BAT +++ b/MAKEPKGS.BAT @@ -35,6 +35,9 @@ ECHO zipping source %ZIPIT% ke%1s.zip SOURCE\* ECHO gathering source and creating APPINFO and expected packaging dir structure REM FreeDOS package format, has APPINFO, BIN, DOC\KERNEL, SOURCE\KERNEL\ +IF EXIST PACKAGE ECHO PACKAGE directory exists, break now to avoid deleting it! +IF EXIST PACKAGE pause +IF EXIST PACKAGE RMDIR /S PACKAGE MKDIR PACKAGE MKDIR PACKAGE\SOURCE XCOPY /S /I /Q SOURCE\ke%1 PACKAGE\SOURCE\KERNEL diff --git a/RELEASE.BAT b/RELEASE.BAT index 33c661bb..45034c8d 100644 --- a/RELEASE.BAT +++ b/RELEASE.BAT @@ -12,12 +12,12 @@ git clone -v --recurse-submodules --local . ..\SOURCE\ke%1\ REM delete files to exclude RD /S /Q ..\SOURCE\ke%1\.git > NUL RD /S /Q ..\SOURCE\ke%1\.github > NUL -DEL /Q ..\SOURCE\ke%1\.git* > NUL -DEL /Q ..\SOURCE\ke%1\*.yml > NUL -DEL /Q ..\SOURCE\ke%1\ci*.sh > NUL -DEL /Q ..\SOURCE\ke%1\docs\*.yml > NUL -DEL /Q ..\SOURCE\ke%1\docs\CNAME > NUL -pause +IF EXIST ..\SOURCE\ke%1\.git* DEL /Q ..\SOURCE\ke%1\.git* > NUL +IF EXIST ..\SOURCE\ke%1\*.yml DEL /Q ..\SOURCE\ke%1\*.yml > NUL +IF EXIST ..\SOURCE\ke%1\ci*.sh DEL /Q ..\SOURCE\ke%1\ci*.sh > NUL +IF EXIST ..\SOURCE\ke%1\docs\*.yml DEL /Q ..\SOURCE\ke%1\docs\*.yml > NUL +IF EXIST ..\SOURCE\ke%1\docs\CNAME DEL /Q ..\SOURCE\ke%1\docs\CNAME > NUL +::pause ECHO %CD% CALL MAKEPKGS.BAT %1 RELEASE