Skip to content
This repository has been archived by the owner on Jan 30, 2023. It is now read-only.

Commit

Permalink
Always use V=1 for logfiles
Browse files Browse the repository at this point in the history
  • Loading branch information
jdemeyer committed Feb 23, 2017
1 parent 03f3642 commit dcc3ba5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
9 changes: 6 additions & 3 deletions build/bin/sage-logger
Expand Up @@ -60,14 +60,17 @@ else
SED=cat
fi

# Store the current value of V, but do all logging of child processes
# with V=1 to ensure that no information is lost.
currentV=$V
export V=1

mkdir -p "$logdir"

if [[ "$V" = 0 && $use_prefix = true ]]; then
if [[ "$currentV" = 0 && $use_prefix = true ]]; then
# Silent build.
# Similar to https://www.gnu.org/software/automake/manual/html_node/Automake-Silent-Rules.html#Automake-Silent-Rules
echo "[$logname] installing. Log file: $logfile"
# Use verbose mode for output to logfiles.
export V=1
( exec>> $logfile 2>&1 ; eval "$cmd" )
status=$?
if [[ $status != 0 ]]; then
Expand Down
2 changes: 1 addition & 1 deletion build/pkgs/libfplll/spkg-install
Expand Up @@ -54,7 +54,7 @@ if [ $? -ne 0 ]; then
fi

echo "Now building fplll..."
$MAKE V=1
$MAKE
if [ $? -ne 0 ]; then
echo "Error building fplll"
exit 1
Expand Down

0 comments on commit dcc3ba5

Please sign in to comment.