eigen-update.sh 719 B

1234567891011121314151617181920212223242526272829
  1. #!/bin/sh
  2. echo "*** EIGEN#-HG Update utility"
  3. echo "*** This gets a new eigen3-hg tree and adapts it to blenders build structure"
  4. echo "*** Warning! This script will wipe all the header file"
  5. if [ "x$1" = "x--i-really-know-what-im-doing" ] ; then
  6. echo Proceeding as requested by command line ...
  7. else
  8. echo "*** Please run again with --i-really-know-what-im-doing ..."
  9. exit 1
  10. fi
  11. # get the latest revision from repository.
  12. hg clone http://bitbucket.org/eigen/eigen
  13. if [ -d eigen ]
  14. then
  15. cd eigen
  16. # put here the version you want to use
  17. hg up 3.2.7
  18. rm -f `find Eigen/ -type f -name "CMakeLists.txt"`
  19. cp -r Eigen ..
  20. cd ..
  21. rm -rf eigen
  22. else
  23. echo "Did you install Mercurial?"
  24. fi