-SERIESPATH=./series
-PATCHESPATH=./patches
-for SERIES in `ls $SERIESPATH | grep -v CVS` ; do
+BASEDIR=${BASEDIR:-lustre/kernel_patches}
+SERIESPATH=${SERIESPATH:-$BASEDIR/series}
+PATCHESPATH=${PATCHESPATH:-$BASEDIR/patches}
+for SERIES in `ls $SERIESPATH | egrep -v "CVS|~$|.orig"` ; do
#echo $SERIES
for PATCH in `cat $SERIESPATH/$SERIES`; do
#echo $PATCH