mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2025-04-20 10:19:32 -04:00
Add a script to easily create and upload debian source package to ppa
This commit is contained in:
parent
5ac98faadc
commit
7754da5afd
1
.gitignore
vendored
1
.gitignore
vendored
@ -20,3 +20,4 @@ deb_dist
|
||||
*~
|
||||
*.usr
|
||||
|
||||
/gpg_key
|
||||
|
27
makeppa.sh
Executable file
27
makeppa.sh
Executable file
@ -0,0 +1,27 @@
|
||||
#! /bin/bash
|
||||
|
||||
# package info
|
||||
ppa="ppa:colin-duquesnoy/experimental"
|
||||
name="qdarkstyle"
|
||||
version="1.16"
|
||||
debian_version=1
|
||||
|
||||
# read pgp key from gpg_key file
|
||||
gpg_key=`cat gpg_key`
|
||||
|
||||
# generate debian source package and .orig.tar.gz
|
||||
python3 setup.py --command-packages=stdeb.command sdist_dsc --suite trusty --debian-version ${debian_version}
|
||||
|
||||
# sign our package and prepare it for ppa upload
|
||||
pushd deb_dist
|
||||
dpkg-source -x ${name}_${version}-${debian_version}.dsc
|
||||
pushd ${name}-${version}
|
||||
debuild -S -sa -k${gpg_key}
|
||||
popd
|
||||
|
||||
# upload to ppa
|
||||
dput ${ppa} *.changes
|
||||
popd
|
||||
|
||||
# cleanup
|
||||
rm -rf *.tar.gz deb_dist/ dist/
|
Loading…
Reference in New Issue
Block a user