summaryrefslogtreecommitdiff
path: root/backport
diff options
context:
space:
mode:
Diffstat (limited to 'backport')
-rwxr-xr-xbackport16
1 files changed, 8 insertions, 8 deletions
diff --git a/backport b/backport
index 3a834ae..5415078 100755
--- a/backport
+++ b/backport
@@ -2,7 +2,7 @@
# Script to automate backporting for CRAN
# Creates a source package and binary packages for the following architecture
-ARCH=i386
+ARCH=amd64
export ARCH
# Iteration of the backport, for the case several backports of the same
@@ -22,7 +22,7 @@ rcrandir=/home/jranke/git/uni-bremen/website/www/ranke/r-cran
usage()
{
-echo "Usage: ./backport [options] sourcepackage bullseye|bookworm|trixie"
+echo "Usage: ./backport [options] sourcepackage bookworm|trixie"
echo "Options:"
echo " -k, --keep Keep copied source package and directory used for package building"
echo " -s, --skip Skip apt-get update/upgrade and pbuilder update"
@@ -58,7 +58,7 @@ pkg=$1
DIST=$2
# Validate distribution argument
-if [ $DIST != "bookworm" ] && [ $DIST != "bullseye" ] && [$DIST != "trixie"]; then usage; exit 1; fi
+if [ $DIST != "bookworm" ] && [ $DIST != "trixie" ]; then usage; exit 1; fi
export DIST
# Remove previously extracted sources
@@ -81,7 +81,7 @@ mkdir -p $DIST
cp -r $pkg\_* $DIST
cp -r $pkg-* $DIST
-# Go to package building directory
+# Change to build directory
cd $DIST/$pkg-*
# Determine the version of the upstream Debian package
@@ -95,8 +95,8 @@ cranversion=$upstreamversion"~"$DIST"cran.$iteration"
# would make an update of the archive index inside the loop in backport_others
# necessary
-new_dsc=$rcrandir/$DIST-cran40/${pkg}_${cranversion}.dsc
-logfile=$rcrandir/$DIST-cran40/${pkg}_${cranversion}_${ARCH}.build
+new_dsc=$rcrandir/$DIST-cran46/${pkg}_${cranversion}.dsc
+logfile=$rcrandir/$DIST-cran46/${pkg}_${cranversion}_${ARCH}.build
if [ -e $new_dsc ]; then
@@ -113,7 +113,7 @@ else
# Check for a script doing modifications required for backporting
script=../\_reverts\_$pkg\.sh
- if [ -f $script ]; then source $script; fi
+ if [ -f $script ]; then source $script; echo backport.sh Applied $script; fi
if [ "$skip" = false ]
then
@@ -124,7 +124,7 @@ else
--aptcache /var/cache/pbuilder/$DIST-$ARCH/aptcache
fi
sudo -E pdebuild --debbuildopts '-sa' \
- --buildresult $rcrandir/$DIST-cran40/ \
+ --buildresult $rcrandir/$DIST-cran46/ \
--logfile $logfile \
-- --override-config \
--distribution $DIST --basetgz /var/cache/pbuilder/$DIST-$ARCH-base.tgz \

Contact - Imprint