| 23 |
fi |
fi |
| 24 |
|
|
| 25 |
apt-get update |
apt-get update |
| 26 |
apt-get source -t unstable r-base |
apt-get source r-base |
| 27 |
|
|
| 28 |
# Change any ~ in the name of the build directory for a - to avoid a |
# Change any ~ in the name of the build directory for a - to avoid a |
| 29 |
# bug in texi2dvi. Thanks Vincent |
# bug in texi2dvi. Thanks Vincent |
| 56 |
dch -a "debian/control: revert Build-Depends: to 'debhelper' since $DIST has a version < 7.2.3" |
dch -a "debian/control: revert Build-Depends: to 'debhelper' since $DIST has a version < 7.2.3" |
| 57 |
sed -i 's/dh_prep/dh_clean/g' debian/rules |
sed -i 's/dh_prep/dh_clean/g' debian/rules |
| 58 |
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'" |
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'" |
|
cp ../r-doc-scripts/r-doc-{info,html}.{postinst,prerm} debian |
|
| 59 |
|
|
| 60 |
# 2. Starting with Debian packages for R 2.9.2-2 there is an install |
# 2. Starting with Debian packages for R 2.9.2-2 there is an install |
| 61 |
# dependency on 'dpkg (>= 1.15.4) | install-info'. Neither package is in |
# dependency on 'dpkg (>= 1.15.4) | install-info'. Neither package is in |
| 65 |
sed -i '/^Depends/s/dpkg (>= 1.15.4) | install-info/dpkg | install-info/' debian/control |
sed -i '/^Depends/s/dpkg (>= 1.15.4) | install-info/dpkg | install-info/' debian/control |
| 66 |
dch -a "debian/control: revert Depends: to 'dpkg | install-info' for r-doc-info since ${DISTRIB_DESCRIPTION} has a version of dpkg < 1.15.4 and no separate package install-info" |
dch -a "debian/control: revert Depends: to 'dpkg | install-info' for r-doc-info since ${DISTRIB_DESCRIPTION} has a version of dpkg < 1.15.4 and no separate package install-info" |
| 67 |
|
|
| 68 |
|
# 3. liblzma is not available in Debian distributions before squeeze |
| 69 |
|
|
| 70 |
|
sed -i '/^Build-Depends/s/, liblzma-dev//' debian/control |
| 71 |
|
dch -a "debian/control: Remove dependency to liblzma-dev as it is not available in ${DISTRIB_DESCRIPTION}. As a consequence, the version provided in the R sources is used" |
| 72 |
|
|
| 73 |
# Reverts for etch only: |
# Reverts for etch only: |
| 74 |
if [ $DIST = "etch" ] |
if [ $DIST = "etch" ] |
| 75 |
then |
then |
| 138 |
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" |
| 139 |
fi |
fi |
| 140 |
|
|
| 141 |
pbuilder update |
#pbuilder update |
| 142 |
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 /var/cache/pbuilder/$DIST-$ARCH/aptcache --buildplace /var/cache/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 /var/cache/pbuilder/$DIST-$ARCH/aptcache --buildplace /var/cache/pbuilder/$DIST-$ARCH/build |
| 143 |
if [ $? -ne 0 ]; then |
if [ $? -ne 0 ]; then |
| 144 |
exit |
exit |