diff options
author | Alexandre Oliva <lxoliva@fsfla.org> | 2012-05-19 20:37:33 +0000 |
---|---|---|
committer | Alexandre Oliva <lxoliva@fsfla.org> | 2012-05-19 20:37:33 +0000 |
commit | 829704f5b39d13750dce5f375f0276764c77a865 (patch) | |
tree | 2703ad8e8599852a5e774b5d8fa8a2c20dd5ed1a /freed-ora/tags/f16/3.3.6-3.fc16.gnu/scripts/combine.sh | |
parent | 8b854b30ff9a8a950452e87c400a6a1d57210430 (diff) | |
download | linux-libre-raptor-829704f5b39d13750dce5f375f0276764c77a865.tar.gz linux-libre-raptor-829704f5b39d13750dce5f375f0276764c77a865.zip |
tag 3.3.6-3.fc16.gnu
Diffstat (limited to 'freed-ora/tags/f16/3.3.6-3.fc16.gnu/scripts/combine.sh')
-rwxr-xr-x | freed-ora/tags/f16/3.3.6-3.fc16.gnu/scripts/combine.sh | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/freed-ora/tags/f16/3.3.6-3.fc16.gnu/scripts/combine.sh b/freed-ora/tags/f16/3.3.6-3.fc16.gnu/scripts/combine.sh new file mode 100755 index 000000000..86a68d302 --- /dev/null +++ b/freed-ora/tags/f16/3.3.6-3.fc16.gnu/scripts/combine.sh @@ -0,0 +1,34 @@ +#! /bin/sh + +# combine a set of quilt patches + +# $1 : base dir (source tree) +# $2 : quilt dir (patches to apply) +# $3 : pre-patch to apply first (optional) + +# e.g.: +# combine.sh /home/user/fedora/trunk/kernel/F-11/kernel-2.6.30/vanilla-2.6.30 \ +# /home/user/git/stable-queue/queue-2.6.30 \ +# /home/user/fedora/trunk/kernel/F-11/patch-2.6.30.5.bz2 + +if [ $# -lt 2 ] ; then + exit 1 +fi + +TD="combine_temp.d" + +cd $1 || exit 1 +cd .. +[ -d $TD ] && rm -Rf $TD +mkdir $TD || exit 1 +cd $TD + +cp -al ../$(basename $1) work.d +cd work.d +[ "$3" ] && bzcat $3 | patch -p1 -s +ln -s $2 patches +[ -h patches ] || exit 1 +quilt snapshot +quilt upgrade +quilt push -a -q +quilt diff --snapshot >../combined.patch |