1
0
mirror of https://github.com/aportelli/LatAnalyze.git synced 2024-09-19 21:25:36 +01:00
LatAnalyze/update_eigen.sh
2013-05-01 09:35:30 -04:00

16 lines
308 B
Bash
Executable File

#!/usr/bin/env bash
if (( $# != 1 )); then
echo "usage: `basename $0` <archive>" 1>&2
fi
ARC=$1
INITDIR=`pwd`
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/
cd ${INITDIR}
rm -rf ${ARCDIR}