wok rev 10097

slitaz-toolchain: more info in log and doc
author Christophe Lincoln <pankso@slitaz.org>
date Fri May 20 19:52:16 2011 +0200 (2011-05-20)
parents 27c627f3bfc3
children 51d0db4b9cc0
files slitaz-toolchain/receipt
line diff
     1.1 --- a/slitaz-toolchain/receipt	Fri May 20 19:15:10 2011 +0200
     1.2 +++ b/slitaz-toolchain/receipt	Fri May 20 19:52:16 2011 +0200
     1.3 @@ -28,9 +28,10 @@
     1.4  	echo "Cook: $PACKAGE $VERSION" > $tmplog
     1.5  	separator >> $tmplog
     1.6  	cat >> $tmplog << EOT
     1.7 -cook toolchain : started $(date "+%Y-%m-%d %H:%M")
     1.8 -build system   : $BUILD_SYSTEM
     1.9 -host  system   : $HOST_SYSTEM
    1.10 +Cook toolchain : started $(date "+%Y-%m-%d %H:%M")
    1.11 +Architecture   : $ARCH
    1.12 +Build system   : $BUILD_SYSTEM
    1.13 +Host  system   : $HOST_SYSTEM
    1.14  EOT
    1.15  	
    1.16  	# 1. binutils (first pass)
    1.17 @@ -66,6 +67,12 @@
    1.18  	done
    1.19  	cook libgfortran
    1.20  	cook gfortran
    1.21 +	separator >> $tmplog
    1.22 +
    1.23 +	# GCC info in toolchain.log
    1.24 +	echo -e "\nGCC compiler information" >> $tmplog
    1.25 +	separator >> $tmplog
    1.26 +	gcc -v >> $tmplog
    1.27  
    1.28  	# All packages cooked got ther own log so we dont keep them.
    1.29  	separator >> $tmplog && echo "" >> $tmplog
    1.30 @@ -77,8 +84,8 @@
    1.31  {
    1.32  	binutils=$(grep ^VERSION $WOK/binutils/receipt | cut -d '"' -f 2)
    1.33  	linux=$(grep ^VERSION $WOK/linux/receipt | cut -d '"' -f 2)
    1.34 -	gcc=$(grep ^VERSION $WOK/linux/receipt | cut -d '"' -f 2)
    1.35 -	glibc=$(grep ^VERSION $WOK/linux/receipt | cut -d '"' -f 2)
    1.36 +	gcc=$(grep ^VERSION $WOK/gcc/receipt | cut -d '"' -f 2)
    1.37 +	glibc=$(grep ^VERSION $WOK/glibc/receipt | cut -d '"' -f 2)
    1.38  	
    1.39  	mkdir -p $fs/usr/share/doc/slitaz
    1.40  	cat > $fs/usr/share/doc/slitaz/toolchain.txt << EOT
    1.41 @@ -86,6 +93,7 @@
    1.42  ================================================================================
    1.43  
    1.44  Build date   : $(date "+%Y-%m-%d")
    1.45 +Architecture : $ARCH
    1.46  Build system : $BUILD_SYSTEM
    1.47  Host  system : $HOST_SYSTEM
    1.48  
    1.49 @@ -96,7 +104,12 @@
    1.50      * GCC $gcc
    1.51      * Glibc $glibc
    1.52  
    1.53 -Documentation: http://doc.slitaz.org/en:cookbook:toolchain
    1.54 +GCC compiler info
    1.55 +--------------------------------------------------------------------------------
    1.56 +$(gcc -v)
    1.57 +--------------------------------------------------------------------------------
    1.58 +
    1.59 +Toolchain documentation: http://doc.slitaz.org/en:cookbook:toolchain
    1.60  
    1.61  ================================================================================
    1.62