summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authormikesamuel <mikesamuel@ad8eed46-c659-4a31-e19d-951d88f54425>2012-11-06 16:39:49 +0000
committermikesamuel <mikesamuel@ad8eed46-c659-4a31-e19d-951d88f54425>2012-11-06 16:39:49 +0000
commit805c895446fd579493e2455daf395184516694da (patch)
treec530519b71c3753762e368be3744bfb326c25d3c /Makefile
parent15b42cb41d1f966f82310baff9bd73589e6005a1 (diff)
downloadsanitizer-805c895446fd579493e2455daf395184516694da.tar.gz
added download build target to ease creation of code.google download ZIP files
git-svn-id: http://owasp-java-html-sanitizer.googlecode.com/svn/trunk@126 ad8eed46-c659-4a31-e19d-951d88f54425
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile14
1 files changed, 14 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index f9dd085..f4b04ce 100644
--- a/Makefile
+++ b/Makefile
@@ -20,6 +20,9 @@ help:
@echo " release - Additionally, cut a new Maven version."
@echo " Should be run from client that has sibling"
@echo " directories of trunk checked out."
+ @echo " download - Bundle docs, externally required jars, and"
+ @echo " license files into a zip file suitable for"
+ @echo " the code.google site downloads."
CLASSPATH=lib/guava-libraries/guava.jar:lib/jsr305/jsr305.jar
@@ -131,3 +134,14 @@ release: out/run_me_before_committing_maven.sh
out/run_me_before_committing_maven.sh: distrib
tools/cut_release.py > $@
chmod +x $@
+
+download: out/owasp-java-html-sanitizer.zip
+out/zip.tstamp: out/staging.tstamp
+ rm -f out/zip/owasp-java-html-sanitizer
+ mkdir -p out/zip/owasp-java-html-sanitizer
+ cp -r out/staging/lib out/staging/javadoc \
+ out/zip/owasp-java-html-sanitizer/
+ touch $@
+out/owasp-java-html-sanitizer.zip: out/zip.tstamp
+ jar cMf out/owasp-java-html-sanitizer.zip \
+ -C out/zip owasp-java-html-sanitizer