Compare commits
3 Commits
180b9382f5
...
ea5f0f501f
Author | SHA1 | Date |
---|---|---|
Micke Nordin | ea5f0f501f | 2 years ago |
Micke Nordin | caf3be2ac8 | 2 years ago |
Micke Nordin | 9dd5156e32 | 2 years ago |
@ -0,0 +1,23 @@
|
|||||||
|
#!/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}
|
Loading…
Reference in new issue