#!/bin/sh
## @file
-## @brief Script to update ChangeLog file
+## @brief Update ChangeLog file
## - it keeps "pre-svn" history and inserts git log at top,
## - it uses C locale for date format.
## - It has to be run where ChangeLog.gqview is.
[ ! -e "ChangeLog.gqview" ] && exit 1
[ ! -x "$(command -v git)" ] && exit 0
+[ ! -d ".git" ] && exit 0
LC_ALL=C git log --no-merges --no-notes --encoding=UTF-8 --no-follow --use-mailmap 1b58572cf58e9d2d4a0305108395dab5c66d3a09..HEAD > ChangeLog.$$.new && \
cat ChangeLog.gqview >> ChangeLog.$$.new && \