File: makeppa.sh

package info (click to toggle)
jtdx 2.2.159%2Bimproved-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 75,336 kB
  • sloc: cpp: 38,503; f90: 31,141; python: 27,061; ansic: 11,772; sh: 409; fortran: 353; makefile: 232
file content (46 lines) | stat: -rw-r--r-- 1,004 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
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/