2006-11-16 22:36:52 +08:00
|
|
|
#!/bin/bash -xe
|
2006-11-08 23:11:58 +08:00
|
|
|
#
|
2006-11-16 22:36:52 +08:00
|
|
|
# publish Hudson javadoc and deploy that into the java.net CVS repository
|
2006-11-08 23:11:58 +08:00
|
|
|
#
|
|
|
|
|
|
2006-11-16 22:36:52 +08:00
|
|
|
# generate javadoc
|
|
|
|
|
cd core
|
|
|
|
|
mvn -o javadoc:javadoc
|
|
|
|
|
cd ..
|
|
|
|
|
|
|
|
|
|
cd ../../www/javadoc
|
2006-11-08 23:11:58 +08:00
|
|
|
cvs update -Pd
|
|
|
|
|
|
2006-11-16 22:36:52 +08:00
|
|
|
cp -R ../../hudson/main/core/target/site/apidocs/* .
|
2006-11-08 23:11:58 +08:00
|
|
|
|
|
|
|
|
# ignore everything under CVS, then
|
|
|
|
|
# ignore all files that are already in CVS, then
|
|
|
|
|
# add the rest of the files
|
|
|
|
|
find . -name CVS -prune -o -exec bash in-cvs.sh {} \; -o \( -print -a -exec cvs add {} \+ \)
|
|
|
|
|
|
|
|
|
|
# sometimes the first commit fails
|
|
|
|
|
cvs commit -m "commit 1 " || cvs commit -m "commit 2"
|