conserver/package/create-changes
2019-03-19 06:50:15 -07:00

14 lines
454 B
Bash
Executable File

#!/bin/bash
set -e
[ -z "$1" ] && echo "Usage: $0 tag" && exit 1
range="$1"
maj=`grep MAJOR conserver/version.h | awk '{print $NF; exit}'`
min=`grep MINOR conserver/version.h | awk '{print $NF; exit}'`
rev=`grep REV conserver/version.h | awk '{print $NF; exit}'`
ver="$maj.$min.$rev"
echo "version $ver (`date '+%B %-d, %Y'`):"
git log --no-merges --pretty=tformat:' - %s (%an <%ae>)' "$range" | tail -r | awk '{if (! l[$0]) {l[$0]++; print}}'