Generate recent changes list from git log
The list of recent commits to the DevStack repo is now generated
by tools/build_docs.sh from the last 6 month of the git log.
Change-Id: Idefdb5d5188ab7e743af131e3d6cb132382d25d4
diff --git a/tools/build_docs.sh b/tools/build_docs.sh
index 77c2f4e..e999eff 100755
--- a/tools/build_docs.sh
+++ b/tools/build_docs.sh
@@ -113,6 +113,15 @@
# Get repo static
cp -pr $FQ_DOCS_SOURCE/* $FQ_HTML_BUILD
+# Insert automated bits
+GLOG=$(mktemp gitlogXXXX)
+git log \
+ --pretty=format:' <li>%s - <em>Commit <a href="https://review.openstack.org/#q,%h,n,z">%h</a> %cd</em></li>' \
+ --date=short \
+ --since '6 months ago' | grep -v Merge >$GLOG
+sed -e $"/%GIT_LOG%/r $GLOG" $FQ_DOCS_SOURCE/changes.html >$FQ_HTML_BUILD/changes.html
+rm -f $GLOG
+
# Build list of scripts to process
FILES=""
for f in $(find . -name .git -prune -o \( -type f -name \*.sh -not -path \*shocco/\* -print \)); do