diff options
author | Andreas Gruenbacher <agruen@suse.de> | 2003-04-07 14:04:19 +0000 |
---|---|---|
committer | Andreas Gruenbacher <agruen@suse.de> | 2003-04-07 14:04:19 +0000 |
commit | 367ebd4d4777c826c7bcb4ddeb1b02a0b7146ef5 (patch) | |
tree | 1dcd3a8f1a7af25536bc713ac1783f18491e72f3 | |
parent | 07095115fa3bc04074956d703d8798910eee21a3 (diff) | |
download | quilt-367ebd4d4777c826c7bcb4ddeb1b02a0b7146ef5.tar.gz |
`head -1' and `tail -1' is non-standard and deprecated, and
does not work with coreutils-5.0 any longer.
-rw-r--r-- | quilt.changes | 6 | ||||
-rw-r--r-- | quilt/next.in | 4 | ||||
-rw-r--r-- | quilt/previous.in | 2 | ||||
-rw-r--r-- | scripts/patchfns.in | 4 |
4 files changed, 11 insertions, 5 deletions
diff --git a/quilt.changes b/quilt.changes index 477b7f7..12cb880 100644 --- a/quilt.changes +++ b/quilt.changes @@ -1,4 +1,10 @@ ------------------------------------------------------------------- +Mon Apr 7 16:03:55 CEST 2003 - agruen@suse.de + +- `head -1' and `tail -1' is non-standard and deprecated, and + does not work with coreutils-5.0 any longer. + +------------------------------------------------------------------- Sat Apr 5 22:17:44 CEST 2003 - agruen@suse.de - Improve error checking of `quilt diff'. diff --git a/quilt/next.in b/quilt/next.in index a7e9d21..9e2ca64 100644 --- a/quilt/next.in +++ b/quilt/next.in @@ -71,9 +71,9 @@ fi if [ -z "$patch" ] then - next=$(cat_series | head -1) + next=$(cat_series | head -n 1) else - next=$(patches_after $patch | head -1) + next=$(patches_after $patch | head -n 1) fi [ -n "$opt_filenames" ] && next=$(patch_file_name $next) echo "$next" diff --git a/quilt/previous.in b/quilt/previous.in index 96d7ca4..bbf17ac 100644 --- a/quilt/previous.in +++ b/quilt/previous.in @@ -71,7 +71,7 @@ fi if [ -n "$patch" ] then - previous=$(patches_before $patch | tail -1) + previous=$(patches_before $patch | tail -n 1) [ -n "$opt_filenames" ] && previous=$(patch_file_name $previous) echo "$previous" fi diff --git a/scripts/patchfns.in b/scripts/patchfns.in index a080126..476d6aa 100644 --- a/scripts/patchfns.in +++ b/scripts/patchfns.in @@ -246,7 +246,7 @@ cat_series() top_patch() { - [ -e $DB ] && tail -1 $DB + [ -e $DB ] && tail -n 1 $DB } is_numeric() @@ -318,7 +318,7 @@ next_patch_for_file() then grep -l -E "^$(quote_re $file)\$" \ $(pc_file_name $patches_on_top) \ - | head -1 \ + | head -n 1 \ | @SED@ -e 's:^\.pc/::' -e 's:/\.pc$::' fi |