Subversion Repositories DevTools

Rev

Rev 5813 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 5813 Rev 6022
Line 128... Line 128...
128
L2FILE=dpkg_archive_list.$DATE.txt
128
L2FILE=dpkg_archive_list.$DATE.txt
129
CFILE=$BASEDIR/dpkg_archive_list.txt
129
CFILE=$BASEDIR/dpkg_archive_list.txt
130
C2FILE=$OUTDIR/dpkg_archive_list.txt
130
C2FILE=$OUTDIR/dpkg_archive_list.txt
131
 
131
 
132
# Files for the package-list
132
# Files for the package-list
133
PFILE=$OUTDIR/dpkg_archive_pkg.$DATE.txt			# Todays File
133
PFILE=$OUTDIR/dpkg_archive_pkg.$DATE.txt            # Todays File
134
YFILE=$OUTDIR/dpkg_archive_pkg.$YDATE.txt   		# Yesterdays File
134
YFILE=$OUTDIR/dpkg_archive_pkg.$YDATE.txt           # Yesterdays File
135
 
135
 
136
P1FILE=$METADIR/dpkg_archive_pkg.$DATE.txt			# Symlink source for file in Archive directory
136
P1FILE=$METADIR/dpkg_archive_pkg.$DATE.txt          # Symlink source for file in Archive directory
137
P2FILE=dpkg_archive_pkg.$DATE.txt   				# Symlink source for file in Meta directory
137
P2FILE=dpkg_archive_pkg.$DATE.txt                   # Symlink source for file in Meta directory
138
 
138
 
139
PL1FILE=$BASEDIR/dpkg_archive_pkg.txt   			# Symlink target for file in Archive directory
139
PL1FILE=$BASEDIR/dpkg_archive_pkg.txt               # Symlink target for file in Archive directory
140
PL2FILE=$OUTDIR/dpkg_archive_pkg.txt				# Symlink target for file in Meta directory
140
PL2FILE=$OUTDIR/dpkg_archive_pkg.txt                # Symlink target for file in Meta directory
141
 
141
 
142
if [ "$DO_VERBOSE" ] ; then
142
if [ "$DO_VERBOSE" ] ; then
143
	echo "PFILE: $PFILE"
143
    echo "PFILE: $PFILE"
144
	echo "YFILE: $YFILE"
144
    echo "YFILE: $YFILE"
145
	echo "LFILE: $LFILE"
145
    echo "LFILE: $LFILE"
146
fi
146
fi
147
mkdir -p $OUTDIR
147
mkdir -p $OUTDIR
148
 
148
 
149
#
149
#
150
#   Find files
150
#   Find files
Line 155... Line 155...
155
    #
155
    #
156
    # Determine packages in archive
156
    # Determine packages in archive
157
    #
157
    #
158
    $GFIND -L $BASEDIR -maxdepth 2 -type d  > $PFILE
158
    $GFIND -L $BASEDIR -maxdepth 2 -type d  > $PFILE
159
 
159
 
160
	# Create symlinks to the package-list
160
    # Create symlinks to the package-list
161
	#
161
    #
162
	rm -f $PL1FILE
162
    rm -f $PL1FILE
163
	ln -s $P1FILE $PL1FILE
163
    ln -s $P1FILE $PL1FILE
164
 
164
 
165
	rm -f $PL2FILE
165
    rm -f $PL2FILE
166
	ln -s $P2FILE $PL2FILE
166
    ln -s $P2FILE $PL2FILE
167
 
167
 
168
    #
168
    #
169
    #   Determine files in the archive
169
    #   Determine files in the archive
170
    #   Keep a link to simplify user access to the list
170
    #   Keep a link to simplify user access to the list
171
    #
171
    #
Line 177... Line 177...
177
        #   Create a link to the current list of all files
177
        #   Create a link to the current list of all files
178
        #
178
        #
179
        rm -f $CFILE
179
        rm -f $CFILE
180
        ln -s $LLFILE $CFILE
180
        ln -s $LLFILE $CFILE
181
 
181
 
182
	    rm -f $C2FILE
182
        rm -f $C2FILE
183
        ln -s $L2FILE $C2FILE
183
        ln -s $L2FILE $C2FILE
184
    fi
184
    fi
185
    
185
    
186
fi
186
fi
187
 
187
 
Line 206... Line 206...
206
    if [ "$DO_NEW" ] ; then
206
    if [ "$DO_NEW" ] ; then
207
        [ $DO_VERBOSE ] && echo "Finding new packages in the archive"
207
        [ $DO_VERBOSE ] && echo "Finding new packages in the archive"
208
 
208
 
209
        echo >> $f3 ""
209
        echo >> $f3 ""
210
        echo >> $f3 "New packages added to dpkg_archive"
210
        echo >> $f3 "New packages added to dpkg_archive"
-
 
211
        totalsize=0
211
        sort $YFILE > $f1
212
        sort $YFILE > $f1
212
        sort $PFILE > $f2
213
        sort $PFILE > $f2
213
        newp=$( comm -13 $f1 $f2)
214
        newp=$( comm -13 $f1 $f2)
214
        for file in $newp ; do
215
        for file in $newp ; do
215
 
216
 
Line 241... Line 242...
241
 
242
 
242
            note='-'
243
            note='-'
243
            ls 1>/dev/null 2>&1 $file/doc/RELEASE_NOTES_* || note='N'
244
            ls 1>/dev/null 2>&1 $file/doc/RELEASE_NOTES_* || note='N'
244
 
245
 
245
            result=$(du -ks $file)
246
            result=$(du -ks $file)
246
			psize=$(echo $result | { read first rest; echo $first;})
247
            psize=$(echo $result | { read first rest; echo $first;})
247
			let "totalsize+=$psize"
248
            let "totalsize+=$psize"
248
 
249
 
249
            printf "%c%c%10s %8s %10s %s\n" "$note" "$flag" "$built" "$tag" $result
250
            printf "%c%c%10s %8s %10s %s\n" "$note" "$flag" "$built" "$tag" $result
250
        done >> $f3
251
        done >> $f3
251
 
252
 
252
		let "sizeGb=$totalsize/1024/1024"
253
        let "sizeGb=$totalsize/1024/1024"
253
		echo >> $f3 "Total Blocks added: $totalsize, $sizeGb GB"
254
        echo >> $f3 "Total Blocks added: $totalsize, $sizeGb GB"
254
    fi
255
    fi
255
 
256
 
256
    if [ "$DO_REMOVED" ] ; then
257
    if [ "$DO_REMOVED" ] ; then
257
        [ $DO_VERBOSE ] && echo "Finding removed packages in the archive"
258
        [ $DO_VERBOSE ] && echo "Finding removed packages in the archive"
258
 
259