summaryrefslogtreecommitdiff
path: root/cmake
diff options
context:
space:
mode:
authorliuxueli <[email protected]>2020-08-18 17:04:28 +0800
committerzhengchao <[email protected]>2020-08-22 18:52:25 +0800
commit6b892eb103a8be7f2441e3219af67545cefb1ee6 (patch)
treef5b35a446212385b9b45b0a7ed345f47541c1659 /cmake
parent0c694b5f9881b5910a627b18d52eab5aa3c9fd47 (diff)
上传遗漏的changelog.sh文件
Diffstat (limited to 'cmake')
-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..7d8bf7f
--- /dev/null
+++ b/cmake/changelog.sh
@@ -0,0 +1,4 @@
+#!/bin/sh
+
+branch=`git status | grep 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' > changelog.txt