Subversion Repositories DevTools

Rev

Rev 6837 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 6837 Rev 6839
Line 638... Line 638...
638
                        fi
638
                        fi
639
                    fi
639
                    fi
640
                done    
640
                done    
641
            fi
641
            fi
642
        fi
642
        fi
-
 
643
        PATCHES_DIR=${PATCHES_DIR}.${PLATFORM}
-
 
644
        if [ -d ${PATCHES_DIR} ]; then
-
 
645
            PATCHES=`cd ${PATCHES_DIR} && find . -name "*.patch" | sort`
-
 
646
            if [ "${PATCHES}" != "" ]; then
-
 
647
                echo " --> Apply external patches for ${PLATFORM}"
-
 
648
                for PATCH in ${PATCHES}; do
-
 
649
                    if patch -t -p1 < ${PATCHES_DIR}/${PATCH}; then
-
 
650
                        echo "Applied patch ${PATCH}"
-
 
651
                        echo ""
-
 
652
                    else
-
 
653
                        if [ "${IGNORE_PATH_ERR}" = "1" ]; then
-
 
654
                            echo "Patch ${PATCH} errors ignored"
-
 
655
                        else 
-
 
656
                            echo "Patch ${PATCH} failed"
-
 
657
                            exit 1
-
 
658
                        fi
-
 
659
                    fi
-
 
660
                done    
-
 
661
            fi
-
 
662
        fi
643
        
663
        
644
        #
664
        #
645
        #   When a 'mods' directory is present we need to sym-link all the 
665
        #   When a 'mods' directory is present we need to sym-link all the 
646
        #   files from there into the source tree.
666
        #   files from there into the source tree.
647
        #
667
        #