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

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