From: SUGIOKA T. <su...@it...> - 2003-05-08 09:38:58
|
Hi, All. Currently, after scripts/treelink.sh has done, we see many unnecessary files in arch/sh/kernel and include/asm-sh. This is because treelink.sh can not remove any files in stock kernel. If we would always create symbolic link to arch/sh and include/asm-sh, and there ware all necessary files for these two directories in drop-in-tree, we wouldn't see garbages in these directories. For this purpose, scripts/treelink.sh should be slightly modified. Comments ? Index: scripts/treelink.sh =================================================================== RCS file: /cvsroot/linuxsh/linux/scripts/treelink.sh,v retrieving revision 1.2 diff -u -r1.2 treelink.sh --- scripts/treelink.sh 16 Oct 2001 21:33:00 -0000 1.2 +++ scripts/treelink.sh 8 May 2003 09:13:36 -0000 @@ -18,7 +18,11 @@ cd $1 || exit 1 LDIR=${PWD} echo -n "Building file list ... " -LIST=`find * \( -type d -name CVS -prune \) -o -type f -print` +LIST="arch/sh include/asm-sh \ + `find * \( -type d -name CVS -prune \) \ + -o \( -type d -name sh -prune \) \ + -o \( -type d -name asm-sh -prune \) \ + -o -type f -print`" echo -e "done." cd ${ODIR} @@ -31,7 +35,11 @@ DIR=`dirname $file` ofile=`basename $file` [ ! -d ${DIR}/.orig ] && mkdir -p ${DIR}/.orig - cp $file ${DIR}/.orig/$ofile + if [ ! -d $file ]; then + cp $file ${DIR}/.orig/$ofile + else + mv $file ${DIR}/.orig/$ofile + fi fi done echo -e "done." ---- SUGIOKA Toshinobu |