#!/usr/bin/env bash
set -x

cd $(dirname $0)

reprepro --confdir ./debian-conf --outdir ./home-packages includedeb 10 ./inbox/*.deb
reprepro --confdir ./debian-conf --outdir ./home-packages includedeb 11 ./inbox/*.deb
reprepro --confdir ./debian-conf --outdir ./home-packages includedeb 12 ./inbox/*.deb

mv -v ./inbox/*.rpm ./home-packages/rpm/

cd ./home-packages
createrepo_c --database --outputdir . rpm/
