git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH] Documentation/Makefile: remove cmd-list.made before redirecting to it.

From
David Kastrup <dak@gnu.org>
Date
Aug 6, 2007, 13:05 UTC
Message-ID
<86vebsby27.fsf@lola.quinscape.zz>

If cmd-list.made has been created by a previous run as root, output redirection to it will fail. So remove it before regeneration.

Signed-off-by: David Kastrup <dak@gnu.org>
---
 Documentation/Makefile |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/Documentation/Makefile b/Documentation/Makefile
index 97ee067..120e7c0 100644
--- a/Documentation/Makefile
+++ b/Documentation/Makefile
@@ -120,6 +120,7 @@ $(cmds_txt): cmd-list.made
 
 cmd-list.made: cmd-list.perl $(MAN1_TXT)
 	perl ./cmd-list.perl
+	$(RM) $@
 	date >$@
 
 git.7 git.html: git.txt core-intro.txt
-- 
1.5.3.rc4.21.ga63eb
Next: Junio C Hamano
Message 1 of 3 in “Documentation/Makefile: remove cmd-list.made before redirecting to it.”
  1. Documentation/Makefile: remove cmd-list.made before redirecting to it.David Kastrup, Aug 6, 2007
  2. Junio C HamanoAug 7, 2007
  3. David KastrupAug 7, 2007

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.