blob: 023aa9fb03f57edb05f3c67ae3bf9751097a93c9 (
plain) (
tree)
|
|
#! /bin/bash
# This script is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2 as
# published by the Free Software Foundation.
#
# See the COPYING and AUTHORS files for more details.
#
# Grab a patch frmo kernel.org, install it.
#
# Usage: linus-patch http://www.kernel.org/pub/linux/kernel/people/dwmw2/bk-2.5/cset-1.786.152.7-to-1.798.txt.gz
#
. patchfns 2>/dev/null ||
. /usr/lib/patch-scripts/patchfns 2>/dev/null ||
. $PATCHSCRIPTS_LIBDIR/patchfns 2>/dev/null ||
{
echo "Impossible to find my library 'patchfns'."
echo "Check your install, or go to the right directory"
exit 1
}
poppatch 999 || die poppatch
wget $1 || die wget
FILE=$(basename $1)
gzip -d < $FILE > $P/patches/linus.patch
pcpatch linus || die pcpatch
(
echo DESC
echo $FILE
echo EDESC
echo
echo $FILE
) > $P/txt/linus.txt
rm $FILE
|