aboutsummaryrefslogtreecommitdiff
path: root/script/git-changelog
blob: 9072c34c8ec86189192e6b87a060470c0f7b8476 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#!/bin/bash
# Generates changelog day by day
# Ref: https://stackoverflow.com/questions/2976665/git-changelog-day-by-day/4712213#4712213
gen_changelog() {
    echo =====================
    git log --no-merges --format="%cd" --date=short | sort -u -r | while read -r DATE ; do
        echo
        echo ["$DATE"]
        GIT_PAGER="cat" git log --no-merges --format=" * %s" --since="$DATE 00:00:00" --until="$DATE 24:00:00"
    done
    
}

# shellcheck disable=SC2016
echo '---
title: Changelog
---

## Description
This page contains the changelog of the repos used to generate the website, generated by `script/git-changelog > source/changelog/index.md`

---

### 135e2/MeaninglessRecords

' # Header
gen_changelog

cd themes/chromate || exit
echo "
---

### 135e2/chromate

"
gen_changelog