diff options
author | Reinier Zwitserloot <reinier@tipit.to> | 2009-07-17 22:22:18 +0200 |
---|---|---|
committer | Reinier Zwitserloot <reinier@tipit.to> | 2009-07-17 22:22:18 +0200 |
commit | c50e4c2ed65b8da60f2743a972063c98f40cf3a6 (patch) | |
tree | 0e5c86f48481e3978c6c5aaa39813f1c6aa16fce | |
parent | 99b3ec87b0cc4af797ad398c1d7fa2f6056d9cef (diff) | |
download | lombok-c50e4c2ed65b8da60f2743a972063c98f40cf3a6.tar.gz lombok-c50e4c2ed65b8da60f2743a972063c98f40cf3a6.tar.bz2 lombok-c50e4c2ed65b8da60f2743a972063c98f40cf3a6.zip |
Added a script that publishes the website dir to github via some crazy git fu.
Also stripped out how javadoc generated a comment with a timestamp, as to publish to github, we check in the files, which generates pointless and enormous changesets.
-rw-r--r-- | build.xml | 21 | ||||
-rwxr-xr-x | website/publish | 33 |
2 files changed, 51 insertions, 3 deletions
@@ -58,6 +58,7 @@ <exclude name="**/*.svg" /> <exclude name="**/*.psd" /> <exclude name="**/*.ai" /> + <exclude name="**/publish" /> <exclude name="**/*unused*" /> </fileset> </copy> @@ -67,6 +68,7 @@ <antcall target="-integrateSnippet"> <param name="transformationName" value="Data" /> </antcall> + <mkdir dir="dist" /> <zip destfile="dist/website.zip"> <zipfileset dir="build/website" /> <zipfileset dir="doc/api" prefix="api" /> @@ -169,14 +171,27 @@ </target> <target name="javadoc"> + <delete dir="build/api" quiet="true" /> <delete dir="doc/api" quiet="true" /> - <mkdir dir="doc/api" /> - <javadoc sourcepath="src" defaultexcludes="yes" destdir="doc/api" windowtitle="Lombok"> + <mkdir dir="build/api" /> + <javadoc sourcepath="src" defaultexcludes="yes" destdir="build/api" windowtitle="Lombok"> <classpath refid="lombok.deps.path" /> <classpath refid="lombok.libs.path" /> <link href="http://java.sun.com/javase/6/docs/api/" offline="true" packagelistLoc="./deps/javadoc/java6"/> - <bottom><![CDATA[<i>Copyright © 2009 Reinier Zwitserloot and Roel Spilker. See LICENCE for more information.]]></bottom> + <bottom><![CDATA[<i>Copyright © 2009 Reinier Zwitserloot and Roel Spilker, licensed under the <a href="http://www.opensource.org/licenses/mit-license.php">MIT licence</a>.]]></bottom> </javadoc> + <mkdir dir="doc/api" /> + <copy todir="doc/api"> + <fileset dir="build/api" includes="**/*.html" /> + <filterchain> + <linecontains negate="true"> + <contains value="Generated by javadoc" /> + </linecontains> + </filterchain> + </copy> + <copy todir="doc/api"> + <fileset dir="build/api" excludes="**/*.html" /> + </copy> </target> <target name="dist" depends="clean, compile, getVersion, unpackLibs"> diff --git a/website/publish b/website/publish new file mode 100755 index 00000000..4894c4e7 --- /dev/null +++ b/website/publish @@ -0,0 +1,33 @@ +#!/bin/bash + +CURDIR=`pwd` + + +cd `dirname $0` || exit +cd .. || exit + +if [ ! -e dist/website.zip ]; then + echo There is no dist/website.zip file! Run: + echo ant website + echo then restart this script + exit +fi + +mkdir -p build/temp || exit +cd build/temp || exit +git clone -l -n ../.. websitegit || exit +cd websitegit || exit +git branch gh-pages origin/gh-pages || exit +git checkout gh-pages || exit +rm -r * || exit +unzip ../../../dist/website.zip || exit +git add . || exit +git commit -a -m website || exit +git push origin gh-pages || exit +cd .. || exit +rm -rf websitegit || exit + +cd "$CURDIR" + +echo Your gh-pages branch has been updated. Do not forget to run: +echo git push origin gh-pages |