mirrored from git://git.rockbox.org/www.git
-
Notifications
You must be signed in to change notification settings - Fork 0
/
update_front.sh
executable file
·33 lines (25 loc) · 1.11 KB
/
update_front.sh
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
#!/bin/sh
GITDIR="$ROCKBOX_GIT_DIR"
LAST_RELEASE="v3.15-final"
# recent mails
perl last20threads.pl 5 1 > threads_front.html
perl last20threads.pl 20 1 > threads.html
# recent wiki edits
perl recentwiki.pl 5 > recentwiki_front.html
perl recentwiki.pl 20 > recentwiki.html
# Latest daily build stuff (have to put it somewhere..)
perl dailymod.pl > dailymod.html.new
mv dailymod.html.new dailymod.html
GITLOG="git log --name-status --abbrev-commit --date=iso-local --encoding=utf8 --pretty=fuller"
# recent commits
# ( cd $GITDIR && git pull -q ) # Now handled by cron
(cd $GITDIR && $GITLOG -5 ) | perl tools/gitlog2html.pl > last5front.html
(cd $GITDIR && $GITLOG -15 ) | perl tools/gitlog2html.pl > lastcode.html
# commits since last release
grep -v _PAGE_ head.html > since-release.html
(cd $GITDIR && $GITLOG "HEAD...$LAST_RELEASE") | perl tools/gitlog2html.pl >> since-release.html
cat foot.html >> since-release.html
# commits last four weeks
grep -v _PAGE_ head.html > since-4weeks.html
(cd $GITDIR && $GITLOG --since='4 weeks ago') | perl tools/gitlog2html.pl >> since-4weeks.html
cat foot.html >> since-4weeks.html