9 if [ -d lustre/CVS ] ;then
10 if [ -r lustre/CVS/Tag ] ;then
11 branch=$(cut -c2- lustre/CVS/Tag)
17 eval set -- $(getopt -o -b:l:du:p: -n 'publish_doxygen' -- "$@")
30 -d) label="$label$(date '+%Y.%m.%d')"
41 echo "Internal error!"
47 if [ -z "$branch" ] ;then
48 echo "No branch specified"
52 if [ -z "$user" ] ; then
53 echo "No user specified"
57 dsthost="shell.lustre.sun.com"
58 dstdir="/home/www/doxygen/$branch$label"
60 echo "Publishing documentation to $dsthost:$dstdir"
62 sshcmd="ssh -p $port -l $user"
64 eval $sshcmd $dsthost <<EOF
65 if [ ! -d $dstdir ]; then
66 echo "Creating $dstdir"
71 for doctype in api ref; do
72 srcdir=doxygen.$doctype/html
73 if [ -d $srcdir ]; then
75 rsync -rltvzp --delete --rsh="$sshcmd" $srcdir $dsthost:$dstdir/$doctype