summaryrefslogtreecommitdiffstats
path: root/lib/rpatch.in
diff options
context:
space:
mode:
authorAndreas Gruenbacher <agruen@suse.de>2003-01-30 12:26:26 +0000
committerAndreas Gruenbacher <agruen@suse.de>2003-01-30 12:26:26 +0000
commit4819c9d84825b2e7899019f669fe61d82c74fec8 (patch)
treeb194c5da8d0297b86ac7767ad6827840ad5121bb /lib/rpatch.in
parent6b029c93fa2d380c5300931f7b6e20b08c63ab37 (diff)
downloadquilt-4819c9d84825b2e7899019f669fe61d82c74fec8.tar.gz
Prepare for more Autoconf
Diffstat (limited to 'lib/rpatch.in')
-rwxr-xr-xlib/rpatch.in8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/rpatch.in b/lib/rpatch.in
index 2d39bf1..73f8ac6 100755
--- a/lib/rpatch.in
+++ b/lib/rpatch.in
@@ -44,7 +44,7 @@ verify_removal()
echo "Patch does not remove changes:"
fi
- diff -Nu $DIFF_OPTS $bup $file \
+ @DIFF@ -Nu $DIFF_OPTS $bup $file \
| sed -e 's:^--- [^ \t]*:--- '"$dir/$file.orig"':' \
-e 's:^+++ [^ \t]*:+++ '"$dir/$file"':'
@@ -117,15 +117,15 @@ reverse_patch()
if [ "x${patch_file:(-3)}" = "x.gz" ]
then
gzip -cd $patch_file \
- | patch $(patch_args $patch) --no-backup-if-mismatch \
+ | @PATCH@ $(patch_args $patch) --no-backup-if-mismatch \
-R -E $silent
elif [ "x${patch_file:(-4)}" = "x.bz2" ]
then
bzip2 -cd $patch_file \
- | patch $(patch_args $patch) --no-backup-if-mismatch \
+ | @PATCH@ $(patch_args $patch) --no-backup-if-mismatch \
-R -E $silent
else
- patch $(patch_args $patch) --no-backup-if-mismatch \
+ @PATCH@ $(patch_args $patch) --no-backup-if-mismatch \
-R -E $silent -i $patch_file
fi
}