mirror of
https://github.com/bstansell/conserver.git
synced 2024-12-26 16:01:06 +00:00
14 lines
454 B
Bash
Executable File
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}}'
|