diff options
author | Martin Quinson <mquinson@debian.org> | 2003-01-21 09:55:24 +0000 |
---|---|---|
committer | Martin Quinson <mquinson@debian.org> | 2003-01-21 09:55:24 +0000 |
commit | 8cea6b985ed4ff43d6865d485e5cec26fbe09923 (patch) | |
tree | 67a546c952833245d2a6ed36d955d3658dc3d1ba /oldies | |
parent | 541f4a5e48ea0272df02dcc3f4150af0fd19b5ba (diff) | |
download | quilt-8cea6b985ed4ff43d6865d485e5cec26fbe09923.tar.gz |
Move prep-patch to oldies, since it was used to prepare patches for inclusion in NS4 mails
Diffstat (limited to 'oldies')
-rwxr-xr-x | oldies/prep-patch | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/oldies/prep-patch b/oldies/prep-patch new file mode 100755 index 0000000..bdb4627 --- /dev/null +++ b/oldies/prep-patch @@ -0,0 +1,28 @@ +#! /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 |