Skip to content

Commit

Permalink
Pass stderr through calc_install_files when commands fail
Browse files Browse the repository at this point in the history
  • Loading branch information
JasonGross committed Aug 22, 2023
1 parent 2888663 commit 72c4839
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions util/calc_install_files
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
#!/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} CLIGHTGEN="CLIGHTGEN" -Bn veric floyd $1 2>/dev/null | \
awk '/^echo COQC /{print $NF}/^CLIGHTGEN/{print $NF}'
${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

0 comments on commit 72c4839

Please sign in to comment.