summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorYour Name2021-01-21 10:17:30 +0100
committerYour Name2021-01-21 10:17:30 +0100
commit42dfbeafafcb2c8879edf03e6a0753745493bc3c (patch)
tree62d6d75616049b1d9152721472b6778541363c8b
parentad2d60d48d11df669478ca1fb5c349e4ea376648 (diff)
downloadaur-42dfbeafafcb2c8879edf03e6a0753745493bc3c.tar.gz
next iteration
-rw-r--r--PKGBUILD5
-rw-r--r--changelog2
2 files changed, 4 insertions, 3 deletions
diff --git a/PKGBUILD b/PKGBUILD
index abc7a3a3b27..2b4bc82f3d8 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -59,7 +59,7 @@ _gitLogByDay() {
local NEXT=$(date +%F)
local SINCE="1970-01-01"
local UNTIL=$NEXT
- local LOG_FORMAT="* %s %an"
+ local LOG_FORMAT="* %s"
git log --no-merges --since="${SINCE}" --until="${UNTIL}" --format="%cd" --date=short --follow . | sort -u | while read DATE ; do
local GIT_PAGER=$(git log --no-merges --reverse --format="${LOG_FORMAT}" --since="${DATE} 00:00:00" --until="${DATE} 23:59:59" --author="${AUTHOR}" --follow . | uniq)
if [ ! -z "$GIT_PAGER" ]
@@ -70,7 +70,8 @@ _gitLogByDay() {
fi
done
}
-if git rev-parse ;
+if [ ! -e "changelog" ] \
+ || git rev-parse ;
then
_gitLogByDay > changelog
changelog="changelog"
diff --git a/changelog b/changelog
index b331348b023..f37b64e0330 100644
--- a/changelog
+++ b/changelog
@@ -1,3 +1,3 @@
[2021-01-11]
-* add addons Your Name
+* add addons