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
- assignee changed to: "stwo"
- 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)...
- login: "ferrieux"
- mimetype: "text/plain"
- subsystem changed to: "70. Sample Extension"
- username: "ferrieux"