Makefile.in | 2 ++ configure.ac | 14 ++++++++++++++ quilt/previous.in | 2 +- scripts/patchfns.in | 2 +- 4 files changed, 18 insertions(+), 2 deletions(-) --- quilt.orig/configure.ac 2005-08-28 20:52:10.000000000 +0200 +++ quilt/configure.ac 2005-09-15 11:04:55.000000000 +0200 @@ -135,6 +135,20 @@ fi fi +dnl Check for tail +AC_ARG_WITH(tail, AC_HELP_STRING( + [--with-tail], [name of the tail executable to use]), + [ + TAIL="$withval" + AC_SUBST(TAIL) + AC_MSG_NOTICE([Using tail executable $TAIL]) + ],[ + AC_PATH_PROG(TAIL, tail) + ]) +if test -z "$TAIL"; then + AC_MSG_ERROR([Please specify the location of tail with the option '--with-tail']) +fi + dnl Check for diff AC_ARG_WITH(diff, AC_HELP_STRING( [--with-diff], [name of the diff executable to use]), --- quilt.orig/Makefile.in 2005-09-15 11:07:24.000000000 +0200 +++ quilt/Makefile.in 2005-09-15 11:08:06.000000000 +0200 @@ -23,6 +23,7 @@ SED := @SED@ AWK := @AWK@ DIFF := @DIFF@ +TAIL := @TAIL@ PATCH := @PATCH@ MKTEMP := @MKTEMP@ MSGFMT := @MSGFMT@ @@ -215,6 +216,7 @@ -e 's:@BASH''@:$(BASH):g' \ -e 's:@SED''@:$(SED):g' \ -e 's:@AWK''@:$(AWK):g' \ + -e 's:@TAIL''@:$(TAIL):g' \ -e 's:@DIFF''@:$(DIFF):g' \ -e 's:@PATCH''@:$(PATCH):g' \ -e 's:@MKTEMP''@:$(MKTEMP):g' \ --- quilt.orig/quilt/previous.in 2005-06-12 14:37:56.000000000 +0200 +++ quilt/quilt/previous.in 2005-09-15 11:09:56.000000000 +0200 @@ -66,7 +66,7 @@ patch=$(top_patch) fi -previous=$(applied_before "$patch" | tail -n 1) +previous=$(applied_before "$patch" | @TAIL@ -n 1) if [ -n "$previous" ] then echo "$(print_patch $previous)" --- quilt.orig/scripts/patchfns.in 2005-09-09 17:53:52.000000000 +0200 +++ quilt/scripts/patchfns.in 2005-09-15 11:09:15.000000000 +0200 @@ -308,7 +308,7 @@ top_patch() { - [ -e $DB ] && tail -n 1 $DB + [ -e $DB ] && @TAIL@ -n 1 $DB } is_numeric()