3 . patchfns >/dev/null || . /usr/lib/patch-scripts/patchfns >/dev/null || { \
4 echo "Impossible to find my library 'patchfns'."
5 echo "Check your install, or go to the right directory"
10 FILES=$(cat $P/pc/$PATCH_NAME.pc)
13 copy_file_to_bup $file $PATCH_NAME
17 if [ $opt_force != 0 ]
22 if patch -p1 $silent -i "$1" || [ $opt_force != 0 ]
26 echo SOMETHING WENT WRONG
33 basename "$1" >> "$DB"
38 echo "Usage: apatch patchname"
51 PATCH_NAMES="$PATCH_NAMES $i"
55 if [ x"$PATCH_NAMES" == x ]
62 PATCH_NAME=$(stripit $1)
64 need_file_there $P/pc/$PATCH_NAME.pc
66 if is_applied "$PATCH_NAME"
68 echo "$PATCH_NAME" is already applied
72 if [ $opt_force != 0 ]
77 if [ $opt_force != 0 ] || can_apply $P/patches/"$PATCH_NAME".patch
79 check_pc_match $P/patches/"$PATCH_NAME".patch $P/pc/"$PATCH_NAME".pc
80 do_apply $P/patches/"$PATCH_NAME".patch
81 add_to_db "$PATCH_NAME"
82 echo applied $PATCH_NAME
85 echo "$PATCH_NAME" does not apply