summaryrefslogtreecommitdiff
path: root/old/backport_rkward.sh
diff options
context:
space:
mode:
authorranke <ranke@f247ebf9-aa24-0410-a698-f940e971ad2b>2009-07-07 14:14:33 +0000
committerranke <ranke@f247ebf9-aa24-0410-a698-f940e971ad2b>2009-07-07 14:14:33 +0000
commitfe46da2abd3474218d80aae82a170f9613fee519 (patch)
tree6f599ef9f8cbce0f9916c6d27a8478f7ab692e47 /old/backport_rkward.sh
parent21f32aff61eca7e79b76f9cbccae28efa66d369e (diff)
Move old stuff out of the way as it is potentially confusing
git-svn-id: svn+ssh://stiller/home/schatz/reps/r-backports@57 f247ebf9-aa24-0410-a698-f940e971ad2b
Diffstat (limited to 'old/backport_rkward.sh')
-rw-r--r--old/backport_rkward.sh33
1 files changed, 33 insertions, 0 deletions
diff --git a/old/backport_rkward.sh b/old/backport_rkward.sh
new file mode 100644
index 0000000..8aa144c
--- /dev/null
+++ b/old/backport_rkward.sh
@@ -0,0 +1,33 @@
+#!/bin/bash
+
+# Script to automate "backporting" of packages for Debian if the
+# only difference to the upstream packages is the signature.
+
+# For backporting rkward from the version 0.4.9a currently in testing, I
+# manually changed /etc/apt/sources list to this source package archive
+
+# 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 rkward; do
+ cd $i
+ rm -rf $i*
+ rm *.deb
+ apt-get source $i
+ cd $i-*
+ version=`dpkg-parsechangelog | grep ^Version | cut -f2 -d " "`~etchcran.2.8.1
+ dch -b -v $version -D etch-cran $text
+
+ sed -i '/^Build-Depends/s/r-base-dev (.*)/r-base-dev (>= 2.8.1-1~etchcran.0)/' debian/control
+ dch -a "debian/control: adapt build dependencies on r-base-dev to current backport"
+
+ sed -i '/^#include "Rdevices.h"/d' rkward/rbackend/rembedinternal.cpp
+ dch -a "rkward/rbackend/rembedinternal.cpp: remove inclusion of obsolete Rdevices.h"
+
+ fakeroot dpkg-buildpackage -sa
+ cd ../..
+done

Contact - Imprint