#!/bin/bash

MIRROR_DIR="/opt/mirror/rx3"

if [[ "$1" == "-f" ]]
then
    DISTRIB_LIST="{9,10}"
    shift
else
    DISTRIB_LIST="9"    
fi


for dir in ${MIRROR_DIR}/distrib/${DISTRIB_LIST}/*/media/default ${MIRROR_DIR}/distrib/${DISTRIB_LIST}/SRPMS/default ${MIRROR_DIR}/distrib/${DISTRIB_LIST}/*/media/testing ${MIRROR_DIR}/distrib/${DISTRIB_LIST}/SRPMS/testing
do
    genhdlist2 -v -v --xml-info ${dir}
done

