summaryrefslogtreecommitdiffstats
path: root/scripts/apatch.in
diff options
context:
space:
mode:
authorAndreas Gruenbacher <agruen@suse.de>2004-06-06 00:20:07 +0000
committerAndreas Gruenbacher <agruen@suse.de>2004-06-06 00:20:07 +0000
commiteb1a6de33c1b631e4636ff26dde2945a0db8db74 (patch)
treef8f6db4094c602e59fbbf9398e6edfaa499e851f /scripts/apatch.in
parent77265baff69c1576f9e90e13b9a23d72363ab897 (diff)
downloadquilt-eb1a6de33c1b631e4636ff26dde2945a0db8db74.tar.gz
- backup-file.c: Add code to recursively search .pc directories.
Add a "no-op" mode as default, and allow to just unlink files. - apatch/rpatch: let backup-files search .pc directories instead of generating temporary file lists. - rpatch/pop: unlink files of topmost patch after popping instead of unlinking at each step. - If QUILTRC is set in the environment, use this as the configuration file.
Diffstat (limited to 'scripts/apatch.in')
-rwxr-xr-xscripts/apatch.in11
1 files changed, 4 insertions, 7 deletions
diff --git a/scripts/apatch.in b/scripts/apatch.in
index 94c74b4..38235cc 100755
--- a/scripts/apatch.in
+++ b/scripts/apatch.in
@@ -62,17 +62,14 @@ apply_patch()
rollback_patch()
{
- local patch=$1 pc_file=$(gen_tempfile)
+ local patch=$1
- # FIXME backup_files should scan the directory hierarchy itself.
- files_in_patch $patch > $pc_file
- @LIB@/backup-files $silent_unless_verbose \
- -f $pc_file -B $QUILT_PC/$patch/ -r
if [ -z "$opt_leave_rejects" ]
then
- @SED@ -e 's/$/\.rej/' $pc_file | xargs rm -f
+ files_in_patch | @SED@ -e 's/$/\.rej/' | xargs rm -f
fi
- rm -f $pc_file
+
+ @LIB@/backup-files $silent_unless_verbose -r -B $QUILT_PC/$patch/ -
}
apatch()