summaryrefslogtreecommitdiff
path: root/cmake/changelog.sh
diff options
context:
space:
mode:
Diffstat (limited to 'cmake/changelog.sh')
-rw-r--r--cmake/changelog.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/cmake/changelog.sh b/cmake/changelog.sh
new file mode 100644
index 0000000..087129d
--- /dev/null
+++ b/cmake/changelog.sh
@@ -0,0 +1,4 @@
+#!/bin/sh
+work_path=$1
+branch=`git status | grep 'On branch' | awk '{print $NF}'`
+git log --branches=$branch --no-merges --date=local --show-signature --pretty="* %ad %an %ae %nhash: %H%ncommit:%n%B" | awk -F"-" '{print "- "$0}' | sed 's/- \*/\*/g' | sed 's/- $//g' | sed 's/-/ -/g' | sed 's/[0-9]\{2\}:[0-9]\{2\}:[0-9]\{2\}//g' > $work_path/changelog.txt