tinge/packaging_scripts/deb.sh

24 lines
513 B
Bash
Raw Normal View History

2022-05-24 15:33:28 +02:00
#!/usr/bin/env bash
# Where I keep the sources
2022-05-25 08:31:56 +02:00
deb_version=${1}
if [[ "x${deb_version}" == "x" ]]; then
deb_version=1
fi
2022-05-24 15:33:28 +02:00
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
2022-05-25 08:31:56 +02:00
python3 setup.py --command-packages=stdeb.command bdist_deb #--debian-version ${deb_version}
2022-05-24 15:33:28 +02:00
2022-05-25 08:31:56 +02:00
cp deb_dist/* ${olddir}
2022-05-24 15:33:28 +02:00
rm -r ${SRCDIR}/deb_dist/ ${SRCDIR}/tinge-${VERSION}.tar.gz
cd ${olddir}