diff options
Diffstat (limited to 'backport_all_etch.sh')
| -rw-r--r-- | backport_all_etch.sh | 29 | 
1 files changed, 29 insertions, 0 deletions
| diff --git a/backport_all_etch.sh b/backport_all_etch.sh new file mode 100644 index 0000000..e7e5602 --- /dev/null +++ b/backport_all_etch.sh @@ -0,0 +1,29 @@ +#!/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 rmatrix; do +#for i in boot cluster codetools foreign kernsmooth lattice rmatrix mgcv nlme rodbc rpart survival vr littler; 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.9.0 +    dch -b -v $version -D etch-cran $text + +    sed -i '/^Build-Depends/s/r-base-dev (>= 2\..\..)/r-base-dev (>= 2.9.0-1~etchcran.0)/' debian/control +    sed -i '/^Build-Depends-Indep/s/r-base-dev (>= 2\..\..)/r-base-dev (>= 2.9.0-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 | 
