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_demos_svn.sh 709B

1234567891011121314151617181920212223
  1. #!/bin/sh
  2. # Script to update demos deployed in svn
  3. V=1.0.0-SNAPSHOT
  4. cp -r samples/target/gwtquery-samples-$V/gwtquery* demos/
  5. cp -r samples/target/gwtquery-samples-$V/index.html demos/
  6. for i in `find demos -type d | grep -v .svn | sed -e 's#^demos/##g'`
  7. do
  8. [ ! -d samples/target/gwtquery-samples-$V/$i ] && svn delete demos/$i
  9. done
  10. for i in `find demos -type f | grep -v .svn | sed -e 's#^demos/##g'`
  11. do
  12. [ ! -f samples/target/gwtquery-samples-$V/$i ] && svn delete demos/$i
  13. done
  14. find demos | grep -v .svn | xargs svn add
  15. find demos -type f -name "*html" -exec svn propset svn:mime-type text/html '{}' ';'
  16. find demos -type f -name "*js" -exec svn propset svn:mime-type text/javascript '{}' ';'