3 # Copyright (c) Josef "Jeff" Sipek, 2006, 2007
6 source "`dirname $0`/guilt"
10 if [ -z "$patch" ]; then
11 echo "You must specify a patch to delete"
15 p
=`grep -e "^[0-9a-f]\{40\}:$patch\$" < "$applied"`
16 if [ ! -z "$p" ] ; then
17 echo "Cannot delete an applied patch"
21 ex
-s -c ":%g/^$patch\$/d|:wq" "$series"