4 # Add a file to a patch.
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: fpatch patchname filename"
16 echo " fpatch filename"
22 PATCH_NAME=$(top_patch)
26 PATCH_NAME=$(stripit $1)
33 if is_applied_last $PATCH_NAME
37 if is_applied $PATCH_NAME
39 echo $PATCH_NAME is not the last-applied patch
42 echo $PATCH_NAME >> $DB
46 if file_in_patch $FILENAME $PATCH_NAME
48 echo File $FILENAME is already in patch $PATCH_NAME
52 install_file_in_patch $FILENAME $PATCH_NAME