mirror of
https://github.com/paboyle/Grid.git
synced 2024-11-14 01:35:36 +00:00
19 lines
295 B
Bash
Executable File
19 lines
295 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
if (( $# != 1 )); then
|
|
echo "usage: `basename $0` <archive>" 1>&2
|
|
exit 1
|
|
fi
|
|
ARC=$1
|
|
|
|
INITDIR=`pwd`
|
|
rm -rf lib/fftw
|
|
mkdir lib/fftw
|
|
|
|
ARCDIR=`tar -tf ${ARC} | head -n1 | sed -e 's@/.*@@'`
|
|
tar -xf ${ARC}
|
|
cp ${ARCDIR}/api/fftw3.h lib/fftw/
|
|
|
|
cd ${INITDIR}
|
|
rm -rf ${ARCDIR}
|