From 255eeefd0cbe44062a0c6be57c0c12f431f13543 Mon Sep 17 00:00:00 2001 From: Andreas Gruenbacher Date: Mon, 6 Feb 2006 02:32:56 +0000 Subject: - bin/patch-wrapper.in: First fix ;) --- bin/patch-wrapper.in | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) (limited to 'bin/patch-wrapper.in') diff --git a/bin/patch-wrapper.in b/bin/patch-wrapper.in index 4d6b108..d41f42e 100755 --- a/bin/patch-wrapper.in +++ b/bin/patch-wrapper.in @@ -37,12 +37,11 @@ backup_files() { sub(/^patching file /, "", file) } /^Hunk #[0-9]* / \ - { if (! file in backup) - print file > "/dev/stderr" - backup[file] = 1 - #print "ln "dir"/"file" "prefix file suffix \ - # > "/dev/stderr" - system("ln "dir"/"file" "prefix file suffix) + { if (!(file in backup)) { + backup[file] = 1 + #print "ln -f "dir"/"file" "prefix file suffix > "/dev/stderr" + system("ln -f "dir"/"file" "prefix file suffix) + } } { if (!silent) print @@ -60,7 +59,7 @@ backup_files() { do dest=$opt_prefix${file#$dir/}$opt_suffix mkdir -p $(dirname "$dest") - ln $file $dest + ln -f $file $dest done fi } -- cgit