blob: 7a3dd39e57f5a37f120ffd9c52e32055a32edbdf (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
#!/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"
$PATCHES_HOME/$PATCH.sh $ARGS
done
}
|