4 # Make superpatch from currently applied patches 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-applied output-file"
24 need_file_there applied-patches
25 CURRENT=$(mktemp /tmp/cmbd-XXXXXXXX)
26 APPLY_FILE=$(mktemp /tmp/cmbd-XXXXXXXX)
27 for FILE in `cat applied-patches`
29 if [ -f $P/pc/$FILE.pc ]
31 cat $P/pc/$FILE.pc >> $CURRENT
32 elif [ -f $P/pc/$FILE ]
34 cat $P/pc/$FILE >> $CURRENT
37 cat $CURRENT | sort -u > $APPLY_FILE
39 for FILE in `cat $APPLY_FILE`
41 diff -uNp $FILE~orig $FILE >> $1