You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

update_docs_svn.sh 788B

123456789101112131415161718192021222324252627
  1. #!/bin/sh
  2. # Script to update javadoc deployed in svn
  3. pushd gwtquery-core
  4. mvn javadoc:javadoc
  5. popd
  6. cp -r gwtquery-core/target/site/apidocs/* gwtquery-core/javadoc/
  7. for i in `find gwtquery-core/javadoc/ -type d | grep -v .svn | sed -e 's#gwtquery-core/javadoc/##g' `
  8. do
  9. [ ! -d gwtquery-core/target/site/apidocs/$i ] && svn delete gwtquery-core/javadoc/$i
  10. done
  11. for i in `find gwtquery-core/javadoc/ -type f | grep -v .svn | sed -e 's#gwtquery-core/javadoc/##g' `
  12. do
  13. [ ! -f gwtquery-core/target/site/apidocs/$i ] && svn delete gwtquery-core/javadoc/$i
  14. done
  15. find gwtquery-core/javadoc/ | grep -v .svn | xargs svn add
  16. find gwtquery-core/javadoc/ -type f -name "*html" -exec svn propset svn:mime-type text/html '{}' ';'
  17. svn commit -m 'updated javadocs' gwtquery-core/javadoc/