quilt-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Quilt-dev] [patch 3/8]


From: Dean Roehrich
Subject: Re: [Quilt-dev] [patch 3/8]
Date: Tue, 13 Sep 2005 17:35:49 -0500
User-agent: Mutt/1.5.9i

Yes, please.

Dean


On Tue, Sep 13, 2005 at 10:25:49PM +0100, Gary V. Vaughan wrote:
> 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      ())_.  address@hidden,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
> address@hidden
> http://lists.nongnu.org/mailman/listinfo/quilt-dev




reply via email to

[Prev in Thread] Current Thread [Next in Thread]