Created
March 20, 2015 10:50
-
-
Save optyler/726b819b28ef0bd06ab3 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/sh | |
# | |
# Post-receive hook script which generates README.html to git-dir from | |
# README.md found at the head of master branch in repository. | |
# | |
# Gitweb can read the README.html and embed it to the project summary page. | |
GIT_DIR="$(cd -P -- "$(dirname -- "$0")" && pwd -P)" | |
git cat-file blob HEAD:README.md | markdown > $GIT_DIR/../README.html |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment