blob: 10b0a35bd8e6144496a5f089c9977ef56de976ca (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
#!/bin/bash
function git-new-milestone() {
local module="$1"
local last="$2"
local new="$3"
if [ -z "$module" -o -z "$last" -o -z "$new" ] ; then
echo "Usage: $0 module last-ref new-ref"
exit 1
fi
mkdir -p ../archive/Sources
mkdir -p ../archive/ChangeLogs
echo "Module $module - Tag $new"
git archive --format=tar --prefix=$module-$new/ $new | xz -z -9 > ../archive/Sources/$module-$new.tar.xz
# git archive --format=zip --prefix=$module-$new/ $new -o ../archive/Sources/$module-$new.zip
git log --no-merges $new ^$last > ../archive/ChangeLogs/$module-ChangeLog-$new.txt
git shortlog --no-merges $new ^$last > ../archive/ChangeLogs/$module-ShortLog-$new.txt
git diff --stat --summary -M $last $new > ../archive/ChangeLogs/$module-diffstat-$new.txt
}
|