#!/bin/sh -e

# Copyright 2002 Raphaël Hertzog
# This file is distributed under the terms of the General Public License
# version 2 or (at your option) any later version.

if [ -d "../incoming" ]; then
    root=$PWD/..
elif [ -d "incoming" ]; then
    root=$PWD
else
    root=/org/packages.qa.debian.org/www
fi

cd $root

# Collect all the data from everywhere
bin/update_incoming.sh

# Convert everything to XML files
bin/sources_to_xml.py
bin/excuses_to_xml.py
find base -maxdepth 2 -mindepth 2 -type d | sed -e s,^.*/,, | \
    bin/other_to_xml.py

# Generate HTML pages with XSLT
find base -mindepth 2 -maxdepth 2 -type d | sed -e s,^.*/,, | \
    bin/generate_html.sh

