4
[ ! -d upstream/patches ] && exit
5
mkdir -p $STAMP_DIR/upstream/patches/ $SOURCE_TREE
6
for f in `find upstream/patches -type f|sort`;do
7
stampfile=$STAMP_DIR/upstream/patches/`basename $f`
8
if [ ! -e $stampfile ];then
10
if file2cat $f | (cd $SOURCE_DIR/$TAR_DIR;patch -p0) > $stampfile.log;then