Ubuntu Pastebin

Paste from costamagnagianfranco at Wed, 6 Jan 2016 22:50:12 +0000

Download as text
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
rebuild () {
    (
        RELEASE=$(distro-info --devel)
        echo release is: $RELEASE
        set -e
        mkdir $1
        cd $1
        pull-lp-source -d $1 $RELEASE
        dpkg-source -x $1*.dsc $1
        cd $1
        dch -R -D $RELEASE 'Rebuild for new '$2'.'
        dpkg-buildpackage -S -d 
        read -p 'Upload? [Yn] ' yn
        if [ "$yn" == y ] || [ "$yn" == Y ]; then
                dput ubuntu $1*.changes
        fi
    )
}
Download as text