2021-02-24 11:10:01 +01:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
# Where I keep the sources
|
2021-02-24 13:22:10 +01:00
|
|
|
BASEDIR=~/sources
|
2021-02-24 11:10:01 +01:00
|
|
|
# Version of gmnd
|
2021-02-24 13:22:10 +01:00
|
|
|
VERSION=$(awk '/.*SERVER_SOFTWARE/ {print $4}' ${BASEDIR}/gmnd/gmnd/__init__.py|sed "s/'//" )
|
2021-02-24 11:10:01 +01:00
|
|
|
|
|
|
|
# Change to source dir
|
2021-02-24 13:22:10 +01:00
|
|
|
cd ${BASEDIR}/gmnd
|
2021-02-24 11:10:01 +01:00
|
|
|
|
|
|
|
# Build deb
|
|
|
|
dpkg-buildpackage -us -uc
|
|
|
|
|
|
|
|
# Add binary and source to repo
|
2021-02-24 13:22:10 +01:00
|
|
|
reprepro --basedir ${BASEDIR}/repo/debian includedeb unstable ${BASEDIR}/gmnd_${VERSION}_all.deb
|
|
|
|
reprepro --basedir ${BASEDIR}/repo/debian -S net --priority optional includedsc unstable ${BASEDIR}/gmnd_${VERSION}.dsc
|