diff options
-rwxr-xr-x | freed-ebian/deblobian | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/freed-ebian/deblobian b/freed-ebian/deblobian index b7e9e8d64..476e2ca49 100755 --- a/freed-ebian/deblobian +++ b/freed-ebian/deblobian @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash # # Copyright (C) 2008,2009 Robert Millan # @@ -20,6 +20,10 @@ set -ex +basedir=`dirname $0` +v=`dpkg-parsechangelog | sed -ne "s/Version: \([^-]*\)-.*/\1/p"` +debian_rev=`dpkg-parsechangelog | sed -ne "s/Version: .*-\([^-]*\)/\1/p"` + which patch sponge eval `grep ^revisions debian/bin/patch.apply | sed -e "s/\.split.*//g;s/ = /=/g"` @@ -52,10 +56,17 @@ for i in ${revisions} ; do done done -for i in `dirname $0`/patches/*.diff ; do +for i in ${basedir}/patches/*.diff ; do patch -p0 < $i done +cp ${basedir}/../scripts/deblob-{main,check,${v}} ./ + +chmod +x deblob-${v} +./deblob-${v} --force + +dch -v ${v}-libre2-${debian_rev} "deblob, etc." + set +x echo "$0 finished succesfully" |