Mac OS X 10.4 (I use 10.4.2) doesn't ship a tac command, and the darwin
ports install of coreutils installs its version as gtac.
This patch falls back to using a short perl one-liner when the system
does not have a tac command. gtac isn't searched for since using perl
obviates the requirement to `port install coreutils'.
Makefile.in | 2 ++
configure.ac | 2 ++
quilt/pop.in | 2 +-
3 files changed, 5 insertions(+), 1 deletion(-)
Index: quilt-HEAD/quilt/pop.in
===================================================================
--- quilt-HEAD.orig/quilt/pop.in
+++ quilt-HEAD/quilt/pop.in
@@ -52,7 +52,7 @@ list_patches()
{
local n=0 patch
applied_patches \
- | tac \
+ | @TAC@ \
| if [ -n "$opt_all" ]
then
cat
Index: quilt-HEAD/Makefile.in
===================================================================
--- quilt-HEAD.orig/Makefile.in
+++ quilt-HEAD/Makefile.in
@@ -22,6 +22,7 @@ PERL := @PERL@
BASH := @BASH@
SED := @SED@
AWK := @AWK@
+TAC := @TAC@
DIFF := @DIFF@
PATCH := @PATCH@
MKTEMP := @MKTEMP@
@@ -215,6 +216,7 @@ $(PACKAGE).spec : $(PACKAGE).spec.in $(P
-e 's:@BASH''@:$(BASH):g' \
-e 's:@SED''@:$(SED):g' \
-e 's:@AWK''@:$(AWK):g' \
+ -e "s:@TAC""@:$(TAC):g" \
-e 's:@DIFF''@:$(DIFF):g' \
-e 's:@PATCH''@:$(PATCH):g' \
-e 's:@MKTEMP''@:$(MKTEMP):g' \
Index: quilt-HEAD/configure.ac
===================================================================
--- quilt-HEAD.orig/configure.ac
+++ quilt-HEAD/configure.ac
@@ -25,6 +25,8 @@ AC_SUBST(EXEEXT)
AC_PROG_INSTALL
+AC_PATH_PROG(TAC, tac, [perl -e 'print reverse <>'])
+
AC_SYS_INTERPRETER
if test "$interpval" != yes ; then
AC_MSG_WARN([no
--
Gary V. Vaughan ())_. [EMAIL PROTECTED],gnu.org}
Research Scientist ( '/ http://tkd.kicks-ass.net
GNU Hacker / )= http://www.gnu.org/software/libtool
Technical Author `(_~)_ http://sources.redhat.com/autobook
_______________________________________________
Quilt-dev mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/quilt-dev