bug-toutdoux
[Top][All Lists]
Advanced

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

[Bug-ToutDoux] install bug?


From: Corrado Gioannini
Subject: [Bug-ToutDoux] install bug?
Date: Tue, 4 May 2004 17:30:27 +0200
User-agent: Mutt/1.5.4i

Hi *,
i could have found a tiny bug in the install process:
the Makefile(s) ToutDoux-1.2.7/doc/en (and fr ans es as well)
at line 315 cycles on all .html and .css files to install them 
in the right dirs. My sources [1] do not contain any .css files
so the shell glob expansions results in a list of .html files 
followed by a "*.css" token, that of course makes the shell 
complain when trying to access it.
My (ugly) workaround was to add an existence test around the code
inside the for loop, so that lines 313-320 result like:
-----------------------------------------------------------------------
install-data-local:
        $(mkinstalldirs) $(DESTDIR)$(TARGET_DIR); \
        for file in toutdoux/*.html toutdoux/*.css; do \
         if [ -f $$file ] ; then \
          basefile=echo $$file | sed -e 's,^.*/,,'; \
          $(INSTALL_DATA) $$file $(DESTDIR)$(TARGET_DIR)/$$basefile; \
         fi; \
        done
----------------------------------------------------------------------- 
HTH,
Corrado.

[1]: I took them using apt-get from:
     http://www.gnu.org/software/toutdoux

P.S. I'm not subscribed to this list so if you'd like to contact me
     please write me directly.

-- 
                       Thought is only a flash between two long nights,
                                          but this flash is everything.
                                                          (H. Poincaré)




reply via email to

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