-
Notifications
You must be signed in to change notification settings - Fork 3
/
makenotes.sh
executable file
·40 lines (31 loc) · 987 Bytes
/
makenotes.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#!/usr/bin/env bash -x
TOP=`pwd`
MERGER_DIR="$TOP/merger"
SAGE_ROOT="$TOP/sage"
DIST="$TOP"
VERSION=9.1
RELEASEMANAGER="Volker Braun"
cd "$SAGE_ROOT"
git fetch
git checkout $VERSION || exit $?
source src/bin/sage-version.sh
source "$MERGER_DIR/main.sh"
setup_logging
git tag -l | \
python "$MERGER_DIR/versionsort.py" >"$LOGDIR/allversions.log"
while read version; do
if echo "$version" | grep -q "^$VERSION"; then
BASEVERSION=${BASEVERSION:-$prevversion}
echo "$version $prevversion"
fi
prevversion=$version
done <"$LOGDIR/allversions.log" >"$LOGDIR/versiondelta.log"
while read version prevversion; do
git log "$version" "^$prevversion" "--author=Release Manager" "--format=%s" | \
sed -n 's/^Trac #\([0-9]*\):.*/sage-'$version' \1/p'
done <"$LOGDIR/versiondelta.log" >"$LOGDIR/tickets0.log"
touch "$LOGDIR/spkg.log"
touch "$LOGDIR/patches.log"
touch "$LOGDIR/trac_merged.log"
source "$MERGER_DIR/notes.sh"
cp "$LOGDIR"/*.txt "$DIST/notes"