You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

patches_utils.sh 486B

1234567891011121314151617181920212223
  1. #!/bin/bash
  2. ###############################
  3. # exposes library functions to modify properties in a property
  4. ###############################
  5. set -euo pipefail
  6. PATCHES_HOME=scripts/patches
  7. # $1: name(s) of patches to call, separated by a colon
  8. # all other arguments are passed as is to the patches
  9. function call_patches() {
  10. PATCHES=$1
  11. ARGS=${@:2}
  12. IFS=','
  13. for PATCH in $PATCHES; do
  14. #echo "calling $PATCHES_HOME/$PATCH.sh $ARGS"
  15. $PATCHES_HOME/$PATCH.sh $ARGS
  16. done
  17. }