mtd/patches patchin.sh,1.26,1.27

gleixner at infradead.org gleixner at infradead.org
Sat Oct 2 08:43:58 EDT 2004


Update of /home/cvs/mtd/patches
In directory phoenix.infradead.org:/tmp/cvs-serv13634

Modified Files:
	patchin.sh 
Log Message:
add Documenation - 2.6 only)

Index: patchin.sh
===================================================================
RCS file: /home/cvs/mtd/patches/patchin.sh,v
retrieving revision 1.26
retrieving revision 1.27
diff -u -r1.26 -r1.27
--- patchin.sh	20 Sep 2004 08:33:04 -0000	1.26
+++ patchin.sh	2 Oct 2004 12:43:55 -0000	1.27
@@ -39,6 +39,7 @@
 SUBLEVEL=0
 ZLIBPATCH="no"
 RSLIBPATCH="no"
+DOCPATCH="no"
 CONFIG="Config.in"
 LNCP="ln -sf"
 METHOD="Link"
@@ -67,6 +68,9 @@
 RSLIB_FILES="*.[ch]"
 RSLIB_INC_DIR="include/linux"
 RSLIB_INC="rslib.h"
+# Documentation
+DOC_DIRS="Documentation/DocBook"
+DOC_FILES="mtdnand.tmpl"
 
 # Make text utils not suck
 export LANG=C
@@ -188,6 +192,16 @@
 	RSLIBPATCH=yes;
 fi
 
+# Have we to use DOCUMENTATION PATCH ?
+PATCHDONE=`grep -s mtdnand $LINUXDIR/$DOC_DIRS/Makefile | head -n 1`
+if [ "$PATCHDONE" = "" ]
+then
+    if test $PATCHLEVEL -gt 4 
+    then
+	DOCPATCH=yes;
+    fi
+fi
+
 # Check which header files we need depending on kernel version
 HDIR="include/linux"
 if test $PATCHLEVEL -eq 4 
@@ -208,6 +222,7 @@
 echo Include Filesytems: $FILESYSTEMS
 echo Zlib-Patch needed: $ZLIBPATCH
 echo RS-Lib-Patch needed: $RSLIBPATCH
+echo Documentation Patch needed: $DOCPATCH
 echo Method: $METHOD
 read -p "Can we start now ? [y/N]" ANSWER
 echo ""
@@ -348,6 +363,17 @@
 	mv -f $LINUXDIR/lib/reed_solomon/Makefile26 $LINUXDIR/lib/reed_solomon/Makefile
 fi
 
+echo "Patching Documentation"
+if [ "$DOCPATCH" = "yes" ]
+then
+    patch -p1 -i $TOPDIR/$DOC_DIRS/Makefile.diff
+fi
+
+PATCH_DIRS=$DOC_DIRS
+PATCH_FILES=$DOC_FILES
+patchit;
+
+
 echo "Patching done"
 
 # some BUG() definitions were moved to asm/bug.h in the 2.5 kernels





More information about the linux-mtd-cvs mailing list