4 # Make superpatch from current series using combinediff.
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: combine-series output-file"
24 need_file_there series
25 CURRENT=$(mktemp /tmp/cmbd-XXXXXXXX)
26 for FILE in $(cat series)
28 NEXT=$(mktemp /tmp/cmbd-XXXXXXXX)
29 if [ -f $P/patches/$FILE ]
31 combinediff $CURRENT $P/patches/$FILE > $NEXT
32 elif [ -f $P/patches/$FILE.patch ]
34 combinediff $CURRENT $P/patches/$FILE.patch > $NEXT
37 combinediff $CURRENT $FILE > $NEXT