Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: e4916159d3926fc9e2fd5ef15aaafe9f1cf7174e
Ticket: 2429444fffffffffffffffffffffffffffffffff
install-doc target removes all mann manual pages
User & Date: ferrieux on 2008-12-15 04:29:19
Changes

  1. assignee changed to: "stwo"
  2. icomment:
    Yes. To elaborate, the bug is in the install-doc target which does
    
      list='$(srcdir)/doc/*.n'; for i in $$list; do
      ...
      rm -f $(DESTDIR)$(mandir)/mann/`basename $$i`; \
    
    Hence if $srcdir/doc is empty of any *.n, then the 'list' var is set to a path having a literal star in its [file tail].
    It gets iterated over by 'for' as a single-element list, hence 'i' gets the same value, and 'basename' still extracts the star.
    This results in
    
      rm -f $(DESTDIR)$(mandir)/mann/*.n
    
    which is unfortunate ;-)
    As suggested on the chat with George, there are generic ways to detect no-matches in shell (like looking for the naked star).
    But here it might be wiser to avoid the rm in the first place. Why is it there ? (it is followed by INSTALL_DATA which could well overwrite files)...
    
    
    
    
  3. login: "ferrieux"
  4. mimetype: "text/plain"
  5. subsystem changed to: "70. Sample Extension"
  6. username: "ferrieux"