aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/patches_utils.sh
blob: 2b79cd18406f684a3c1ea0efefe2bcf4c70c8906 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#!/bin/bash
###############################
# exposes library functions to modify properties in a property 
###############################

set -euo pipefail

PATCHES_HOME=scripts/patches

# $1: name(s) of patches to call, separated by a colon
# all other arguments are passed as is to the patches
function call_patches() {
  PATCHES=$1
  ARGS=${@:2}

  IFS=','
  for PATCH in $PATCHES; do
    #echo "calling $PATCHES_HOME/$PATCH.sh $ARGS"
    echo ""
    echo "******** $PATCH *******"
    $PATCHES_HOME/$PATCH.sh $ARGS
  done

  echo ""
}