Skip to content
This repository was archived by the owner on Nov 9, 2017. It is now read-only.

Commit 317efc0

Browse files
author
Philip Oakley
committed
engine.pl: delete the captured stderr file if empty
Keep the build clean of extraneous files if it is indeed clean. Otherwise leave the msvc-build-makedryerrors.txt file both as a flag for any CI system or for manual debugging. Note that the file will contain the new values of the GIT_VERSION and GITGUI_VERSION if they were generated by the make file. They are omitted if the release is tagged and indentically defined in their respective GIT_VERSION_GEN file DEF_VER variables. Signed-off-by: Philip Oakley <[email protected]>
1 parent 084b970 commit 317efc0

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

contrib/buildsystems/engine.pl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,9 @@ sub showUsage
7575
# Pipe a make --dry-run into a variable, if not already loaded from file
7676
# Capture the make dry stderr to file for review (will be empty for a release build).
7777
@makedry = `cd $git_dir && make -n MSVC=1 NO_PERL=1 V=1 2>msvc-build-makedryerrors.txt` if !@makedry;
78+
# test for an empty msvc-build-makedryerrors.txt file and remove it
79+
#system("if test ! -s msvc-build-makedryerrors.txt; then rm msvc-build-makedryerrors.txt fi;");
80+
unlink if -f and !-s "msvc-build-makedryerrors.txt";
7881

7982
# Parse the make output into usable info
8083
parseMakeOutput();

0 commit comments

Comments
 (0)