mirror of
https://github.com/aportelli/LatAnalyze.git
synced 2025-07-26 12:27:06 +01:00
reintegration of LatCore & folder restructuration
This commit is contained in:
19
update_eigen.sh
Executable file
19
update_eigen.sh
Executable file
@@ -0,0 +1,19 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
if (( $# != 1 )); then
|
||||
echo "usage: `basename $0` <archive>" 1>&2
|
||||
exit 1
|
||||
fi
|
||||
ARC=$1
|
||||
|
||||
INITDIR=`pwd`
|
||||
rm -rf lib/Eigen
|
||||
ARCDIR=`tar -tf ${ARC} | head -n1 | sed -e 's@/.*@@'`
|
||||
tar -xf ${ARC}
|
||||
cd ${ARCDIR}
|
||||
(tar -cf - Eigen --exclude='*.txt' 2>/dev/null) | tar -xf - -C ../lib/
|
||||
cd ../lib
|
||||
echo 'eigen_files =\' > eigen_files.mk
|
||||
find Eigen -type f -print | sed 's/^/ /;$q;s/$/ \\/' >> eigen_files.mk
|
||||
cd ${INITDIR}
|
||||
rm -rf ${ARCDIR}
|
Reference in New Issue
Block a user