Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Andrew Cagney <ac131313@cygnus.com>
To: Christopher Faylor <cgf@redhat.com>
Cc: Andrew Cagney <ac131313@cygnus.com>,
	Colin Walters <walters@cis.ohio-state.edu>,
	gdb-patches@sourceware.cygnus.com
Subject: Re: refcard.dvi build patch
Date: Wed, 04 Jul 2001 11:25:00 -0000	[thread overview]
Message-ID: <3B4353EB.9040106@cygnus.com> (raw)
In-Reply-To: <3B3AABB2.9080708@cygnus.com>

ChrisF?  Ok in theory on cygwin?

	Andrew

> I needed the following patch to build refcard.dvi on my system; bash
> was complaining about the for f in ; do ...; done syntax when
> when $REFEDITS was empty.
> 
> 
> Can anyone think of a reason to not set REFEDITS to /dev/null by default?  Would either cygwin or djgpp have problems?
> 
>     Andrew
> 
> PS: Which version of bash?
> 
> 
> 
> 2001-06-21  Colin Walters  <walters@cis.ohio-state.edu>
> 
> * identity.sed: New file.
>     * Makefile.in (REFEDITS): Use it.
>     (refcard.dvi): Remove logic for testing for empty REFEDITS; this
>     is now handled by identity.sed instead.
> 
> --- /dev/null    Wed Dec 31 19:00:00 1969
> +++ identity.sed    Thu Jun 21 15:55:31 2001
> @@ -0,0 +1 @@
> +# This is an empty file used by the Makefile for building refcard.dvi.
> 
> --- Makefile.in.~1.13.~    Mon May 14 12:18:50 2001
> +++ Makefile.in    Thu Jun 21 13:31:02 2001
> @@ -84,8 +84,8 @@
>  # e.g. for A4, Postscript:  REFEDITS = a4rc.sed psrc.sed
>  #      for A4, CM fonts:    REFEDITS = a4rc.sed
>  #      for US, PS fonts:    REFEDITS = psrc.sed
> -#      for default:
> -REFEDITS =
> +#      for default:         REFEDITS = identity.sed
> +REFEDITS = identity.sed
>  
>  # Don Knuth's TeX formatter
>  TEX = tex
> @@ -200,14 +200,10 @@
>  
>  # GDB QUICK REFERENCE (dvi output)
>  refcard.dvi : refcard.tex $(REFEDITS)
> -    if [ -z "$(REFEDITS)" ]; then \
> -        cp $(srcdir)/refcard.tex sedref.tex ; \
> -    else \
> -        echo > tmp.sed ; \
> -        for f in $(REFEDITS) ; do \
> -            cat $(srcdir)/$$f >>tmp.sed ; done ; \
> -        sed -f tmp.sed $(srcdir)/refcard.tex >sedref.tex ; \
> -    fi
> +    echo > tmp.sed ; \
> +    for f in $(REFEDITS) ; do \
> +        cat $(srcdir)/$$f >>tmp.sed ; done ; \
> +    sed -f tmp.sed $(srcdir)/refcard.tex >sedref.tex ; \
>      $(SET_TEXINPUTS) $(TEX) sedref.tex
>      mv sedref.dvi refcard.dvi
>      rm -f sedref.log sedref.tex tmp.sed
> 
> 
> 
> 
> 



  parent reply	other threads:[~2001-07-04 11:25 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <87g0ctd2la.church.of.emacs@cis.ohio-state.edu>
     [not found] ` <3B3AABB2.9080708@cygnus.com>
2001-06-27 22:27   ` Colin Walters
2001-06-28  3:41   ` Eli Zaretskii
2001-06-28 23:09     ` Colin Walters
2001-06-29  2:10       ` Eli Zaretskii
2001-07-04 11:25   ` Andrew Cagney [this message]
2001-07-04 13:29   ` Andrew Cagney
2001-07-04 23:45     ` Eli Zaretskii
2001-07-05 21:49       ` Andrew Cagney
2001-07-09  1:21         ` Eli Zaretskii
2001-07-14  9:01           ` Andrew Cagney
2001-07-10 23:13         ` Colin Walters

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3B4353EB.9040106@cygnus.com \
    --to=ac131313@cygnus.com \
    --cc=cgf@redhat.com \
    --cc=gdb-patches@sourceware.cygnus.com \
    --cc=walters@cis.ohio-state.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox