mirror of
https://github.com/bstansell/conserver.git
synced 2024-12-26 07:51:07 +00:00
14 lines
454 B
Plaintext
14 lines
454 B
Plaintext
|
#!/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}}'
|