tazwok rev 237

Display tazwok warning.txt when using check-log. Tazwok warnings contains suggestion about some possible improvement to the receipt to light it or make it better compatible with tazwok-experimental.
author Antoine Bodin <gokhlayeh@slitaz.org>
date Thu Feb 10 17:51:27 2011 +0100 (2011-02-10)
parents ff1479df1f17
children 107bcb7539a2
files tazwok
line diff
     1.1 --- a/tazwok	Thu Feb 10 17:10:22 2011 +0100
     1.2 +++ b/tazwok	Thu Feb 10 17:51:27 2011 +0100
     1.3 @@ -22,7 +22,7 @@
     1.4  ########################
     1.5  # Print the usage (English).
     1.6  
     1.7 -usage ()
     1.8 +usage()
     1.9  {
    1.10  	echo -e "\nSliTaz sources compiler and packages generator - Version: $VERSION\n
    1.11  \033[1mUsage: \033[0m `basename $0` [command] [package|list|category|dir|id] [--option]
    1.12 @@ -2258,6 +2258,13 @@
    1.13  			cat $LOG
    1.14  			echo "================================================================================"
    1.15  			echo ""
    1.16 +			if [ -s "$WOK/$PACKAGE/warning.txt" ]; then
    1.17 +				echo -e "\033[1mCook warning(s) for :\033[0m $PACKAGE"
    1.18 +				echo "================================================================================"
    1.19 +				cat "$WOK/$PACKAGE/warning.txt"
    1.20 +				echo "================================================================================"
    1.21 +				echo ""
    1.22 +			fi
    1.23  		fi
    1.24  	;;
    1.25  	search)