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

[PATCH 2/3] Delete manuals if compiling without docs

From
PRPavel Roskin <proski@gnu.org>
Date
Jun 30, 2006, 05:09 UTC
Message-ID
<20060630050926.701.24647.stgit@dv.roinet.com>
In-Reply-To
<20060630050923.701.37665.stgit@dv.roinet.com>
From: Pavel Roskin <proski@gnu.org>
Otherwise, rpm would complain about unpacked files.
Signed-off-by: Pavel Roskin <proski@gnu.org>
---
 git.spec.in |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/git.spec.in b/git.spec.in
index 8ccd256..b8feda3 100644
--- a/git.spec.in
+++ b/git.spec.in
@@ -86,6 +86,8 @@ make %{_smp_mflags} DESTDIR=$RPM_BUILD_R
 (find $RPM_BUILD_ROOT%{_bindir} -type f | grep -vE "arch|svn|cvs|email|gitk" | sed -e s@^$RPM_BUILD_ROOT@@)               > bin-man-doc-files
 %if %{!?_without_docs:1}0
 (find $RPM_BUILD_ROOT%{_mandir} $RPM_BUILD_ROOT/Documentation -type f | grep -vE "arch|svn|git-cvs|email|gitk" | sed -e s@^$RPM_BUILD_ROOT@@ -e 's/$/*/' ) >> bin-man-doc-files
+%else
+rm -rf $RPM_BUILD_ROOT%{_mandir}
 %endif
 
 %clean
Previous: Pavel RoskinNext: Pavel Roskin
Message 2 of 6 in “Fix probing for already installed Error.pm”
  1. 1/3 Fix probing for already installed Error.pmPavel Roskin, Jun 30, 2006
  2. 2/3 Delete manuals if compiling without docsPavel Roskin, Jun 30, 2006
  3. 3/3 Make perl interface a separate packagePavel Roskin, Jun 30, 2006
  4. Junio C HamanoJun 30, 2006
  5. Junio C HamanoJun 30, 2006
  6. Pavel RoskinJun 30, 2006

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.