aboutsummaryrefslogtreecommitdiffstats
path: root/mcp/patches/patch.sh
blob: b56ebb81524cf7dde5df155b3cea173d011e8575 (plain)
1
2
3
4
5
6
7
8
9
#!/bin/bash -ex

if [ -r "$1" ]; then
  while IFS=': ' read -r p_dest p_file; do
    if [[ "${p_dest}" =~ $2 ]]; then
      patch -fd "${p_dest}" -p1 < "/root/fuel/mcp/patches/${p_file}"
    fi
  done < "$1"
fi