2013-12-28 14:31:11 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
set -e
|
|
|
|
shopt -s nullglob
|
|
|
|
|
|
|
|
. "$1"/modules
|
|
|
|
|
|
|
|
for module in $GLUON_MODULES; do
|
|
|
|
dir="$1"/$module
|
|
|
|
rm -f "$1"/patches/$module/*.patch
|
|
|
|
mkdir -p "$1"/patches/$module
|
2013-12-28 16:17:02 +00:00
|
|
|
|
|
|
|
n=0
|
|
|
|
for commit in $(git -C "$dir" rev-list --reverse --no-merges base..patched); do
|
|
|
|
let n=n+1
|
2013-12-28 22:07:01 +00:00
|
|
|
git -C "$dir" show --pretty=format:'From: %an <%ae>%nDate: %aD%nSubject: %B' $commit > "$1"/patches/$module/"$(printf '%04u' $n)-$(git -C "$dir" show -s --pretty=format:%f $commit).patch"
|
2013-12-28 16:17:02 +00:00
|
|
|
done
|
2013-12-28 14:31:11 +00:00
|
|
|
done
|