summaryrefslogtreecommitdiffhomepage
path: root/scripts/changelog-dates.sed
blob: fec1d97be7991f065c11f4f4f4f8d285e388aacc (plain) (blame)
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
#!/bin/sed -Ef

/start/ {
	iStart of the Changelog
	Q
}

s/([0-9]{2})-([0-9]{2})-([0-9]{4})/\1 of \2, \3/

s/^0//

/^[^1]?1 / { s| |@sup{-st} |; b out }
/^[^1]?2 / { s| |@sup{-nd} |; b out }
/^[^1]?3 / { s| |@sup{-rd} |; b out }
             s| |@sup{-th} |

:out

s/of 01/of January/
s/of 02/of February/
s/of 03/of March/
s/of 04/of April/
s/of 05/of May/
s/of 06/of June/
s/of 07/of July/
s/of 08/of August/
s/of 09/of September/
s/of 10/of October/
s/of 11/of November/
s/of 12/of December/