| 36 |
cranversion=$oldversion"~"$DIST"cran.0" |
cranversion=$oldversion"~"$DIST"cran.0" |
| 37 |
|
|
| 38 |
# Add new version to changelog |
# Add new version to changelog |
| 39 |
dch -v "${cranversion}" -D $DIST-cran -b "Backport from Debian unstable to Debian $DIST" |
dch -v "${cranversion}" --force-distribution -D $DIST-cran -b "Backport from Debian unstable to Debian $DIST" |
| 40 |
|
|
| 41 |
# Reverts for lenny: |
# Reverts for lenny and etch: |
|
# None at this time |
|
| 42 |
|
|
| 43 |
# Reverts for etch: |
# 1. R 2.9.2 wants debhelper >= 7.2.3, which is not in lenny nor etch |
| 44 |
|
# This also means we have to reinclude debian/r-doc-{info,html}.{postinst,prerm}, |
| 45 |
|
# thanks Dirk for pointing this out. |
| 46 |
|
|
| 47 |
|
sed -i '/^Build-Depends/s/debhelper (>= 7.2.3)/debhelper/' debian/control |
| 48 |
|
dch -a "debian/control: revert Build-Depends: to 'debhelper' since $DIST has a version < 7.2.3" |
| 49 |
|
sed -i 's/dh_prep/dh_clean/g' debian/rules |
| 50 |
|
dch -a "debian/rules: revert dh_prep calls to dh_clean calls since the latter is not present in this release's version of 'debhelper'" |
| 51 |
|
cp ../r-doc-scripts/r-doc-{info,html}.{postinst,prerm} debian |
| 52 |
|
|
| 53 |
|
# Reverts for etch only: |
| 54 |
if [ $DIST = "etch" ] |
if [ $DIST = "etch" ] |
| 55 |
then |
then |
| 56 |
# 1. Starting with Debian packages for R 2.6.1-2, the build dependency |
# 1. Starting with Debian packages for R 2.6.1-2, the build dependency |
| 107 |
sed -i '/^Build-Depends/s/, openjdk-6-jdk \[!arm !hppa !kfreebsd-i386 !kfreebsd-amd64 !hurd-i386\]//' debian/control |
sed -i '/^Build-Depends/s/, openjdk-6-jdk \[!arm !hppa !kfreebsd-i386 !kfreebsd-amd64 !hurd-i386\]//' debian/control |
| 108 |
dch -a "debian/control: Remove build dependence on openjdk" |
dch -a "debian/control: Remove build dependence on openjdk" |
| 109 |
|
|
| 110 |
# 8. R 2.9.0 wants debhelper >= 7.0.0, which is not in etch |
# 8. Debhelper in etch is 5.0.42 |
| 111 |
|
|
|
sed -i '/^Build-Depends/s/debhelper (>= 7.0.0)/debhelper/' debian/control |
|
|
dch -a "debian/control: revert Build-Depends: to 'debhelper' since etch has a version < 7.0.0" |
|
|
sed -i 's/dh_prep/dh_clean/g' debian/rules |
|
|
dch -a "debian/rules: revert dh_prep calls to dh_clean calls since the latter is not present in this release's version of 'debhelper'" |
|
| 112 |
echo 5 > debian/compat |
echo 5 > debian/compat |
| 113 |
dch -a "debian/compat: revert 'debhelper' compatibility level to 5" |
dch -a "debian/compat: revert 'debhelper' compatibility level to 5" |
| 114 |
|
|
| 118 |
dch -a "debian/control: revert Depends: of r-base-core to 'ucf' since the version in etch is < 3.0" |
dch -a "debian/control: revert Depends: of r-base-core to 'ucf' since the version in etch is < 3.0" |
| 119 |
fi |
fi |
| 120 |
|
|
| 121 |
#pbuilder update |
pbuilder update |
| 122 |
pdebuild --debbuildopts '-sa' --buildresult /home/ranke/svn/website/www/ranke/r-cran/$DIST-cran/ -- --distribution $DIST --basetgz /var/cache/pbuilder/$DIST-$ARCH-base.tgz --aptcache /exthd/pbuilder/$DIST-$ARCH/aptcache --buildplace /exthd/pbuilder/$DIST-$ARCH/build |
pdebuild --debbuildopts '-sa' --buildresult /home/ranke/svn/website/www/ranke/r-cran/$DIST-cran/ -- --distribution $DIST --basetgz /var/cache/pbuilder/$DIST-$ARCH-base.tgz --aptcache /exthd/pbuilder/$DIST-$ARCH/aptcache --buildplace /exthd/pbuilder/$DIST-$ARCH/build |
| 123 |
if [ $? -ne 0 ]; then |
if [ $? -ne 0 ]; then |
| 124 |
exit |
exit |