You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

24 lines
513 B

#!/usr/bin/env bash
# Where I keep the sources
deb_version=${1}
if [[ "x${deb_version}" == "x" ]]; then
deb_version=1
fi
BASEDIR=~/sources
SRCDIR="${BASEDIR}/tinge"
# Version of Tinge
VERSION=$(grep version= ${SRCDIR}/setup.py | awk -F '"' '{print $2}' )
# Change to source dir
olddir=$(pwd)
cd ${SRCDIR}
# Build deb
python3 setup.py --command-packages=stdeb.command bdist_deb #--debian-version ${deb_version}
cp deb_dist/* ${olddir}
rm -r ${SRCDIR}/deb_dist/ ${SRCDIR}/tinge-${VERSION}.tar.gz
cd ${olddir}