summaryrefslogtreecommitdiff
path: root/backport_all.sh
blob: 7ec27bbf8ad304f7b3febee449ff980e5481fc08 (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
#!/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>

#DEBEMAIL=jranke@uni-bremen.de
#DEBFULLNAME="Johannes Ranke"
text="Recompiled on etch for CRAN"

for i in littler rkward; do
#for i in boot cluster codetools foreign kernsmooth lattice mgcv nlme rpart survival vr littler rkward; do
	cd $i
	rm -rf $i*
	rm *.deb
    apt-get source -t unstable $i
    cd $i-*
    version=`dpkg-parsechangelog | grep ^Version | cut -f2 -d " "`~etchcran.2.6.2
    dch -b -v $version -D etch-cran $text
    fakeroot dpkg-buildpackage -sa
    cd ../..
done

Contact - Imprint