2013-12-28 14:31:11 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
set -e
|
|
|
|
shopt -s nullglob
|
|
|
|
|
2015-01-11 08:48:31 +00:00
|
|
|
. "$GLUONDIR"/scripts/modules.sh
|
2013-12-28 14:31:11 +00:00
|
|
|
|
|
|
|
for module in $GLUON_MODULES; do
|
2016-03-25 23:00:35 +00:00
|
|
|
echo "--- Updating patches for module '$module' ---"
|
|
|
|
|
2015-01-11 08:48:31 +00:00
|
|
|
rm -f "$GLUONDIR"/patches/$module/*.patch
|
|
|
|
mkdir -p "$GLUONDIR"/patches/$module
|
2013-12-28 16:17:02 +00:00
|
|
|
|
2015-01-11 08:48:31 +00:00
|
|
|
cd "$GLUONDIR"/$module
|
2013-12-31 16:03:39 +00:00
|
|
|
|
2013-12-28 16:17:02 +00:00
|
|
|
n=0
|
2013-12-31 16:03:39 +00:00
|
|
|
for commit in $(git rev-list --reverse --no-merges base..patched); do
|
2013-12-28 16:17:02 +00:00
|
|
|
let n=n+1
|
2015-01-11 08:48:31 +00:00
|
|
|
git show --pretty=format:'From: %an <%ae>%nDate: %aD%nSubject: %B' $commit > "$GLUONDIR"/patches/$module/"$(printf '%04u' $n)-$(git 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
|