blob: 44b23bed6341673e53869d2cebe6e2b1015f5441 (
plain) (
blame)
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
|
#!/bin/bash
# Script to automate "backporting" of packages for Debian if the
# only difference to the upstream packages is the signature.
# Author: Johannes Ranke <jranke@uni-bremen.de>
export DEBEMAIL=jranke@uni-bremen.de
export DEBFULLNAME="Johannes Ranke"
text="Recompiled on etch for CRAN"
for i in rkward; do
cd $i
rm -rf $i*
rm *.deb
apt-get source -t lenny $i
cd $i-*
version=`dpkg-parsechangelog | grep ^Version | cut -f2 -d " "`~etchcran.2.7.1
dch -b -v $version -D etch-cran $text
sed -i '/^Build-Depends/s/r-base-dev (.*)/r-base-dev (>= 2.7.1-1~etchcran.0)/' debian/control
dch -a "debian/control: adapt build dependencies on r-base-dev to current backport"
fakeroot dpkg-buildpackage -sa
cd ../..
done
|