Verified Commit 0c19a688 authored by Marc Vef's avatar Marc Vef
Browse files

dl_dep script: Allow multiple patch files per dependency

parent 8a2b71c9
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -269,7 +269,10 @@ clonedeps() {

    # apply patch if provided
    if [[ -n "${PATCH}" ]]; then
        [[ "$DRY_RUN" == true ]] || (cd "${SOURCE_DIR}/${FOLDER}" && git apply --verbose "${PATCH_DIR}/${PATCH}" )
        for PATCH_FILE in  ${PATCH}; do
            echo "Applying patch '${PATCH_DIR}/${PATCH_FILE}'..."
            [[ "$DRY_RUN" == true ]] || (cd "${SOURCE_DIR}/${FOLDER}" && git apply --verbose "${PATCH_DIR}/${PATCH_FILE}" )
        done
    fi
}