Permalink
Browse files

Add a script util

  • Loading branch information...
jfarcand committed May 30, 2012
1 parent 04613d1 commit e686626fe6e72568a6940985a1dd75c4d54604fa
Showing with 13 additions and 0 deletions.
  1. +13 −0 scripts/javadoc.sh
View
@@ -0,0 +1,13 @@
+#!/bin/bash -v
+# Update JXR and JavaDoc in gh-pages.
+# Author: Hubert Iwaniuk
+# Licence: ../LICENSE-2.0.txt
+
+git checkout master && \
+git pull && \
+mvn clean jxr:aggregate javadoc:aggregate && \
+git checkout gh-pages && \
+for x in apidocs xref; do rm -r $x && git rm -r $x && mv target/site/$x ./ && git add $x; done && \
+git commit -m "JXR & JavaDoc update" && \
+git push origin gh-pages && \
+git checkout master

0 comments on commit e686626

Please sign in to comment.