diff options
author | Andreas Gruenbacher <agruen@suse.de> | 2005-07-18 14:55:03 +0000 |
---|---|---|
committer | Andreas Gruenbacher <agruen@suse.de> | 2005-07-18 14:55:03 +0000 |
commit | 28be8101d1775667e0d7b3bd297b0f7b28570763 (patch) | |
tree | d77c7642714d81e92cebf7981fdd53b7f36cb9ef /scripts/patchfns.in | |
parent | 78a7ca38e25c940f034c1cc95a510bfd31a92f47 (diff) | |
download | quilt-28be8101d1775667e0d7b3bd297b0f7b28570763.tar.gz |
- Based on work done by several contributers, add a headerv0.41
command.
- Bump version to 0.41.
Diffstat (limited to 'scripts/patchfns.in')
-rw-r--r-- | scripts/patchfns.in | 37 |
1 files changed, 24 insertions, 13 deletions
diff --git a/scripts/patchfns.in b/scripts/patchfns.in index b46b362..a70cfed 100644 --- a/scripts/patchfns.in +++ b/scripts/patchfns.in @@ -627,21 +627,32 @@ cat_to_new_file() > "$filename" } -patch_description() +patch_header() { - local patch_file=$1 + @AWK@ ' + $1 == "***" || $1 == "---" \ + { exit } + /^Index:[ \t]|^diff[ \t]|^==*$|^RCS file: |^retrieving revision [0-9]+(\.[0-9]+)*$/ \ + { eat = eat $0 "\n" + next } + { print eat $0 + eat = "" } + ' +} - if [ -e "$patch_file" -o -z "$patch_file" ] - then - @AWK@ ' - $1 == "***" || $1 == "---" { exit } - /^Index:[ \t]|^diff[ \t]|^==*$|^RCS file: |^retrieving revision [0-9]+(\.[0-9]+)*$/ \ - { eat = eat $0 "\n" - next } - { print eat $0 - eat = "" } - ' $patch_file - fi +patch_body() +{ + @AWK@ ' + /^Index:[ \t]|^diff[ \t]|^==*$|^RCS file: |^retrieving revision [0-9]+(\.[0-9]+)*$/ \ + { eat = eat $0 "\n" + next } + $1 == "***" || $1 == "---" \ + { body=1 } + body { print eat $0 + eat = "" + next } + { eat = "" } + ' } in_array() |