changeset 118:715e68af377a

Copy top level kernel documentation into "linux" subdirectory.
author Rob Landley <rob@landley.net>
date Tue, 03 May 2011 12:17:18 -0500
parents 7d33366e569e
children ece470aaa43b
files make/functions.sh
diffstat 1 files changed, 7 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/make/functions.sh	Tue May 03 12:16:51 2011 -0500
+++ b/make/functions.sh	Tue May 03 12:17:18 2011 -0500
@@ -17,13 +17,14 @@
 
 function update_documentation_dir()
 {
-  rm -rf "$WEBDIR"/Documentation/
-  cp -a "$LNXDIR"/Documentation "$WEBDIR"/Documentation
+  rm -rf "$WEBDIR"/Documentation/ &&
+  cp -a "$LNXDIR"/Documentation "$WEBDIR"/Documentation &&
   # Make the change directory local to this function
-  (
-    cd $WEBDIR
-    make/docdiridx.py
-  )
+  ( cd $WEBDIR && make/docdiridx.py ) &&
+  rm -rf "$WEBDIR"/linux/ &&
+  mkdir -p "$WEBDIR"/linux/ &&
+  cp "$LNXDIR"/{COPYING,CREDITS,MAINTAINERS,README,REPORTING-BUGS} \
+     "$WEBDIR"/linux/
 }
 
 # Clone or update mercurial Linux kernel repository from kernel.org