Last active
August 29, 2015 14:00
-
-
Save pcolby/11029999 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
if [ $# -lt 2 ]; then | |
echo "Usage: `basename $0 .sh` github-username github-project-name" >&2 | |
exit 1 | |
fi | |
# @brief Generate Markdown. | |
# @param $1 Image alt text. | |
# @param $2 Image URL. | |
# @param $3 Hyperlink. | |
function md { | |
echo "[]($3)" | |
} | |
md 'Build Status' "http://api.travis-ci.org/$1/$2.svg" "https://travis-ci.org/$1/$2" | |
md 'Coverage Status' "http://img.shields.io/coveralls/$1/$2.svg" "https://coveralls.io/r/$1/$2" | |
md 'Dependency Status' "http://img.shields.io/gemnasium/$1/$2.svg" "https://gemnasium.com/$1/$2" | |
md 'Gem Version' "http://img.shields.io/gem/v/$2.svg" "https://rubygems.org/gems/$2" | |
md 'Github Issues' "http://img.shields.io/github/issues/$1/$2.svg" "https://github.com/$1/$2/issues" | |
md 'Github Release' "http://img.shields.io/github/release/$1/$2.svg" "https://github.com/$1/$2/releases/latest" | |
md 'Apache License' 'http://img.shields.io/badge/license-APACHE2-blue.svg' 'https://www.apache.org/licenses/LICENSE-2.0.html' | |
md 'Boost License' 'http://img.shields.io/badge/license-boost-blue.svg' 'https://www.boost.org/users/license.html' | |
md 'GPLv3 License' 'http://img.shields.io/badge/license-GPLv3-blue.svg' 'https://www.gnu.org/copyleft/gpl.html' | |
md 'LGPLv3 License' 'http://img.shields.io/badge/license-LGPLv3-blue.svg' 'https://www.gnu.org/licenses/lgpl.html' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment