4 # Add next patch in series
7 . patchfns >/dev/null || . /usr/lib/patch-scripts/patchfns >/dev/null || { \
8 echo "Impossible to find my library 'patchfns'."
9 echo "Check your install, or go to the right directory"
15 echo "Usage: pushpatch [npatches]"
27 if [ -n "$NR" -o -n "$STOP_AT" ]
41 [ $opt_force = 1 ] && force="-f"
47 echo 'File "series" not found'
56 todo=$(head -1 $SERIES)
58 last_in_series=$(stripit $(tail -1 $SERIES))
59 if [ $last_in_series == $top ]
61 echo "Series fully applied. Ends at $top"
64 todo=$(grep -C1 "^$top\.patch" $SERIES | tail -1)
67 todo=$(head -1 $SERIES)
77 if [ x$STOP_AT != "x" ]
79 if [ $STOP_AT == $(toppatch) ]
81 sum-series applied-patch
86 sum-series applied-patch