2020-12-18 10:42:18 +01:00
|
|
|
#!/usr/bin/env bash
|
2020-12-18 11:41:21 +01:00
|
|
|
# Where I keep the sources
|
|
|
|
BASEDIR=~/sources
|
2020-12-18 10:42:18 +01:00
|
|
|
# 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 10:42:18 +01:00
|
|
|
|
2020-12-18 11:41:21 +01:00
|
|
|
# Change to source dir
|
|
|
|
cd ${BASEDIR}/wireguide
|
2020-12-18 10:42:18 +01:00
|
|
|
|
|
|
|
# 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
|