JavaDoc: generate-proteios-javadoc.sh

File generate-proteios-javadoc.sh, 1.0 KB (added by gregory, 18 months ago)

Example of how to setup autogeneration of the javadoc

Line 
1#!/bin/sh
2#
3# Written by Gregory Vincic
4#
5# This script may be used to setup an automated javadoc generation.
6#
7# Requires
8#   ssh access without passwords to DEST_SERVER
9#
10#   cd ~
11#   cat .ssh/id_rsa.pub | ssh $DEST_SERVER "cat >> .ssh/authorized_keys"
12#
13
14# rsync is used to synchronize files with server
15# host:/path/to/javadoc
16DEST_SERVER=tom
17ROOT=$DEST_SERVER:/export/home/trac/proteios/htdocs/javadoc
18
19# Where the javadocs end up when generated
20DIST=dist/docs/api/
21
22# Where the source is, make sure you checkout a copy of the trunk in this directory
23SRC="/home/leo/gregory/cron/proteios-trunk"
24
25# Update source code using subversion
26cd $SRC
27svn update
28
29# Generate documentation
30ant doc
31
32# Synchronizes files to DEST_SERVER
33function sync()
34{
35    FROM=$1
36    TO=$2
37    rsync -av --delete-after $FROM $TO
38}
39
40sync $SRC/api/core/$DIST $ROOT/core
41sync $SRC/client/ftpd/$DIST $ROOT/ftpd
42sync $SRC/client/servlet/$DIST $ROOT/servlet
43sync $SRC/api/waf/$DIST $ROOT/waf
44sync $SRC/plugin/$DIST $ROOT/plugin
45sync $SRC/doc/generated_schema.html $ROOT/../