unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Claudio Fontana <sick_soul@yahoo.it>
Cc: bug-gnu-emacs@gnu.org, bug-texinfo@gnu.org
Subject: Re: dangerous command in Makefile.in uninstall rule
Date: Tue, 28 Feb 2006 02:35:12 -0800 (PST)	[thread overview]
Message-ID: <20060228103512.30700.qmail@web26007.mail.ukl.yahoo.com> (raw)
In-Reply-To: <E1FDs4z-0005Py-Ns@fencepost.gnu.org>


--- Richard Stallman <rms@gnu.org> wrote: 

>     $ rm -f cl* ada-mode*
>     autotype* calc* ccmode* ebrowse* efaq* eintr
> elisp*
>     eshell* eudc* idlwave* message* pcl-cvs* reftex*
>     speedbar* tramp* widget* woman* dired-x* ediff*
> emacs*
>     emacs-xtra* flymake* forms* gnus* info* mh-e*
>     newsticker* org* sc* ses* vip* smtpmail* url*
> rcirc*
>     erc*
> 
> We could make these more specific.  For instance, it
> could be
> 
> cl cl-*
> 
> or even
> 
> cl cl-[0-9] cl-[0-9][0-9]
> 
> for each one of the manuals.
> 
> But that is rather clumsy.  Is there any cleaner way
> to do it?

With a for loop; automake uses this to uninstall info
files (from lib/am/texinfos.am in the Automake package
- I only strip the DJGPP stuff):

        @list='$(INFO_DEPS)'; \
        for file in $$list; do \
          relfile=`echo "$$file" | sed 's|^.*/||'`; \
          (if cd "$(DESTDIR)$(infodir)"; then \
             rm -f $$relfile $$relfile-[0-9]
$$relfile-[0-9][0-9]; \
           else :; fi); \
        done

> Perhaps with a shell program that is given an
> argument such as
> `cl', and returns the list of file names for that
> manual.
> Do you know how to write one?

I did not think about all the details yet,
but it should be possible to scan the "Indirect"
section in the main info file, and read the rest of
the info files from there.
The program should be put in the texinfo package under
utils I think. However, maybe that regex is safe
enough.

I forward this to bug-texinfo@gnu.org .

CLaudio



	

	
		
___________________________________ 
Yahoo! Mail: gratis 1GB per i messaggi e allegati da 10MB 
http://mail.yahoo.it

  reply	other threads:[~2006-02-28 10:35 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <E1FDKjh-0000YT-28@fencepost.gnu.org>
2006-02-27 12:45 ` dangerous command in Makefile.in uninstall rule Claudio Fontana
2006-02-27 23:47   ` Richard Stallman
2006-02-28 10:35     ` Claudio Fontana [this message]
2006-03-04 22:58       ` Karl Berry
2006-03-04 23:16         ` Claudio Fontana
2006-03-03 12:35     ` Eli Zaretskii
2006-03-04 13:37       ` Richard Stallman
2006-02-24 23:54 Claudio Fontana

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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=20060228103512.30700.qmail@web26007.mail.ukl.yahoo.com \
    --to=sick_soul@yahoo.it \
    --cc=bug-gnu-emacs@gnu.org \
    --cc=bug-texinfo@gnu.org \
    /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.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).