summaryrefslogtreecommitdiff
path: root/contrib/QDarkStyleSheet/makeppa.sh
diff options
context:
space:
mode:
authorChristoph Berg <christoph.berg@credativ.de>2019-03-11 14:19:23 +0100
committerChristoph Berg <christoph.berg@credativ.de>2019-03-11 14:19:23 +0100
commit200de07a95209a55d6019ba87f0abc78d302bf4c (patch)
tree3b2922eb5d89b01ad214cae492e871c3bfb5df18 /contrib/QDarkStyleSheet/makeppa.sh
parente0737c56c1e384e05064a0c6e1ac46979371041b (diff)
New upstream version 2.0.1+repackupstream/2.0.1+repack
Diffstat (limited to 'contrib/QDarkStyleSheet/makeppa.sh')
-rwxr-xr-xcontrib/QDarkStyleSheet/makeppa.sh46
1 files changed, 46 insertions, 0 deletions
diff --git a/contrib/QDarkStyleSheet/makeppa.sh b/contrib/QDarkStyleSheet/makeppa.sh
new file mode 100755
index 00000000..f18547cb
--- /dev/null
+++ b/contrib/QDarkStyleSheet/makeppa.sh
@@ -0,0 +1,46 @@
+#! /bin/bash
+# -*- coding: utf-8 -*-
+
+# package info
+ppa="ppa:colin-duquesnoy/stable"
+name="qdarkstyle"
+version="2.0"
+
+# 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
+
+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
+ pushd deb_dist
+ 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}
+ popd
+
+ # upload to ppa
+ dput ${ppa} *.changes
+ rm -rf *.dsc *.changes
+
+ popd
+done
+
+# cleanup
+rm -rf *.tar.gz deb_dist/ dist/