aboutsummaryrefslogtreecommitdiffstats
path: root/update_docs_svn.sh
blob: 88befc8697ef41a4e542c9315eca0319cf49e95e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/bin/sh

# Script to update javadoc deployed in svn

p=`pwd`

cd gwtquery-core
mvn javadoc:javadoc
cd $p

cp -r gwtquery-core/target/site/apidocs/* gwtquery-core/javadoc/

for i in `find gwtquery-core/javadoc/ -type d | grep -v .svn | sed -e 's#gwtquery-core/javadoc/##g' `
do
   [ ! -d gwtquery-core/target/site/apidocs/$i ] && svn delete gwtquery-core/javadoc/$i 
done

for i in `find gwtquery-core/javadoc/ -type f | grep -v .svn | sed -e 's#gwtquery-core/javadoc/##g' `
do
   [ ! -f gwtquery-core/target/site/apidocs/$i ] && svn delete gwtquery-core/javadoc/$i 
done

find gwtquery-core/javadoc/  | grep -v .svn | xargs svn add

find gwtquery-core/javadoc/ -type f -name "*html" -exec svn propset svn:mime-type text/html '{}' ';'