upload.sh 567 B

12345678910111213
  1. #!/bin/bash
  2. set -e
  3. make clean
  4. zip -9 -r --exclude=@exclude.lst libigl.zip ../libigl
  5. scp libigl.zip $WEBSORKINE:www/htdocs-igl/projects/libigl/
  6. cp *.html ~/Documents/IGL-website/projects/libigl/
  7. cp file-formats/* ~/Documents/IGL-website/projects/libigl/file-formats/
  8. VERSION=`grep -v "^\#" VERSION.txt | tr -d '\n'`
  9. cd ~/Documents/IGL-website/projects/libigl/
  10. svn up
  11. sed -ie "s/RELEASE_HISTORY\.txt>[0-9\.]*<\/a>/RELEASE_HISTORY\.txt>$VERSION<\/a>/" index.php
  12. svn ci -m "update igl version: $VERSION"
  13. ssh websorkine@web-login.inf.ethz.ch "svn update www/htdocs-igl/"