The script isn't for awk, I think we just invoke it in a way nawk isn't
pleased with. Try this please:

You will need to run autogen.sh again.

diff --git a/Makefile.am b/Makefile.am
index c5369fd..c131940 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -242,7 +242,7 @@ tmux.1: tmux.1.in
        if test x@MANFORMAT@ = xmdoc; then \
                cp tmux.1.in tmux.1; \
        else \
-               $(AWK) -fmdoc2man.awk tmux.1.in >tmux.1; \
+               $(AWK) -fmdoc2man.awk <tmux.1.in >tmux.1; \
        fi
 
 # Update SF web site.



On Mon, Apr 22, 2013 at 10:46:22AM +0000, John Long wrote:
> On Sun, Apr 21, 2013 at 10:55:29PM +0200, Dagobert Michelsen wrote:
> > Hi John,
> > 
> > Am 21.04.2013 um 17:26 schrieb John Long <codeb...@inbox.lv>:
> > > On Sun, Apr 21, 2013 at 05:16:09PM +0200, Dagobert Michelsen wrote:
> > >> Am 21.04.2013 um 12:48 schrieb John Long:
> > >> All patches are against HEAD:
> > >>  https://sourceforge.net/p/tmux/tmux-code/ci/master/tree/
> > > 
> > > Ok, downloaded the tarball?
> > 
> > I suggest using git when doing stuff with git :-)
> 
> I don't know how to use git. Isn't using the link you posted and downloading
> the tarball "using git"? I thought that got me the version your patches
> apply to.
> 
> > 
> > >> Make sure to call autogen.sh before building after applying the patches.
> > > 
> > > The 0003-Provide-replacement-for-cfmakeraw.patch patch still doesn't 
> > > apply:
> > > 
> > > error: patch failed: Makefile.am:231
> > > error: Makefile.am: patch does not apply
> > > 
> > > What should I be looking for to fix this?
> > 
> > Works for me:
> > 
> > > dam@login [login]:/home/dam/mgar/pkg/tmux/trunk > cd 
> > > tmux-tmux-code-c24b58e2ee8691870736959deb252c225b205b4d
> > > dam@login 
> > > [login]:/home/dam/mgar/pkg/tmux/trunk/tmux-tmux-code-c24b58e2ee8691870736959deb252c225b205b4d
> > >  > gpatch -p1 <../files/0003-Provide-replacement-for-cfmakeraw.patch 
> > > patching file Makefile.am
> > > Hunk #1 succeeded at 233 with fuzz 2 (offset 2 lines).
> > > patching file compat.h
> > > patching file compat/cfmakeraw.c
> > > patching file configure.ac
> 
> I didn't use gpatch. I used git apply. Your way works better ;-)
> 
> The build gets a lot further then breaks with a nawk syntax error.
> 
> if test xman = xmdoc; then \
>         cp tmux.1.in.tmux.1; \
> else \
>         nawk -fmdoc2man.awk tmux.1.in >tmux.1; \
> fi
> nawk:  syntax error at source line 1
>  context is
>          >>> . <<< \ " $Id$
>          4 missing ]'s
> nawk: bailing out at source line 1
> 
> Thank you.
> 
> 
> ------------------------------------------------------------------------------
> Precog is a next-generation analytics platform capable of advanced
> analytics on semi-structured data. The platform includes APIs for building
> apps and a phenomenal toolset for data science. Developers can use
> our toolset for easy data analysis & visualization. Get a free account!
> http://www2.precog.com/precogplatform/slashdotnewsletter
> _______________________________________________
> tmux-users mailing list
> tmux-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/tmux-users

------------------------------------------------------------------------------
Precog is a next-generation analytics platform capable of advanced
analytics on semi-structured data. The platform includes APIs for building
apps and a phenomenal toolset for data science. Developers can use
our toolset for easy data analysis & visualization. Get a free account!
http://www2.precog.com/precogplatform/slashdotnewsletter
_______________________________________________
tmux-users mailing list
tmux-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tmux-users

Reply via email to