# HG changeset patch # User Christopher Rogers # Date 1304669995 0 # Node ID 66a948c9d366fcf7f892cc3969c91bc98cf5cbed # Parent ec8818031497e0d1719ca1ee9db3a4703a66afd4 Replace === breaks with horizontal_line function in libtaz commons. Saves over 1KB. diff -r ec8818031497 -r 66a948c9d366 tazwok --- a/tazwok Wed May 04 13:21:41 2011 +0000 +++ b/tazwok Fri May 06 08:19:55 2011 +0000 @@ -348,12 +348,12 @@ if [ "$auto_install" = yes ]; then install_missing else - echo "================================================================================" + horizontal_line for pkg in $MISSING_PACKAGE do echo "Missing : $pkg" done - echo "================================================================================" + horizontal_line echo "You can continue, exit or install missing dependencies." echo -n "Install, continue or exit (install/y/N) ? "; read answer case $answer in @@ -2540,7 +2540,7 @@ ASKED_CATEGORY=$2 echo "" echo -e "\033[1mPackages in category :\033[0m $ASKED_CATEGORY" - echo "================================================================================" + horizontal_line for pkg in $WOK/* do [ ! -f $pkg/receipt ] && continue @@ -2551,13 +2551,13 @@ packages=$(($packages+1)) fi done - echo "================================================================================" + horizontal_line echo -e "$packages packages in category $ASKED_CATEGORY.\n" else # By default list all packages and version. echo "" echo -e "\033[1mList of packages in the wok\033[0m" - echo "================================================================================" + horizontal_line for pkg in $WOK/* do [ ! -f $pkg/receipt ] && continue @@ -2567,7 +2567,7 @@ echo -e "\033[42G $CATEGORY" packages=$(($packages+1)) done - echo "================================================================================" + horizontal_line echo -e "$packages packages available in the wok.\n" fi ;; @@ -2595,7 +2595,7 @@ if [ ! "$WANTED" = "" ]; then echo "Wanted src : $WANTED" fi - echo "================================================================================" + horizontal_line echo "" ;; check-log) @@ -2608,15 +2608,15 @@ else echo "" echo -e "\033[1mPackage process log for :\033[0m $PACKAGE" - echo "================================================================================" + horizontal_line cat $LOG - echo "================================================================================" + horizontal_line echo "" if [ -s "$WOK/$PACKAGE/warning.txt" ]; then echo -e "\033[1mCook warning(s) for :\033[0m $PACKAGE" - echo "================================================================================" + horizontal_line cat "$WOK/$PACKAGE/warning.txt" - echo "================================================================================" + horizontal_line echo "" fi fi @@ -2632,7 +2632,7 @@ fi echo "" echo -e "\033[1mSearch result for :\033[0m $2" - echo "================================================================================" + horizontal_line list=`ls -1 $WOK | fgrep $2` for pkg in $list do @@ -2642,7 +2642,7 @@ echo -e "\033[42G $CATEGORY" packages=$(($PACKAGEs+1)) done - echo "================================================================================" + horizontal_line echo "$packages packages found for : $2" echo "" ;; @@ -2896,7 +2896,7 @@ # Interactive mode, asking and seding. if [ "$3" = "--interactive" ]; then echo "Entering interactive mode..." - echo "================================================================================" + horizontal_line echo "Package : $PACKAGE" # Version. echo -n "Version : " ; read anser @@ -2931,7 +2931,7 @@ echo -n "Creating the description.txt file..." echo "" > description.txt && status fi - echo "================================================================================" + horizontal_line echo "" fi ;; @@ -3019,7 +3019,7 @@ get_tazwok_config echo "" echo "List of maintainers for: $WOK" - echo "================================================================================" + horizontal_line touch /tmp/slitaz-maintainers for pkg in $WOK/* do @@ -3029,7 +3029,7 @@ echo "$MAINTAINER" fi done - echo "================================================================================" + horizontal_line echo "Maintainers: `cat /tmp/slitaz-maintainers | wc -l`" echo "" # Remove tmp files @@ -3043,7 +3043,7 @@ exit 1 fi echo "Maintainer packages" - echo "================================================================================" + horizontal_line for pkg in $WOK/* do . $pkg/receipt @@ -3052,7 +3052,7 @@ packages=$(($PACKAGEs+1)) fi done - echo "================================================================================" + horizontal_line echo "Packages maintained by $2: $PACKAGEs" echo "" ;; @@ -3208,9 +3208,9 @@ if [ -s $i ]; then echo "" echo -e "\033[1m$i\033[0m" - echo "================================================================================" + horizontal_line cat $i - echo "================================================================================" + horizontal_line echo "" fi done