wireguide/packaging_scripts/reprepro.sh

16 lines
512 B
Bash
Raw Normal View History

#!/usr/bin/env bash
2020-12-18 11:41:21 +01:00
# Where I keep the sources
BASEDIR=~/sources
# Version of wireguide
2020-12-18 11:41:21 +01:00
VERSION=$(awk -F '"' '/self.version =/ {print $2}' ${BASEDIR}/wireguide/src/wireguide)
2020-12-18 11:41:21 +01:00
# Change to source dir
cd ${BASEDIR}/wireguide
# Build deb
dpkg-buildpackage -us -uc
# Add binary and source to repo
2020-12-18 11:41:21 +01:00
reprepro --basedir ${BASEDIR}/debian includedeb unstable ${BASEDIR}/wireguide_${VERSION}_all.deb
reprepro --basedir ${BASEDIR}/debian -S net --priority optional includedsc unstable ${BASEDIR}/wireguide_${VERSION}.dsc