external_builds/add_deb_to_repo.sh
2022-05-25 16:15:37 +02:00

13 lines
339 B
Bash
Executable file

#!/bin/bash
deb=${1}
dsc=${2}
if [[ "x${dsc}" == "x" ]]; then
echo "usage: ${0} </path/to/deb> </path/to/dsc>"
exit 1
fi
BASEDIR=~/sources
REPO="${BASEDIR}/repo/debian"
# Add binary and source to repo
reprepro --basedir ${REPO} includedeb unstable ${deb}
reprepro --basedir ${REPO} -S net --priority optional includedsc unstable ${dsc}