mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2024-11-29 15:48:38 -05:00
Update ppa script to build package for trusty, utopic and vivid
This commit is contained in:
parent
7754da5afd
commit
1b2dc633db
24
makeppa.sh
24
makeppa.sh
@ -4,24 +4,42 @@
|
|||||||
ppa="ppa:colin-duquesnoy/experimental"
|
ppa="ppa:colin-duquesnoy/experimental"
|
||||||
name="qdarkstyle"
|
name="qdarkstyle"
|
||||||
version="1.16"
|
version="1.16"
|
||||||
debian_version=1
|
|
||||||
|
|
||||||
# read pgp key from gpg_key file
|
# read pgp key from gpg_key file
|
||||||
gpg_key=`cat gpg_key`
|
gpg_key=`cat gpg_key`
|
||||||
|
|
||||||
# generate debian source package and .orig.tar.gz
|
# generate debian source package and .orig.tar.gz
|
||||||
python3 setup.py --command-packages=stdeb.command sdist_dsc --suite trusty --debian-version ${debian_version}
|
python3 setup.py --command-packages=stdeb.command sdist_dsc
|
||||||
|
|
||||||
|
date=`date -R`
|
||||||
|
|
||||||
|
# clean pyc files
|
||||||
|
find . -name "*.pyc" -exec rm -rf {} \;
|
||||||
|
|
||||||
|
|
||||||
|
for suite in 'trusty' 'utopic' 'vivid'
|
||||||
|
do
|
||||||
# sign our package and prepare it for ppa upload
|
# sign our package and prepare it for ppa upload
|
||||||
pushd deb_dist
|
pushd deb_dist
|
||||||
dpkg-source -x ${name}_${version}-${debian_version}.dsc
|
|
||||||
pushd ${name}-${version}
|
pushd ${name}-${version}
|
||||||
|
|
||||||
|
# update changelog to include ubuntu release
|
||||||
|
changelog="${name} (${version}-1ppa1~${suite}1) ${suite}; urgency=low
|
||||||
|
* Initial release
|
||||||
|
-- Colin Duquesnoy <colin.duquesnoy@gmail.com> ${date}
|
||||||
|
"
|
||||||
|
echo "$changelog" > debian/changelog
|
||||||
|
cat debian/changelog
|
||||||
|
|
||||||
debuild -S -sa -k${gpg_key}
|
debuild -S -sa -k${gpg_key}
|
||||||
popd
|
popd
|
||||||
|
|
||||||
# upload to ppa
|
# upload to ppa
|
||||||
dput ${ppa} *.changes
|
dput ${ppa} *.changes
|
||||||
|
rm -rf *.dsc *.changes
|
||||||
|
|
||||||
popd
|
popd
|
||||||
|
done
|
||||||
|
|
||||||
# cleanup
|
# cleanup
|
||||||
rm -rf *.tar.gz deb_dist/ dist/
|
rm -rf *.tar.gz deb_dist/ dist/
|
||||||
|
Loading…
Reference in New Issue
Block a user