#!/bin/sh
cd /home/ftp/pub/debian/local
APRIVDIR=/home/andreas/debian-maintain/local/andreas-privat/build-area/
FONTDIR=/home/andreas/debian-maintain/repack/font-franklin-gothic-book/build-area
PIXUM=/home/andreas/debian-maintain/local/pixum
ZOOM=/home/andreas/debian-maintain/local/zoom
FGALLERY="/home/andreas/debian-maintain/salsa/debian-phototools-team/fgallery_geo"

DEBDIRS="$APRIVDIR \
         $FONTDIR \
         $PIXUM \
         $ZOOM \
         $FGALLERY"

for ddir in $DEBDIRS ; do
  for dsc in ${ddir}/*.dsc ; do
    reprepro --ignore=wrongdistribution includedsc local $dsc
  done
  for changes in ${ddir}/*amd64.changes ; do
    reprepro --ignore=wrongdistribution include local $changes
  done
done

rsync -a --delete -P conf db dists pool buran:public_html/debian
