Whamcloud - gitweb
Branch HEAD
[fs/lustre-release.git] / build / clearpatches.sh
1 BASEDIR=${BASEDIR:-lustre/kernel_patches}
2 SERIESPATH=${SERIESPATH:-$BASEDIR/series}
3 PATCHESPATH=${PATCHESPATH:-$BASEDIR/patches}
4 NOUSEPATH=${NOUSEPATH:-$BASEDIR/unused}
5
6 #mkdir -p $NOUSEPATH
7 for PATCH in `ls $PATCHESPATH | grep -v CVS` ; do
8         #echo $PATCH
9         if ! grep -rq $PATCH $SERIESPATH ; then
10                 echo "$PATCH"
11                 #mv $PATCHESPATH/$PATCH $NOUSEPATH
12         fi
13 done