Subversion Repositories DevTools

Rev

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

Rev 4127 Rev 5678
Line 119... Line 119...
119
 
119
 
120
    YDATE=$( printf "%4.4d-%2.2d-%2.2d" $YEAR $MONTH $YESTERDAY )
120
    YDATE=$( printf "%4.4d-%2.2d-%2.2d" $YEAR $MONTH $YESTERDAY )
121
fi
121
fi
122
 
122
 
123
 
123
 
-
 
124
# Files for the package-file-list
124
LFILE=$OUTDIR/dpkg_archive_list.$DATE.txt
125
LFILE=$OUTDIR/dpkg_archive_list.$DATE.txt
125
LLFILE=$METADIR/dpkg_archive_list.$DATE.txt
126
LLFILE=$METADIR/dpkg_archive_list.$DATE.txt
126
L2FILE=dpkg_archive_list.$DATE.txt
127
L2FILE=dpkg_archive_list.$DATE.txt
127
CFILE=$BASEDIR/dpkg_archive_list.txt
128
CFILE=$BASEDIR/dpkg_archive_list.txt
128
C2FILE=$OUTDIR/dpkg_archive_list.txt
129
C2FILE=$OUTDIR/dpkg_archive_list.txt
129
 
130
 
-
 
131
# Files for the package-list
130
PFILE=$OUTDIR/dpkg_archive_pkg.$DATE.txt
132
PFILE=$OUTDIR/dpkg_archive_pkg.$DATE.txt			# Todays File
131
YFILE=$OUTDIR/dpkg_archive_pkg.$YDATE.txt
133
YFILE=$OUTDIR/dpkg_archive_pkg.$YDATE.txt   		# Yesterdays File
-
 
134
 
-
 
135
P1FILE=$METADIR/dpkg_archive_pkg.$DATE.txt			# Symlink source for file in Archive directory
-
 
136
P2FILE=dpkg_archive_pkg.$DATE.txt   				# Symlink source for file in Meta directory
-
 
137
 
-
 
138
PL1FILE=$BASEDIR/dpkg_archive_pkg.txt   			# Symlink target for file in Archive directory
-
 
139
PL2FILE=$OUTDIR/dpkg_archive_pkg.txt				# Symlink target for file in Meta directory
132
 
140
 
133
if [ "$DO_VERBOSE" ] ; then
141
if [ "$DO_VERBOSE" ] ; then
134
	echo "PFILE: $PFILE"
142
	echo "PFILE: $PFILE"
135
	echo "YFILE: $YFILE"
143
	echo "YFILE: $YFILE"
136
	echo "LFILE: $LFILE"
144
	echo "LFILE: $LFILE"
Line 146... Line 154...
146
    #
154
    #
147
    # Determine packages in archive
155
    # Determine packages in archive
148
    #
156
    #
149
    $GFIND -L $BASEDIR -maxdepth 2 -type d  > $PFILE
157
    $GFIND -L $BASEDIR -maxdepth 2 -type d  > $PFILE
150
 
158
 
-
 
159
	# Create symlinks to the package-list
-
 
160
	#
-
 
161
	rm -f $PL1FILE
-
 
162
	ln -s $P1FILE $PL1FILE
-
 
163
 
-
 
164
	rm -f $PL2FILE
-
 
165
	ln -s $P2FILE $PL2FILE
-
 
166
 
151
    #
167
    #
152
    #   Determine files in the archive
168
    #   Determine files in the archive
153
    #   Keep a link to simplify user access to the list
169
    #   Keep a link to simplify user access to the list
154
    #
170
    #
155
    if [ $DO_FILES ] ; then
171
    if [ $DO_FILES ] ; then
Line 224... Line 240...
224
 
240
 
225
            note='-'
241
            note='-'
226
            ls 1>/dev/null 2>&1 $file/doc/RELEASE_NOTES_* || note='N'
242
            ls 1>/dev/null 2>&1 $file/doc/RELEASE_NOTES_* || note='N'
227
 
243
 
228
            result=$(du -ks $file)
244
            result=$(du -ks $file)
-
 
245
			psize=$(echo $result | { read first rest; echo $first;})
-
 
246
			let "totalsize+=$psize"
-
 
247
 
229
            printf "%c%c%10s %8s %10s %s\n" "$note" "$flag" "$built" "$tag" $result
248
            printf "%c%c%10s %8s %10s %s\n" "$note" "$flag" "$built" "$tag" $result
230
        done >> $f3
249
        done >> $f3
-
 
250
 
-
 
251
		let "sizeGb=$totalsize/1024/1024"
-
 
252
		echo >> $f3 "Total Blocks added: $totalsize, $sizeGb GB"
231
    fi
253
    fi
232
 
254
 
233
    if [ "$DO_REMOVED" ] ; then
255
    if [ "$DO_REMOVED" ] ; then
234
        [ $DO_VERBOSE ] && echo "Finding removed packages in the archive"
256
        [ $DO_VERBOSE ] && echo "Finding removed packages in the archive"
235
 
257