3 # Copyright (c) Josef "Jeff" Sipek, 2006, 2007
15 if [ -z "$patch" ]; then
16 # use the patch that's on the top of the stack
18 eidx
=`wc -l < $applied`
19 if [ $eidx -eq 0 ]; then
20 die
"Status file is empty"
23 # use the specified patch
25 eidx
=`get_series | grep -ne "^$patch\$" | cut -d: -f1`
26 if [ $eidx -eq 0 ]; then
27 die
"Patch $patch is not in the series"
32 for p
in `get_series`; do
34 [ $idx -lt $eidx ] && continue
35 [ $idx -gt $eidx ] && break
37 do_get_header
$GUILT_DIR/$branch/$p