2009-09-24 21:22:24 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
2009-09-25 01:59:43 +00:00
|
|
|
echo "*** EIGEN2-HG Update utility"
|
|
|
|
echo "*** This gets a new eigen2-hg tree and adapts it to blenders build structure"
|
2009-09-24 21:22:24 +00:00
|
|
|
echo "*** Warning! This script will wipe all the header file"
|
|
|
|
|
|
|
|
if [ "x$1" = "x--i-really-know-what-im-doing" ] ; then
|
2009-09-25 01:59:43 +00:00
|
|
|
echo Proceeding as requested by command line ...
|
2009-09-24 21:22:24 +00:00
|
|
|
else
|
2009-09-25 01:59:43 +00:00
|
|
|
echo "*** Please run again with --i-really-know-what-im-doing ..."
|
|
|
|
exit 1
|
2009-09-24 21:22:24 +00:00
|
|
|
fi
|
|
|
|
|
|
|
|
# get the latest revision from repository.
|
|
|
|
hg clone http://bitbucket.org/eigen/eigen2
|
|
|
|
if [ -d eigen2 ]
|
|
|
|
then
|
2009-09-25 01:59:43 +00:00
|
|
|
cd eigen2
|
|
|
|
# put here the version you want to use
|
2009-10-20 09:50:24 +00:00
|
|
|
hg up 2.0
|
2009-09-25 01:59:43 +00:00
|
|
|
rm -f `find Eigen/ -type f -name "CMakeLists.txt"`
|
|
|
|
cp -r Eigen ..
|
|
|
|
cd ..
|
|
|
|
rm -rf eigen2
|
2009-09-24 21:22:24 +00:00
|
|
|
else
|
2009-09-25 01:59:43 +00:00
|
|
|
echo "Did you install Mercurial?"
|
2009-09-24 21:22:24 +00:00
|
|
|
fi
|
|
|
|
|