1
0
mirror of https://github.com/aportelli/LatAnalyze.git synced 2024-11-14 01:45:35 +00:00
LatAnalyze/update_eigen.sh

19 lines
430 B
Bash
Raw Normal View History

2013-05-01 14:35:30 +01:00
#!/usr/bin/env bash
if (( $# != 1 )); then
echo "usage: `basename $0` <archive>" 1>&2
fi
ARC=$1
INITDIR=`pwd`
rm -rf latan/Eigen
2013-05-01 14:35:30 +01:00
ARCDIR=`tar -tf ${ARC} | head -n1 | sed -e 's@/.*@@'`
tar -xf ${ARC}
cd ${ARCDIR}
tar -cf - Eigen --exclude='*.txt' | tar -xf - -C ../latan/
cd ../latan
echo 'eigen_files =\' > eigen_files.mk
find Eigen -type f -print | sed 's/^/ /;$q;s/$/ \\/' >> eigen_files.mk
2013-05-01 14:35:30 +01:00
cd ${INITDIR}
rm -rf ${ARCDIR}