blob: bdb4627c55b76e103a4f8da6323fe31b1b23cc98 (
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.
. 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
}
if [ $# -ne 1 ]
then
echo "Usage prep-patch patchname"
exit 1
fi
PATCHNAME=$(stripit $1)
head -2 $(txt_file_name $PATCHNAME) | tail -1 | tr -d '\n' | xcb -s 1
xcb -p 1; echo
cp $P/patches/$PATCHNAME.patch /tmp/patch
|