update-patches.sh 502 B

12345678910111213141516171819
  1. #!/bin/bash
  2. set -e
  3. shopt -s nullglob
  4. . "$GLUONDIR"/scripts/modules.sh
  5. for module in $GLUON_MODULES; do
  6. rm -f "$GLUONDIR"/patches/$module/*.patch
  7. mkdir -p "$GLUONDIR"/patches/$module
  8. cd "$GLUONDIR"/$module
  9. n=0
  10. for commit in $(git rev-list --reverse --no-merges base..patched); do
  11. let n=n+1
  12. git show --pretty=format:'From: %an <%ae>%nDate: %aD%nSubject: %B' --no-renames $commit > "$GLUONDIR"/patches/$module/"$(printf '%04u' $n)-$(git show -s --pretty=format:%f $commit).patch"
  13. done
  14. done