bug-gnu-emacs
[Top][All Lists]
Advanced

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

Re: dangerous command in Makefile.in uninstall rule


From: Claudio Fontana
Subject: Re: dangerous command in Makefile.in uninstall rule
Date: Tue, 28 Feb 2006 02:35:12 -0800 (PST)

--- Richard Stallman <address@hidden> 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 address@hidden .

CLaudio



        

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




reply via email to

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