3 . `dirname $0`/../config.sh
5 if test -z "${localdir}"; then
6 echo skipping due to missing local archive
12 NOCPY_TEMPLATE=$topdir/etc/copyright_error
13 NOCPY_BIN_TEMPLATE=$topdir/etc/copyright_error_bin
15 logs="$topdir/files/logs"
16 log="${logs}/changelogs.log"
18 test -d "$logs" || mkdir -p "$logs"
19 test -d "$tmpdir" || mkdir -p "$tmpdir"
23 savelog -c 14 "$log" > /dev/null
29 for part in $parts; do
30 time "${bindir}/extract_files" -v -d "${localdir}/pool/$part/" \
31 -t "${htmldir}/changelogs/pool/$part/" \
32 -c "$configdir" -w "$tmpdir" \
33 --dumpfile "${filesdir}/changelogs.$part.dump" \
34 --cachefile "${filesdir}/changelogs.cache"
37 find "${htmldir}/changelogs/" -name log -cmin +7200 \
38 | while read logfile; do
39 dir=$(dirname "$logfile")
42 rmdir --ignore-fail-on-non-empty $(dirname "$dir")