diff options
author | Robert Millan <rmh@aybabtu.com> | 2009-10-25 01:03:54 +0000 |
---|---|---|
committer | Robert Millan <rmh@aybabtu.com> | 2009-10-25 01:03:54 +0000 |
commit | 2ecc09b6850b11c1403044fa01eee1f921c8d6c0 (patch) | |
tree | 62897faeac91959e3fa21d813ea3146d25a4936b /freed-ebian/deblobian | |
parent | be748a41d4d21ebb00d39c41d33eabbeb7065991 (diff) | |
download | linux-libre-raptor-2ecc09b6850b11c1403044fa01eee1f921c8d6c0.tar.gz linux-libre-raptor-2ecc09b6850b11c1403044fa01eee1f921c8d6c0.zip |
Automatically copy and run deblob, and run dch.
Diffstat (limited to 'freed-ebian/deblobian')
-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" |