Skip to content

Commit 72c4839

Browse files
committed
Pass stderr through calc_install_files when commands fail
1 parent 2888663 commit 72c4839

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

util/calc_install_files

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
#!/usr/bin/env bash
22
# The $1 argument of this script should be the desired make target
33

4+
set -o pipefail
5+
46
MAKE=${MAKE:-make}
5-
${MAKE} depend >& /dev/null
6-
${MAKE} CLIGHTGEN="CLIGHTGEN" -Bn veric floyd $1 2>/dev/null | \
7-
awk '/^echo COQC /{print $NF}/^CLIGHTGEN/{print $NF}'
7+
${MAKE} depend >& /dev/null || ${MAKE} depend >&2
8+
{ ${MAKE} CLIGHTGEN="CLIGHTGEN" -Bn veric floyd $1 2>/dev/null | \
9+
awk '/^echo COQC /{print $NF}/^CLIGHTGEN/{print $NF}'; } || \
10+
${MAKE} CLIGHTGEN="CLIGHTGEN" -Bn veric floyd $1 >&2

0 commit comments

Comments
 (0)