tazwok rev 507
Replace === breaks with horizontal_line function in libtaz commons. Saves over 1KB.
author | Christopher Rogers <slaxemulator@gmail.com> |
---|---|
date | Fri May 06 08:19:55 2011 +0000 (2011-05-06) |
parents | ec8818031497 |
children | 7766fc7a2d10 |
files | tazwok |
line diff
1.1 --- a/tazwok Wed May 04 13:21:41 2011 +0000 1.2 +++ b/tazwok Fri May 06 08:19:55 2011 +0000 1.3 @@ -348,12 +348,12 @@ 1.4 if [ "$auto_install" = yes ]; then 1.5 install_missing 1.6 else 1.7 - echo "================================================================================" 1.8 + horizontal_line 1.9 for pkg in $MISSING_PACKAGE 1.10 do 1.11 echo "Missing : $pkg" 1.12 done 1.13 - echo "================================================================================" 1.14 + horizontal_line 1.15 echo "You can continue, exit or install missing dependencies." 1.16 echo -n "Install, continue or exit (install/y/N) ? "; read answer 1.17 case $answer in 1.18 @@ -2540,7 +2540,7 @@ 1.19 ASKED_CATEGORY=$2 1.20 echo "" 1.21 echo -e "\033[1mPackages in category :\033[0m $ASKED_CATEGORY" 1.22 - echo "================================================================================" 1.23 + horizontal_line 1.24 for pkg in $WOK/* 1.25 do 1.26 [ ! -f $pkg/receipt ] && continue 1.27 @@ -2551,13 +2551,13 @@ 1.28 packages=$(($packages+1)) 1.29 fi 1.30 done 1.31 - echo "================================================================================" 1.32 + horizontal_line 1.33 echo -e "$packages packages in category $ASKED_CATEGORY.\n" 1.34 else 1.35 # By default list all packages and version. 1.36 echo "" 1.37 echo -e "\033[1mList of packages in the wok\033[0m" 1.38 - echo "================================================================================" 1.39 + horizontal_line 1.40 for pkg in $WOK/* 1.41 do 1.42 [ ! -f $pkg/receipt ] && continue 1.43 @@ -2567,7 +2567,7 @@ 1.44 echo -e "\033[42G $CATEGORY" 1.45 packages=$(($packages+1)) 1.46 done 1.47 - echo "================================================================================" 1.48 + horizontal_line 1.49 echo -e "$packages packages available in the wok.\n" 1.50 fi 1.51 ;; 1.52 @@ -2595,7 +2595,7 @@ 1.53 if [ ! "$WANTED" = "" ]; then 1.54 echo "Wanted src : $WANTED" 1.55 fi 1.56 - echo "================================================================================" 1.57 + horizontal_line 1.58 echo "" 1.59 ;; 1.60 check-log) 1.61 @@ -2608,15 +2608,15 @@ 1.62 else 1.63 echo "" 1.64 echo -e "\033[1mPackage process log for :\033[0m $PACKAGE" 1.65 - echo "================================================================================" 1.66 + horizontal_line 1.67 cat $LOG 1.68 - echo "================================================================================" 1.69 + horizontal_line 1.70 echo "" 1.71 if [ -s "$WOK/$PACKAGE/warning.txt" ]; then 1.72 echo -e "\033[1mCook warning(s) for :\033[0m $PACKAGE" 1.73 - echo "================================================================================" 1.74 + horizontal_line 1.75 cat "$WOK/$PACKAGE/warning.txt" 1.76 - echo "================================================================================" 1.77 + horizontal_line 1.78 echo "" 1.79 fi 1.80 fi 1.81 @@ -2632,7 +2632,7 @@ 1.82 fi 1.83 echo "" 1.84 echo -e "\033[1mSearch result for :\033[0m $2" 1.85 - echo "================================================================================" 1.86 + horizontal_line 1.87 list=`ls -1 $WOK | fgrep $2` 1.88 for pkg in $list 1.89 do 1.90 @@ -2642,7 +2642,7 @@ 1.91 echo -e "\033[42G $CATEGORY" 1.92 packages=$(($PACKAGEs+1)) 1.93 done 1.94 - echo "================================================================================" 1.95 + horizontal_line 1.96 echo "$packages packages found for : $2" 1.97 echo "" 1.98 ;; 1.99 @@ -2896,7 +2896,7 @@ 1.100 # Interactive mode, asking and seding. 1.101 if [ "$3" = "--interactive" ]; then 1.102 echo "Entering interactive mode..." 1.103 - echo "================================================================================" 1.104 + horizontal_line 1.105 echo "Package : $PACKAGE" 1.106 # Version. 1.107 echo -n "Version : " ; read anser 1.108 @@ -2931,7 +2931,7 @@ 1.109 echo -n "Creating the description.txt file..." 1.110 echo "" > description.txt && status 1.111 fi 1.112 - echo "================================================================================" 1.113 + horizontal_line 1.114 echo "" 1.115 fi 1.116 ;; 1.117 @@ -3019,7 +3019,7 @@ 1.118 get_tazwok_config 1.119 echo "" 1.120 echo "List of maintainers for: $WOK" 1.121 - echo "================================================================================" 1.122 + horizontal_line 1.123 touch /tmp/slitaz-maintainers 1.124 for pkg in $WOK/* 1.125 do 1.126 @@ -3029,7 +3029,7 @@ 1.127 echo "$MAINTAINER" 1.128 fi 1.129 done 1.130 - echo "================================================================================" 1.131 + horizontal_line 1.132 echo "Maintainers: `cat /tmp/slitaz-maintainers | wc -l`" 1.133 echo "" 1.134 # Remove tmp files 1.135 @@ -3043,7 +3043,7 @@ 1.136 exit 1 1.137 fi 1.138 echo "Maintainer packages" 1.139 - echo "================================================================================" 1.140 + horizontal_line 1.141 for pkg in $WOK/* 1.142 do 1.143 . $pkg/receipt 1.144 @@ -3052,7 +3052,7 @@ 1.145 packages=$(($PACKAGEs+1)) 1.146 fi 1.147 done 1.148 - echo "================================================================================" 1.149 + horizontal_line 1.150 echo "Packages maintained by $2: $PACKAGEs" 1.151 echo "" 1.152 ;; 1.153 @@ -3208,9 +3208,9 @@ 1.154 if [ -s $i ]; then 1.155 echo "" 1.156 echo -e "\033[1m$i\033[0m" 1.157 - echo "================================================================================" 1.158 + horizontal_line 1.159 cat $i 1.160 - echo "================================================================================" 1.161 + horizontal_line 1.162 echo "" 1.163 fi 1.164 done