1
0
mirror of https://github.com/aportelli/LatAnalyze.git synced 2024-11-10 00:45:36 +00:00

scripts to install Eigen headers properly

This commit is contained in:
Antonin Portelli 2013-09-13 17:06:59 +01:00
parent 67d105663b
commit c4751f20a3
5 changed files with 15 additions and 3 deletions

4
.gitignore vendored
View File

@ -44,3 +44,7 @@ myconfig.sh
latan/IOASCIILexer.cpp
latan/IOASCIIParser.cpp
latan/IOASCIIParser.hpp
# Eigen headers
latan/Eigen/*
latan/eigen_files.mk

View File

@ -1,5 +1,7 @@
#!/usr/bin/env bash
echo "extracting Eigen headers..."
./update_eigen.sh eigen-eigen-*.tar.bz2
rm -rf .buildutils
mkdir -p .buildutils/m4
autoreconf -fvi

Binary file not shown.

View File

@ -17,6 +17,9 @@ endif
AM_LFLAGS = -olex.yy.c
AM_YFLAGS = -d
include eigen_files.mk
nobase_dist_pkginclude_HEADERS = $(eigen_files)
BUILT_SOURCES = IOASCIIParser.hpp
lib_LTLIBRARIES = liblatan.la
@ -32,7 +35,7 @@ liblatan_la_SOURCES = \
Mat.cpp \
Sample.cpp \
../config.h
liblatan_ladir = $(includedir)/latan
liblatan_ladir = $(pkgincludedir)
liblatan_la_HEADERS = \
Global.hpp \
IO.hpp \

View File

@ -6,10 +6,13 @@ fi
ARC=$1
INITDIR=`pwd`
rm -rf latan/Eigen
ARCDIR=`tar -tf ${ARC} | head -n1 | sed -e 's@/.*@@'`
tar -xf ${ARC}
cd ${ARCDIR}
rm -rf latan/Eigen
tar -cf - Eigen --exclude='*.txt' | tar -xvf - -C ../latan/
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
cd ${INITDIR}
rm -rf ${ARCDIR}