2009-09-24 08:58:20 +08:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
# this script must be run from the eigen2/ directory.
|
2009-10-02 23:32:36 +08:00
|
|
|
# when running hg churn from the scripts/ subdir, i hit a divide-by-zero error.
|
2009-09-24 08:58:20 +08:00
|
|
|
#
|
|
|
|
# like this:
|
|
|
|
# cd eigen2
|
2009-10-02 23:32:36 +08:00
|
|
|
# USER=yourtuxfamilyuser scripts/eigen_gen_credits
|
2009-09-24 08:58:20 +08:00
|
|
|
|
2009-09-24 19:26:23 +08:00
|
|
|
rm -f eigen_gen_credits.log
|
2009-09-24 19:04:55 +08:00
|
|
|
|
|
|
|
hg pull >> eigen_gen_credits.log
|
|
|
|
|
|
|
|
wget http://eigen.tuxfamily.org/index.php?title=ContributorsInfo -O online-info.out -a eigen_gen_credits.log
|
2009-09-24 19:18:31 +08:00
|
|
|
hg churn -r 37: --changesets -t {author} > churn-changesets.out
|
|
|
|
hg churn -r 37: -t {author} > churn-changedlines.out
|
2009-09-24 08:58:20 +08:00
|
|
|
|
|
|
|
g++ scripts/eigen_gen_credits.cpp -o e
|
|
|
|
|
|
|
|
./e > credits.out
|
|
|
|
|
|
|
|
rsync credits.out $USER@ssh.tuxfamily.org:eigen/eigen.tuxfamily.org-web/htdocs/credits.out || (echo "upload failed"; exit 1)
|
2009-10-06 23:44:57 +08:00
|
|
|
ssh $USER@ssh.tuxfamily.org "cd eigen/eigen.tuxfamily.org-web/htdocs; chmod 664 credits.out; echo Main_Page | /usr/bin/php maintenance/purgeList.php"
|