-
Notifications
You must be signed in to change notification settings - Fork 0
/
gitstat.sh
19 lines (13 loc) · 866 Bytes
/
gitstat.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/sh
# Install Dependency :
# Debian/Ubuntu : aptitude install gitstat gource perl
echo "Stat script generator by TACTfactory 2012\n########################################################"""
echo "Clean stat..."
rm -rf ./doc/stats/* > /dev/null
echo "Generate HTML statistique..."
/usr/bin/gitstats ./ ./doc/stats/html/ > /dev/null
echo "Fetch Gravatar image of commiters..."
./gravatar.pl > /dev/null
echo "Generate Gource video..."
/usr/bin/gource --logo res/drawable-xhdpi/ic_launcher.png --title "Pokemon" --stop-at-end --auto-skip-seconds 1 --disable-auto-skip --max-files 0 --date-format "%d %b %y" --hide usernames,dirnames,mouse --seconds-per-day .25 --file-filter 'libs/|doc/' -user-image-dir .git/avatar/ -1280x720 -o - | ffmpeg -y -r 60 -f image2pipe -vcodec ppm -i - -vcodec libvpx -b 10000K doc/stats/lifetime.webm > /dev/null
echo "Done !"