Blob Blame Raw
From 131ea49cfbae3994b8a479f5d55a3858e4266777 Mon Sep 17 00:00:00 2001
From: John Khvatov <ivaxer@gmail.com>
Date: Wed, 22 Dec 2010 23:41:38 +0300
Subject: fixed install-modules-doc
 - bug: install-modules-doc overwrite global README file

---
 Makefile |    6 ++----
 1 files changed, 2 insertions(+), 4 deletions(-)

diff --git a/Makefile b/Makefile
index 8ec96ef..7021ae4 100644
--- a/Makefile
+++ b/Makefile
@@ -792,11 +792,9 @@ install-modules-doc: $(doc-prefix)/$(doc-dir)
 	-@for r in $(modules_basenames) "" ; do \
 		if [ -n "$$r" ]; then \
 			if [ -f modules/"$$r"/README ]; then \
-				$(INSTALL_TOUCH)  $(doc-prefix)/$(doc-dir)/README ; \
+				$(INSTALL_TOUCH)  $(doc-prefix)/$(doc-dir)/README."$$r" ; \
 				$(INSTALL_DOC)  modules/"$$r"/README  \
-									$(doc-prefix)/$(doc-dir)/README ; \
-				mv -f $(doc-prefix)/$(doc-dir)/README \
-						$(doc-prefix)/$(doc-dir)/README."$$r" ; \
+									$(doc-prefix)/$(doc-dir)/README."$$r" ; \
 			fi ; \
 		fi ; \
 	done 
-- 
1.7.3.2