more packaging pieces

This commit is contained in:
Bryan Stansell 2019-03-17 22:00:20 -07:00
parent 51cfe7eb30
commit 5c9ffec7cd
3 changed files with 16 additions and 0 deletions

View File

@ -2,6 +2,7 @@ Creating a new release
----------------------
- Create a new release branch `git checkout -b release-v...`
- Update `CHANGES` with output of `./package/create-changes v-xx..`
- Edit `conserver/version.h`
- Run `./package/replicate-version-number`
- Double-check and merge release branch

13
package/create-changes Executable file
View File

@ -0,0 +1,13 @@
#!/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}}'

View File

@ -1,5 +1,7 @@
#!/bin/sh
set -e
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}'`