This file looks large and may slow your browser down if we attempt
to syntax highlight it, so we are showing it without any
pretty colors.
Highlight
it anyway.
| 1 |
#!/bin/bash |
| 2 |
./generateAuthors 0.6.0..HEAD | while read line |
| 3 |
do |
| 4 |
name=`echo $line | sed -e 's/ [^ ]*@[^ ]*//g'` |
| 5 |
email=`echo $line | sed -e 's/.* //g' | tr [A-Z] [a-z]` |
| 6 |
echo -n "<img alt=\"$name\"src=\"https://secure.gravatar.com/avatar/" |
| 7 |
# OS X |
| 8 |
#md5=`md5 -s $email | md5sum` |
| 9 |
# Linux |
| 10 |
md5=`echo -e "$email\c" | md5sum | sed -e s/\ -//g` |
| 11 |
echo -n $md5 |
| 12 |
echo -n ".jpg?s=40\" width=\"40\" height=\"40\" />"; |
| 13 |
echo " $name $email<br>" |
| 14 |
done |