lilypond-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: making QUIET_BUILD the default


From: Knut Petersen
Subject: Re: making QUIET_BUILD the default
Date: Tue, 29 Dec 2015 11:34:48 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.4.0

Am 29.12.2015 um 09:52 schrieb Werner LEMBERG:
Is there a particular reason to no making `QUIET_BUILD' the default?
For Metafont, it's extremely chatty otherwise...
I prefer a verbose build and a script  to save the chatty output to a logfile:

#!/bin/bash

RED='\033[0;31m'
NOC='\033[0m'

function doit {
  AT=`date +"%s"`
  echo -en exec $RED$1$NOC in `pwd` ...
  $1  &>> $MYROOT/buildlog
  if [ $? -ne 0 ]; then echo -n " failed";exit;else echo -n " succeeded";fi
  BT=`date +"%s"`
  let "CT = $BT - $AT"
  echo " after $CT seconds"
}

MAKEPAR="-j 11 CPU_COUNT=11 LANGS='de'"

echo -e "\nBuilding lilypond ... this will take some time ;-)\n"
DT=`date +"%s"`
# adapt to your needs!
cd /home/knut/sources/lily
export MYROOT=/home/knut/sources/lilybuilt/
rm -r $MYROOT
mkdir $MYROOT

git clean -dfx  &> $MYROOT/buildlog
doit "./autogen.sh --noconfigure"
mkdir build
cd build
doit "../configure --prefix=$MYROOT"
doit "make $MAKEPAR all"
doit "make $MAKEPAR install"
doit "make $MAKEPAR doc"
doit "make $MAKEPAR install-doc"

ET=`date +"%s"`
let "FT = $ET - $DT"
echo "Total lilypond build time: $FT seconds"



On the other hand, I suggest to change

   ifdef QUIET_BUILD
   LILYPOND_BOOK_WARN = --loglevel=NONE
   else
   LILYPOND_BOOK_WARN = --loglevel=WARN
   endif

to

   ifdef QUIET_BUILD
   LILYPOND_BOOK_WARN = --loglevel=ERROR
   else
   LILYPOND_BOOK_WARN = --loglevel=WARN
   endif

in file `make/lilypond-vars.make' to still have fatal errors sent to
stderr.


     Werner

_______________________________________________
lilypond-devel mailing list
address@hidden
https://lists.gnu.org/mailman/listinfo/lilypond-devel





reply via email to

[Prev in Thread] Current Thread [Next in Thread]