#!/bin/sh

URL=github.com:maven-nar/maven-nar.github.com &&
git fetch "$URL" master &&
mvn site &&
export GIT_INDEX_FILE=.git/tmp-index &&
    rm -f $GIT_INDEX_FILE &&
git add -f target/site &&
    TREE=$(git write-tree) &&
unset GIT_INDEX_FILE &&
TREE=$(git rev-parse $TREE:target/site) &&
COMMIT=$(printf "Update %s from %s\n\n%s\n\n%s" \
		"http://maven-nar.github.io/" \
		"$(git rev-parse --short HEAD)" \
		"This trick was performed by these commands:" \
		"$(cat "$0" | sed 's/^/	/')" |
	git commit-tree $TREE -p FETCH_HEAD) &&
git update-ref -m "Generated by mvn site" \
	FETCH_HEAD $COMMIT &&
git push $URL FETCH_HEAD:master

Add a helper to upload the documentation
Add a helper to upload the documentation

Signed-off-by: Johannes Schindelin <53fb8db7833fca1e1746dd8592f61048d350f64c@gmx.de>
