1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
|
#!/bin/sh
# update apt-listbugs index.db on merkel.debian.org
# merkel.debian.org has
# apt-listbugs/ -- files for apt-listbugs
# db-h/ symlink to /org/bugs.debian.org/spool/db-h
# public_html/
# apt-listbugs/ symlink to ~/apt-listbugs
# bin/
# update-index.db
INDEXDB=/org/bugs.debian.org/spool/index.db
DBDIR=/org/bugs.debian.org/spool/db-h/
OUTDIR=$HOME/apt-listbugs/
OUT=$OUTDIR/index.db
SEVERITIES="critical grave important serious normal minor wishlist"
if ! test -f $OUT || test `md5sum $INDEXDB | cut -d' ' -f1` != `md5sum $OUT | cut -d' ' -f1`; then
/bin/cp $INDEXDB $OUT
gzip -c $OUT > $OUT.gz
# index db by severity
for sev in $SEVERITIES; do
grep $sev $OUT > $OUT-$sev
gzip -f $OUT-$sev
done
fi
|