adcli.sh 575 Bytes
Newer Older
1
2
3
4
#!/bin/bash



Hinrikus Wolf's avatar
Hinrikus Wolf committed
5
ADCLI_VERSION=$(rmadison adcli --architecture=amd64 -s stretch| cut -d\| -f2 | sed s"/ //g" | sed s"/\-.*$//g")
6

Hinrikus Wolf's avatar
Hinrikus Wolf committed
7
8
9
apt-get update
apt-get source --only-source adcli
TARGET_DIR=adcli-$ADCLI_VERSION
10

Hinrikus Wolf's avatar
Hinrikus Wolf committed
11
cd ${TARGET_DIR}/debian
12
13
14
15
16

for patch in ../../patches/adcli/*.patch ; do
    quilt import $patch
done 

Hinrikus Wolf's avatar
Hinrikus Wolf committed
17
18
19
20
21
22
23
24
25
26
27
28
29
cd ..

debchange --preserve --newversion ${ADCLI_VERSION}-fsmpi "Apply the unreleased upstream-patches, fixing RT#100"

apt-get build-dep -y adcli

fakeroot debian/rules binary
debuild -b -uc -us

cd ..
mkdir debug packages
mv *dbgsym* debug
mv *.deb packages
30
31