/[gentoo-x86]/autocompile.sh
Gentoo

Diff of /autocompile.sh

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.10 Revision 1.11
6C_END=$'\e[A\e[68G' 6C_END=$'\e[A\e[68G'
7C_OK=$'\e[32m' 7C_OK=$'\e[32m'
8C_NO=$'\e[31m' 8C_NO=$'\e[31m'
9PORTDIR=/usr/portage 9PORTDIR=/usr/portage
10LOGDIR=$ROOT/tmp/portage-log 10LOGDIR=$ROOT/tmp/portage-log
11if [ -z "$CHECK" ]
12then
13 CHECK="yes"
14fi
15if [ -z "$STEPS" ]
16then
11STEPS="check fetch clean compile install qmerge clean" 17 STEPS="check fetch clean compile install qmerge clean"
18fi
12#STEPS="check unmerge" 19#STEPS="check unmerge"
13 20
14do_step() { 21do_step() {
15 22
16 local tmpp 23 local tmpp
73 80
74 if [ -f "$myd" ] 81 if [ -f "$myd" ]
75 then 82 then
76 83
77 # Check if installed 84 # Check if installed
78 if [ -d ${ROOT}/var/db/pkg/$myc/$myp ] 85 if [ "$CHECK" = "yes" ]
79 then 86 then
87 if [ -d ${ROOT}/var/db/pkg/$myc/$myp ]
88 then
80 continue 89 continue
90 fi
81 fi 91 fi
82 92
83 echo "$C_NORMAL$myp ($myc)" 93 echo "$C_NORMAL$myp ($myc)"
84 94
85 myl="$LOGDIR/$myc/$myp/" 95 myl="$LOGDIR/$myc/$myp/"
100 fi 110 fi
101 111
102 else 112 else
103 echo "!!! $myd does not exists !" 113 echo "!!! $myd does not exists !"
104 fi 114 fi
105 env-update 115 env-update &>/dev/null
106 env-update
107done 116done

Legend:
Removed from v.1.10  
changed lines
  Added in v.1.11

  ViewVC Help
Powered by ViewVC 1.1.20