-
Notifications
You must be signed in to change notification settings - Fork 93
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use log files instead of re-running commands in calc_install_files
- Loading branch information
1 parent
85e940d
commit e3da59b
Showing
2 changed files
with
8 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -76,6 +76,7 @@ coqide | |
*~ | ||
*# | ||
.#* | ||
.*.log | ||
*.aux | ||
doc/html/ | ||
/_CoqProject | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,11 @@ | ||
#!/usr/bin/env bash | ||
# The $1 argument of this script should be the desired make target | ||
|
||
set -o pipefail | ||
|
||
MAKE=${MAKE:-make} | ||
${MAKE} depend >& /dev/null || ${MAKE} depend >&2 | ||
{ ${MAKE} CLIGHTGEN="CLIGHTGEN" -Bn veric floyd $1 2>/dev/null | \ | ||
awk '/^echo COQC /{print $NF}/^CLIGHTGEN/{print $NF}'; } || \ | ||
${MAKE} CLIGHTGEN="CLIGHTGEN" -Bn veric floyd $1 >&2 | ||
LOG_DEPEND_FILE=${LOG_DEPEND_FILE:-.calc_install_files.depend.log} | ||
LOG_MAKE_FILE=${LOG_MAKE_FILE:-.calc_install_files.make.log} | ||
${MAKE} depend >& "${LOG_DEPEND_FILE}" || \ | ||
{ printf "Error in %s: %s\n" "$0" "${MAKE} depend"; cat "${LOG_DEPEND_FILE}"; } >&2 | ||
{ ${MAKE} CLIGHTGEN="CLIGHTGEN" -Bn veric floyd $1 2>"${LOG_MAKE_FILE}" || \ | ||
{ printf "Error in %s: %s\n" "$0" "${MAKE} CLIGHTGEN=\"CLIGHTGEN\" -Bn veric floyd"; cat "${LOG_MAKE_FILE}"; } >&2; } | \ | ||
awk '/^echo COQC /{print $NF}/^CLIGHTGEN/{print $NF}' |