patch.sh 256 B

1234567891011121314
  1. #!/bin/bash
  2. set -e
  3. shopt -s nullglob
  4. . "$1"/modules
  5. for module in $GLUON_MODULES; do
  6. dir="$1"/$module
  7. git -C $dir checkout -B patched base
  8. if [ -z "$1"/patches/$module/*.patch ]; then continue; fi
  9. git -C "$dir" am "$1"/patches/$module/*.patch
  10. done