| Mike Marchetti | 3a0fc42 | 2017-11-17 13:38:47 -0500 | [diff] [blame^] | 1 | #!/bin/bash |
| 2 | |
| 3 | REPO_NAME=$(basename $(git config --get remote.origin.url) | cut -d'.' -f1) |
| 4 | # get the latest tag |
| 5 | TAG_END="HEAD" |
| 6 | TAG_START=$(git tag | sort -Vr | head -1) |
| 7 | git pull --tags origin master &> /dev/null |
| 8 | echo "<h1>$REPO_NAME Changelog</h1>" |
| 9 | echo "<h2>tag: ${TAG_START} -> ${TAG_END}</h2>" |
| 10 | git log --pretty=format:"<li> <a href=https://osm.etsi.org/gitweb/?p=osm/$i.git;a=commitdiff;h=%H>%h •</a> %s</li> " --reverse ${TAG_START}..${TAG_END} |